063f96f3c2
to store disk quota usage and limits, integrated with ffs metadata. Usage is checked by fsck_ffs (no more quotacheck) and is covered by the WAPBL journal. Enabled with kernel option QUOTA2 (added where QUOTA was enabled in kernel config files), turned on with tunefs(8) on a per-filesystem basis. mount_mfs(8) can also turn quotas on. See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html for details.
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.28 2011/03/06 17:08:16 bouyer Exp $
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
WARNS?= 3 # XXX: sign-compare issues in ../fsck_ffs
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= fsdb
|
|
MAN= fsdb.8
|
|
SRCS= fsdb.c fsdbutil.c
|
|
SRCS+= dir.c inode.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
|
|
pass5.c setup.c utilities.c
|
|
SRCS+= ffs_bswap.c ffs_subr.c ffs_tables.c ffs_appleufs.c
|
|
SRCS+= fsutil.c partutil.c
|
|
|
|
FSCK= ${NETBSDSRCDIR}/sbin/fsck
|
|
FSCK_FFS=${NETBSDSRCDIR}/sbin/fsck_ffs
|
|
CPPFLAGS+= -I${FSCK} -I${FSCK_FFS}
|
|
.PATH: ${FSCK} ${FSCK_FFS} ${NETBSDSRCDIR}/sys/ufs/ffs
|
|
|
|
SRCS+= vfs_wapbl.c wapbl.c
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/ufs/ufs
|
|
SRCS+= quota2_subr.c
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/kern
|
|
CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0
|
|
|
|
SRCS+= quota2.c
|
|
|
|
LDADD+= -lutil -ledit -lterminfo -lprop
|
|
.ifndef HOSTPROG
|
|
DPADD+= ${LIBUTIL} ${LIBEDIT} ${LIBTERMINFO} ${LIBPROP}
|
|
.endif
|
|
|
|
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
|
|
.for f in fsdb ffs_appleufs
|
|
COPTS.${f}.c+= -Wno-pointer-sign
|
|
.endfor
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "m68000"
|
|
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|