code: mafs

ref: 9b76881a8e11c44aae5dfd447e1cd1bc074ec9f3
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