code: mafs

ref: 5c21eca829380c28769f79beabb7cc51f1787f97
dir: /mkfile/

View raw version
</$objtype/mkfile

TARG=mafs used reconcile block find free

OFILES=\
	9p.$O\
	blk.$O\
	config.$O\
	ctl.$O\
	dat.$O\
	dentry.$O\
	dev.$O\
	extents.$O\
	iobuf.$O\
	misc.$O\
	sub.$O\
	tag.$O\
	user.$O\

HFILES=\
	all.h\
	dat.h\
	errno.h\
	extents.h\
	fns.h\

BIN=/$objtype/bin/disk

UPDATE=mkfile\
	$HFILES\
	${OFILES:%.$O=%.c}\

</sys/src/cmd/mkmany

$O.used:	blk.$O dat.$O dev.$O misc.$O used.$O
	$LD $LDFLAGS -o $target $prereq

$O.free:	dat.$O dev.$O extents.$O free.$O misc.$O
	$LD $LDFLAGS -o $target $prereq

$O.block:	blk.$O dat.$O dev.$O misc.$O block.$O
	$LD $LDFLAGS -o $target $prereq

$O.find:	blk.$O dat.$O dev.$O misc.$O find.$O
	$LD $LDFLAGS -o $target $prereq

$O.reconcile:	dat.$O extents.$O misc.$O reconcile.$O
	$LD $LDFLAGS -o $target $prereq

$O.loader:	$OFILES
	$LD $LDFLAGS -v -o /mnt/term/tmp/test.out -a $prereq > $target

$O.chktag:	dat.$O misc.$O tag.$O chktag.$O
	$LD $LDFLAGS -o $target $prereq

test:VQ:
	echo rm -fr /srv/il!$sysname!11111
	echo 'kill 8.out|rc'
	echo rm /srv/il!$sysname!11111
	echo 8.out -Crf /tmp/disk
	echo disk/kfscmd ''''listen il!*!11111''''
	echo srv il!$sysname!11111
	echo mount /srv/il!$sysname!11111 /n/emelie

tests:VQ: 6.block 6.used 6.free 6.reconcile
	./6.used -D tests/test.0/disk
	./6.reconcile -D -u <{seq 1 1 3; seq 5 1 6} -F <{seq 3 1 5} 7