code: mafs

ref: 2473bd0e87137da5a04c269beb06c2162839390d
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