shithub: gefs

ref: 2a941967c8f06ee6f6eb63bf5399c0d2ba4b89df
dir: /env.rc/

View raw version
fn r{mk all && 6.out -dA -m 64 -r $user -f $testdev}
fn t{mk all && 6.out -A -m 512 -f $testdev}
fn d{mk all && 6.out -dA -m 512 -f $testdev}
fn k{kill 6.out | rc}
fn leak { g `{echo $1 | sed s/0x//g}  /tmp/trace | grep -v syncblk | tail -n 3}
fn m{mount -c /srv/gefs /n/gefs $*}
fn s{mount -c /srv/gefs /n/gefs dump}
fn tf{
	arg=100
	if(! ~ $#* 0)
		arg=$*
	touch /n/gefs/`{seq $arg}
}
fn cf{
	dd -if /dev/zero -of /n/gefs/test -bs 1kk -count 100
}
fn rf{
	arg=100
	if(! ~ $#* 0)
		arg=$*
	for(f in `{seq $arg}) {
		echo $f
		rm /n/gefs/$f
	}
}

fn iob{
	6c iobench.c && 6l -o 6.iobench iobench.6 && 6.iobench -o rand test.fs
}

fn a{
	mk fs.acid && acid -l fs.acid $*
}

fn rps {
	mac=(-ms)
	if(~ gefs comp utf 9 contents) mac=(-ms -mnihongo)
	{ echo .FP lucidasans; cat gefs.ms } | pic | tbl | eqn | 
		troff $mac | lp -dstdout > gefs.ps
	cleanps gefs.ps
	page -p150 gefs.ps
}
fn tt {
	kill 6.out|rc
	@ {
		cd /usr/ori/src/gefs/ && mk all
	} && @ {
		cd /usr/ori/src/gefs/test && ./mkgefs.rc /dev/sdO0/data && 6c fsbench.c && 6l fsbench.6 && 6.out /n/gefs
	}
}

fn tg {@{
	GOROOT=/n/gefs/go
	GOROOT_BOOTSTRAP=/n/gefs/go-plan9-amd64-bootstrap
	rfork ne
	m
	cd /n/gefs
	mkdir go
	mkdir tmp
	bunzip2 -c /tmp/go1.17.13-plan9-amd64-bootstrap.tbz | tar x
	dircp go-plan9-amd64-bootstrap go
	bind -c tmp /tmp
	cd go/src
	alarm 1200 ./all.rc
}}


fn t9 {@{
	rfork ne
	m
	cd /n/gefs
	. /sys/lib/rootstub
	if(! test -e plan9front)
		git/clone /dist/plan9front
	bind -c $objtype/lib /$objtype/lib
	bind -c plan9front/sys/include /sys/include
	bind -c tmp /tmp
	cd plan9front/sys/src
	mk clean >> /tmp/log
	mk all >> /tmp/log
}}

fn tsl {@{
	rfork ne
	m
	cd /n/gefs
	if(! test -e gefs)
		git/clone $home/src/gefs
	cd gefs
	for(i in `{seq 1000}){
		echo @@ $i
		mk clean > /dev/null
		mk all > /dev/null
		sleep 15
	}
}}

fn tb {@{
	rfork ne
	m
	cd /n/gefs
	for(i in `{seq 1000}){
		echo @@ $i
		rm -f x
		dd -if /dev/zero -of x -bs 15k -count 1
		sleep 1
	}
}}