code: mafs

ref: b3e875d7db45fca0cde9f4efa12872f61afc54d7
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^/a/ctl