code: mafs

ref: fb53d7e68bcb2108fb304c81dccb1d7ff50ffa1f
dir: /tests/test.9/action.rc/

View raw version
#!/bin/rc

service=$1

# du -a /n/^$service^/

mkdir /n/^$service^/dir1
touch /n/^$service^/dir1/file1
echo test >> /n/^$service^/dir1/file1

mkdir /n/^$service^/dir2
touch /n/^$service^/dir2/file1
echo test >> /n/^$service^/dir2/file1
touch /n/^$service^/dir2/file2
echo test >> /n/^$service^/dir2/file2

# 4096 blocks = 2MB
mkdir /n/^$service^/dir3
time fcp -x test.9/2MB.file /n/^$service^/dir3/

# 25 MB file
mkdir /n/^$service^/dir4
time fcp -x test.9/25MB.file /n/^$service^/dir4/

du -a /n/^$service^/
cat /n/^$service^/adm/ctl