2003-03-27 16:58:49 +03:00
|
|
|
# $NetBSD: Makefile,v 1.5 2003/03/27 13:58:49 lukem Exp $
|
1999-09-29 08:57:48 +04:00
|
|
|
# @(#)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
|
|
|
|
|
2002-08-19 14:16:51 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1999-09-29 08:57:48 +04:00
|
|
|
PROG= dump_lfs
|
|
|
|
LINKS= ${BINDIR}/dump_lfs ${BINDIR}/rdump_lfs
|
2002-08-19 14:16:51 +04:00
|
|
|
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
|
1999-09-29 08:57:48 +04:00
|
|
|
# CPPFLAGS+= -DDEBUG -DTDEBUG -DFDEBUG -DWRITEDEBUG -DSTATS -DDIAGNOSTICS
|
|
|
|
SRCS= itime.c main.c optr.c dumprmt.c rcache.c tape.c traverse.c unctime.c \
|
2003-03-27 16:58:49 +03:00
|
|
|
ffs_bswap.c lfs_inode.c
|
1999-09-29 08:57:48 +04:00
|
|
|
MAN= dump_lfs.8
|
|
|
|
MLINKS+=dump_lfs.8 rdump_lfs.8
|
|
|
|
CFLAGS+=-g
|
|
|
|
|
2002-08-19 14:16:51 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \
|
2003-03-27 16:58:49 +03:00
|
|
|
${NETBSDSRCDIR}/sys/ufs/ffs
|
1999-09-29 08:57:48 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|