NetBSD/sbin/dump_lfs/Makefile

34 lines
926 B
Makefile
Raw Normal View History

2013-06-15 16:29:02 +04:00
# $NetBSD: Makefile,v 1.16 2013/06/15 12:29:02 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# lfs_inode.c LFS filestore-specific routines
#
# DEBUG use local directory to find ddate and dumpdates
# TDEBUG trace out the process forking
WARNS?= 3 # XXX: sign-compare issues
.include <bsd.own.mk>
PROG= dump_lfs
LINKS= ${BINDIR}/dump_lfs ${BINDIR}/rdump_lfs
CPPFLAGS+=-DRDUMP -I${.CURDIR} -I${NETBSDSRCDIR}/sbin/dump
Merge the short-lived perseant-lfsv2 branch into the trunk. Kernels and tools understand both v1 and v2 filesystems; newfs_lfs generates v2 by default. Changes for the v2 layout include: - Segments of non-PO2 size and arbitrary block offset, so these can be matched to convenient physical characteristics of the partition (e.g., stripe or track size and offset). - Address by fragment instead of by disk sector, paving the way for non-512-byte-sector devices. In theory fragments can be as large as you like, though in reality they must be smaller than MAXBSIZE in size. - Use serial number and filesystem identifier to ensure that roll-forward doesn't get old data and think it's new. Roll-forward is enabled for v2 filesystems, though not for v1 filesystems by default. - The inode free list is now a tailq, paving the way for undelete (undelete is not yet implemented, but can be without further non-backwards-compatible changes to disk structures). - Inode atime information is kept in the Ifile, instead of on the inode; that is, the inode is never written *just* because atime was changed. Because of this the inodes remain near the file data on the disk, rather than wandering all over as the disk is read repeatedly. This speeds up repeated reads by a small but noticeable amount. Other changes of note include: - The ifile written by newfs_lfs can now be of arbitrary length, it is no longer restricted to a single indirect block. - Fixed an old bug where ctime was changed every time a vnode was created. I need to look more closely to make sure that the times are only updated during write(2) and friends, not after-the-fact during a segment write, and certainly not by the cleaner.
2001-07-14 00:30:18 +04:00
CPPFLAGS+=-DDUMP_LFS
# CPPFLAGS+= -DDEBUG -DTDEBUG -DFDEBUG -DWRITEDEBUG -DSTATS -DDIAGNOSTICS
SRCS= itime.c main.c optr.c dumprmt.c rcache.c snapshot.c tape.c \
traverse.c unctime.c ffs_bswap.c lfs_inode.c
MAN= dump_lfs.8
MLINKS+=dump_lfs.8 rdump_lfs.8
2009-02-13 19:02:05 +03:00
#CFLAGS+=-g
2012-04-07 08:52:20 +04:00
DPADD+= ${LIBUTIL}
LDADD+= -lutil
.if ${MACHINE_ARCH} == "m68000"
COPTS.lfs_inode.c+= -fno-tree-ter
.endif
2013-06-15 16:29:02 +04:00
.PATH: ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \
${NETBSDSRCDIR}/sys/ufs/ffs
.include <bsd.prog.mk>