code: mafs

ref: 61ab76ca10766edc8728de5cc6e1d0972c99ebc9
dir: /tests/test.3/action.rc/

View raw version
#!/bin/rc

service=$1

# ls -l /srv/ /n/
fn dofile {
	file=$"*
	echo $file
	time fcp -x test.3/^$file /n/^$service^/
	ls -ltr test.3/^$file /n/^$service^/^$file
	diff test.3/^$file /n/^$service^/^$file # > /mnt/term/tmp/test.out
	# tail /mnt/term/tmp/test.out
	rm /n/^$service^/^$file
}

# to build these files
# dd -if big.file -of 94_blocks.file -bs 502 -count 94

dofile 32_blocks.file
dofile 33_blocks.file
dofile 94_blocks.file
dofile 95_blocks.file
dofile 128_blocks.file
dofile 1024_blocks.file
dofile 2048_blocks.file
dofile 4096_blocks.file
dofile 8192_blocks.file
dofile 16384_blocks.file
# dofile big.file # cannot do this, not enough space for this.

cat /n/^$service^/adm/ctl