0268059112
where segment 0 is being considered for writing. This allows for automated checkpoint vailidity scanning, and could be used (in conjunction with the existing LFCNREWIND) for e.g. snapshot dumps as well. Include a regression test that does such scanning. When writing the Ifile, loop through the dirty block list three times to make sure that the checkpoint is always consistent (the first and second times the Ifile blocks can cross a segment boundary; not so the third time unless the segments are very small). Discovered by using the aforementioned regression test.
34 lines
815 B
Makefile
34 lines
815 B
Makefile
# $NetBSD: Makefile,v 1.1 2006/04/17 20:02:35 perseant Exp $
|
|
#
|
|
# Note: this test must be run with LFSDEV defined, e.g. "LFSDEV=wd0g".
|
|
# It will destroy the existing contents of $LFSDEV to perform the test.
|
|
# This test requires that Perl be installed to run.
|
|
#
|
|
|
|
NOMAN= # defined
|
|
TMPMP= /tmp/lfsregresstest_mount
|
|
SRCDIR?= ${.CURDIR}
|
|
CLEAN= clean
|
|
LFSBDEV="/dev/${LFSDEV}"
|
|
LFSCDEV="/dev/r${LFSDEV}"
|
|
COUNT?= 20
|
|
PLEX?= 2
|
|
|
|
regress: test_ckckp
|
|
|
|
test_ckckp: ckckp cleanalot_async run_ckckp
|
|
@echo "*** Checkpoint validity test"
|
|
@echo "*** WARNING: will newfs_lfs ${LFSCDEV} in 10 seconds"
|
|
@sleep 10
|
|
newfs_lfs ${LFSCDEV}
|
|
-mkdir ${TMPMP}
|
|
mount ${LFSBDEV} ${TMPMP}
|
|
./run_ckckp ${TMPMP} ${LFSCDEV} ${PLEX} ${COUNT}
|
|
umount ${TMPMP}
|
|
rmdir ${TMPMP}
|
|
|
|
clean:
|
|
rm -f ckckp cleanalot_async *~ *.core
|
|
|
|
.include <bsd.prog.mk>
|