code: mafs

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