code: mafs

ref: ddd35edac6785918a0c4ca11548db2a7f211a732
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