head	1.9;
access;
symbols
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.4
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.7
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.2
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.7
	netbsd-10-0-RC6:1.7
	netbsd-10-0-RC5:1.7
	netbsd-10-0-RC4:1.7
	netbsd-10-0-RC3:1.7
	netbsd-10-0-RC2:1.7
	netbsd-10-0-RC1:1.7
	netbsd-10:1.7.0.6
	netbsd-10-base:1.7
	netbsd-9-3-RELEASE:1.6
	cjep_sun2x-base1:1.7
	cjep_sun2x:1.7.0.4
	cjep_sun2x-base:1.7
	cjep_staticlib_x-base1:1.7
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.7.0.2
	cjep_staticlib_x-base:1.7
	netbsd-9-1-RELEASE:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	is-mlppp:1.6.0.32
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.30
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.6
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.6.0.28
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	netbsd-7-1-2-RELEASE:1.6
	pgoyette-compat:1.6.0.26
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.6
	matt-nb8-mediatek:1.6.0.24
	matt-nb8-mediatek-base:1.6
	perseant-stdc-iso10646:1.6.0.22
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.20
	netbsd-8-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.18
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.6.0.16
	netbsd-7-1-RELEASE:1.6
	netbsd-7-1-RC2:1.6
	netbsd-7-nhusb-base-20170116:1.6
	bouyer-socketcan:1.6.0.14
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	netbsd-7-1-RC1:1.6
	pgoyette-localcount-20161104:1.6
	netbsd-7-0-2-RELEASE:1.6
	localcount-20160914:1.6
	netbsd-7-nhusb:1.6.0.12
	netbsd-7-nhusb-base:1.6
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.10
	pgoyette-localcount-base:1.6
	netbsd-7-0-1-RELEASE:1.6
	netbsd-7-0:1.6.0.8
	netbsd-7-0-RELEASE:1.6
	netbsd-7-0-RC3:1.6
	netbsd-7-0-RC2:1.6
	netbsd-7-0-RC1:1.6
	netbsd-6-0-6-RELEASE:1.3
	netbsd-6-1-5-RELEASE:1.3
	netbsd-7:1.6.0.6
	netbsd-7-base:1.6
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.3
	netbsd-6-1-4-RELEASE:1.3
	netbsd-6-0-5-RELEASE:1.3
	tls-earlyentropy:1.6.0.4
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-6-1-3-RELEASE:1.3
	netbsd-6-0-4-RELEASE:1.3
	netbsd-6-1-2-RELEASE:1.3
	netbsd-6-0-3-RELEASE:1.3
	netbsd-6-1-1-RELEASE:1.3
	riastradh-drm2-base2:1.6
	riastradh-drm2-base1:1.6
	riastradh-drm2:1.6.0.2
	riastradh-drm2-base:1.6
	netbsd-6-1:1.3.0.20
	netbsd-6-0-2-RELEASE:1.3
	netbsd-6-1-RELEASE:1.3
	netbsd-6-1-RC4:1.3
	netbsd-6-1-RC3:1.3
	agc-symver:1.3.0.18
	agc-symver-base:1.3
	netbsd-6-1-RC2:1.3
	netbsd-6-1-RC1:1.3
	yamt-pagecache-base8:1.3
	netbsd-6-0-1-RELEASE:1.3
	yamt-pagecache-base7:1.3
	matt-nb6-plus-nbase:1.3
	yamt-pagecache-base6:1.3
	netbsd-6-0:1.3.0.14
	netbsd-6-0-RELEASE:1.3
	netbsd-6-0-RC2:1.3
	tls-maxphys:1.3.0.12
	tls-maxphys-base:1.6
	matt-nb6-plus:1.3.0.10
	matt-nb6-plus-base:1.3
	netbsd-6-0-RC1:1.3
	yamt-pagecache-base5:1.3
	yamt-pagecache-base4:1.3
	netbsd-6:1.3.0.8
	netbsd-6-base:1.3
	yamt-pagecache-base3:1.3
	yamt-pagecache-base2:1.3
	yamt-pagecache:1.3.0.6
	yamt-pagecache-base:1.3
	cherry-xenmp:1.3.0.4
	cherry-xenmp-base:1.3
	bouyer-quota2-nbase:1.3
	bouyer-quota2:1.3.0.2
	bouyer-quota2-base:1.3
	matt-mips64-premerge-20101231:1.3
	matt-premerge-20091211:1.2;
locks; strict;
comment	@# @;


1.9
date	2026.04.23.16.26.05;	author perseant;	state Exp;
branches;
next	1.8;
commitid	ruFQh6jG7eJkn6DG;

1.8
date	2023.06.03.09.09.11;	author lukem;	state Exp;
branches;
next	1.7;
commitid	aBaIRnuykonRStrE;

1.7
date	2020.06.07.23.15.53;	author fox;	state Exp;
branches;
next	1.6;
commitid	E9lO6ahBPyTyDlbC;

1.6
date	2013.06.08.21.15.29;	author dholland;	state Exp;
branches;
next	1.5;
commitid	h9Ma4sPkqV298RSw;

1.5
date	2013.06.08.21.13.19;	author dholland;	state Exp;
branches;
next	1.4;
commitid	OWTDS0U8G5Q97RSw;

1.4
date	2013.06.06.00.54.49;	author dholland;	state Exp;
branches;
next	1.3;
commitid	FHQVyRj6ujPoruSw;

1.3
date	2010.07.28.22.35.52;	author pooka;	state Exp;
branches
	1.3.6.1
	1.3.12.1;
next	1.2;

1.2
date	2009.10.09.20.19.44;	author pooka;	state Exp;
branches;
next	1.1;

1.1
date	2009.08.06.00.51.55;	author pooka;	state Exp;
branches;
next	;

1.3.6.1
date	2014.05.22.11.37.14;	author yamt;	state Exp;
branches;
next	;
commitid	VmckIax9CgOhKwBx;

1.3.12.1
date	2013.06.23.06.28.50;	author tls;	state Exp;
branches;
next	;
commitid	OnlO1cBgtQRcIHUw;


desc
@@


1.9
log
@Use the new FCNTL mechanism to move blocks to clean segments, rather than
duplicating the code in user space.  lfs_cleanerd still decides which
segments' blocks to move but no longer identifies individual blocks
for cleaning, and does not handle file data.
@
text
@#	$NetBSD: Makefile.inc,v 1.8 2023/06/03 09:09:11 lukem Exp $
#	@@(#)Makefile	8.1 (Berkeley) 6/18/93

WARNS?=3		# XXX: too many sign-compare issues

.include <bsd.own.mk>

SRCS+=	lfs_cleanerd.c coalesce.c cleansrv.c
SRCS+=	lfs_cksum.c
SRCS+=	bufcache.c vnode.c lfs.c kernelops.c # segwrite.c
.PATH:	${NETBSDSRCDIR}/sys/ufs/lfs ${NETBSDSRCDIR}/sbin/fsck_lfs	\
	${NETBSDSRCDIR}/libexec/lfs_cleanerd

COPTS.lfs_cleanerd.c+=	${CC_WNO_STRINGOP_TRUNCATION}

FSCK_LFS= ${NETBSDSRCDIR}/sbin/fsck_lfs
DPADD+=  ${LIBUTIL}
LDADD+=  -lutil
CPPFLAGS+=-I${FSCK_LFS} -I${NETBSDSRCDIR}/sbin/mount_lfs # -DUSE_CLIENT_SERVER 
#CPPFLAGS+=-DREPAIR_ZERO_FINFO
#CPPFLAGS+=-DTEST_PATTERN
@


1.8
log
@bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2020/06/07 23:15:53 fox Exp $
d8 1
a8 1
SRCS+=	lfs_cleanerd.c fdfs.c coalesce.c cleansrv.c
@


1.7
log
@libexec/lfs_cleanerd: Suppress -Werror=stringop-truncation error

This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@@, riastradh@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2013/06/08 21:15:29 dholland Exp $
d14 1
a14 1
COPTS.lfs_cleanerd.c+=	${GCC_NO_STRINGOP_TRUNCATION}
@


1.6
log
@Missed one of the -I${NETBSDSRCDIR}/sys hacks yesterday; remove it now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2013/06/08 21:13:19 dholland Exp $
d14 2
@


1.5
log
@Redo these changes properly:
 -r1.12 libexec/lfs_cleanerd/Makefile
 -r1.15 sbin/fsck_lfs/Makefile
 -r1.6 sbin/newfs_lfs/Makefile

hi ad@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2013/06/06 00:54:49 dholland Exp $
a19 3

# XXX
CPPFLAGS+=-I${NETBSDSRCDIR}/sys
@


1.4
log
@Cleanups and hacks to make lfs userland stuff build:
   - lfs_cksum.c doesn't actually need ulfs_inode.h any more.
   - neither does lfs_itimes.c.
   - add hacks to fsck_lfs to make it compile.
   - add hacks to newfs_lfs to make it compile.
   - fix warning in ulfs_quota.c when quotas are fully disabled
     (as I guess is happening with the rumpity version)

XXX: This commit adds -I${NETBSDSRCDIR}/sys to the Makefiles for
XXX: fsck_lfs, newfs_lfs, and lfs_cleanerd. This needs to be cleaned
XXX: up ASAP; but I consider this less problematic in the short term
XXX: than spewing ulfs_*.h into /usr/include.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2010/07/28 22:35:52 pooka Exp $
a17 2
CPPFLAGS+="-Dmutex_enter(x)=" "-Dmutex_exit(x)="
CPPFLAGS+="-DKASSERT(x)="
@


1.3
log
@always add to SRCS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2009/10/09 20:19:44 pooka Exp $
d22 3
@


1.3.6.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2010/07/28 22:35:52 pooka Exp $
d18 2
@


1.3.12.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
d18 2
@


1.2
log
@LDADD+= instead of LDADD=
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2009/08/06 00:51:55 pooka Exp $
d8 2
a9 2
SRCS=	lfs_cleanerd.c fdfs.c coalesce.c cleansrv.c
SRCS+=  lfs_cksum.c
@


1.1
log
@Define syscalls of lfs userspace tools (cleaner, mainly) through
a struct called kernelops, which contains standard system calls
for the normal case and rump system calls for the rump case.

Make it possible to run the lfs cleaner in a library fashion (taking
the quick route with the implementation).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2009/06/21 20:20:50 christos Exp $
d15 2
a16 2
DPADD=  ${LIBUTIL}
LDADD=  -lutil
@

