2002-08-02 16:29:36 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2002/08/02 12:29:36 scw 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
|
|
|
|
|
|
|
|
PROG= dump_lfs
|
|
|
|
LINKS= ${BINDIR}/dump_lfs ${BINDIR}/rdump_lfs
|
|
|
|
CPPFLAGS+=-DRDUMP -I${.CURDIR} -I${.CURDIR}/../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
|
2002-08-02 16:29:36 +04:00
|
|
|
CPPFLAGS+=-I${.CURDIR}/../../usr.bin/who -DSUPPORT_UTMPX -DSUPPORT_UTMP
|
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 \
|
2002-08-02 16:29:36 +04:00
|
|
|
ffs_bswap.c lfs_inode.c utmpentry.c
|
1999-09-29 08:57:48 +04:00
|
|
|
BINGRP= tty
|
|
|
|
BINMODE=2555
|
|
|
|
MAN= dump_lfs.8
|
|
|
|
MLINKS+=dump_lfs.8 rdump_lfs.8
|
|
|
|
CFLAGS+=-g
|
|
|
|
|
2002-08-02 16:29:36 +04:00
|
|
|
.PATH: ${.CURDIR}/../dump ${.CURDIR}/../../sys/ufs/lfs ${.CURDIR}/../../sys/ufs/ffs ${.CURDIR}/../../usr.bin/who
|
1999-09-29 08:57:48 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|