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.
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.41 2011/03/06 17:08:16 bouyer Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 4/27/95
|
|
|
|
WARNS?= 3 # XXX: sign-compare issues
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= fsck_ffs
|
|
MAN= fsck_ffs.8
|
|
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
|
|
pass5.c pass6.c fsutil.c setup.c utilities.c ffs_bswap.c ffs_subr.c \
|
|
ffs_tables.c ffs_appleufs.c partutil.c snapshot.c quota2.c quota2_subr.c
|
|
|
|
FSCK= ${NETBSDSRCDIR}/sbin/fsck
|
|
DUMP= ${NETBSDSRCDIR}/sbin/dump
|
|
CPPFLAGS+=-I${FSCK} -I${DUMP}
|
|
.ifndef SMALLPROG
|
|
CPPFLAGS+=-DPROGRESS
|
|
.endif
|
|
SRCS+= progress.c
|
|
.PATH: ${FSCK}
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/ufs/ffs ${NETBSDSRCDIR}/sys/ufs/ufs ${FSCK} ${DUMP}
|
|
|
|
SRCS+= vfs_wapbl.c wapbl.c
|
|
.PATH: ${NETBSDSRCDIR}/sys/kern
|
|
CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0
|
|
|
|
LDADD+=-lutil
|
|
DPADD+=${LIBUTIL}
|
|
|
|
LDADD+=-lprop
|
|
DPADD+=${LIBPROP}
|
|
|
|
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
|
|
COPTS.ffs_appleufs.c+= -Wno-pointer-sign
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "m68000"
|
|
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
|
|
.endif
|
|
|
|
.if make(install)
|
|
SUBDIR+=SMM.doc
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
.include <bsd.subdir.mk>
|