head	1.11;
access;
symbols
	netbsd-11-0-RC3:1.10
	netbsd-11-0-RC2:1.10
	netbsd-11-0-RC1:1.10
	perseant-exfatfs-base-20250801:1.10
	netbsd-11:1.10.0.24
	netbsd-11-base:1.10
	netbsd-10-1-RELEASE:1.10
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.22
	perseant-exfatfs-base:1.10
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.9
	netbsd-10-0-RELEASE:1.10
	netbsd-10-0-RC6:1.10
	netbsd-10-0-RC5:1.10
	netbsd-10-0-RC4:1.10
	netbsd-10-0-RC3:1.10
	netbsd-10-0-RC2:1.10
	thorpej-ifq:1.10.0.20
	thorpej-ifq-base:1.10
	thorpej-altq-separation:1.10.0.18
	thorpej-altq-separation-base:1.10
	netbsd-10-0-RC1:1.10
	netbsd-10:1.10.0.16
	netbsd-10-base:1.10
	bouyer-sunxi-drm:1.10.0.14
	bouyer-sunxi-drm-base:1.10
	netbsd-9-3-RELEASE:1.9
	thorpej-i2c-spi-conf2:1.10.0.12
	thorpej-i2c-spi-conf2-base:1.10
	thorpej-futex2:1.10.0.10
	thorpej-futex2-base:1.10
	thorpej-cfargs2:1.10.0.8
	thorpej-cfargs2-base:1.10
	cjep_sun2x-base1:1.10
	cjep_sun2x:1.10.0.6
	cjep_sun2x-base:1.10
	cjep_staticlib_x-base1:1.10
	netbsd-9-2-RELEASE:1.9
	cjep_staticlib_x:1.10.0.4
	cjep_staticlib_x-base:1.10
	thorpej-i2c-spi-conf:1.10.0.2
	thorpej-i2c-spi-conf-base:1.10
	thorpej-cfargs:1.9.0.14
	thorpej-cfargs-base:1.10
	thorpej-futex:1.9.0.12
	thorpej-futex-base:1.9
	netbsd-9-1-RELEASE:1.9
	bouyer-xenpvh-base2:1.9
	phil-wifi-20200421:1.9
	bouyer-xenpvh-base1:1.9
	phil-wifi-20200411:1.9
	bouyer-xenpvh:1.9.0.10
	bouyer-xenpvh-base:1.9
	is-mlppp:1.9.0.8
	is-mlppp-base:1.9
	phil-wifi-20200406:1.9
	netbsd-8-2-RELEASE:1.6
	ad-namecache-base3:1.9
	netbsd-9-0-RELEASE:1.9
	netbsd-9-0-RC2:1.9
	ad-namecache-base2:1.9
	ad-namecache-base1:1.9
	ad-namecache:1.9.0.6
	ad-namecache-base:1.9
	netbsd-9-0-RC1:1.9
	phil-wifi-20191119:1.9
	netbsd-9:1.9.0.4
	netbsd-9-base:1.9
	phil-wifi-20190609:1.9
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	isaki-audio2:1.9.0.2
	isaki-audio2-base:1.9
	pgoyette-compat-merge-20190127:1.6.16.2
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.7.0.2
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	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.5
	pgoyette-compat:1.6.0.16
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.5
	tls-maxphys-base-20171202:1.6
	matt-nb8-mediatek:1.6.0.14
	matt-nb8-mediatek-base:1.6
	nick-nhusb-base-20170825:1.6
	perseant-stdc-iso10646:1.6.0.12
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.10
	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.8
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	jdolecek-ncq:1.6.0.6
	jdolecek-ncq-base:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.5.0.10
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	nick-nhusb-base-20170204:1.6
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.6.0.4
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	netbsd-7-1-RC1:1.5
	nick-nhusb-base-20161204:1.6
	pgoyette-localcount-20161104:1.6
	netbsd-7-0-2-RELEASE:1.5
	nick-nhusb-base-20161004:1.6
	localcount-20160914:1.6
	netbsd-7-nhusb:1.5.0.8
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.2
	pgoyette-localcount-base:1.6
	nick-nhusb-base-20160907:1.6
	nick-nhusb-base-20160529:1.5
	netbsd-7-0-1-RELEASE:1.5
	nick-nhusb-base-20160422:1.5
	nick-nhusb-base-20160319:1.5
	nick-nhusb-base-20151226:1.5
	netbsd-7-0:1.5.0.6
	netbsd-7-0-RELEASE:1.5
	nick-nhusb-base-20150921:1.5
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	nick-nhusb-base-20150606:1.5
	nick-nhusb-base-20150406:1.5
	nick-nhusb:1.5.0.4
	nick-nhusb-base:1.5
	netbsd-6-0-6-RELEASE:1.3
	netbsd-6-1-5-RELEASE:1.3
	netbsd-7:1.5.0.2
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.1.10.2
	netbsd-6-1-4-RELEASE:1.3
	netbsd-6-0-5-RELEASE:1.3
	tls-earlyentropy:1.4.0.10
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	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
	rmind-smpnet-nbase:1.5
	netbsd-6-1-1-RELEASE:1.3
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.8
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.2
	rmind-smpnet-base:1.5
	netbsd-6-1:1.3.0.10
	netbsd-6-0-2-RELEASE:1.3
	netbsd-6-1-RELEASE:1.3
	khorben-n900:1.4.0.6
	netbsd-6-1-RC4:1.3
	netbsd-6-1-RC3:1.3
	agc-symver:1.4.0.4
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.3
	netbsd-6-1-RC1:1.3
	yamt-pagecache-base8:1.4
	netbsd-6-0-1-RELEASE:1.3
	yamt-pagecache-base7:1.4
	matt-nb6-plus-nbase:1.3
	yamt-pagecache-base6:1.3
	netbsd-6-0:1.3.0.8
	netbsd-6-0-RELEASE:1.3
	netbsd-6-0-RC2:1.3
	tls-maxphys:1.3.0.6
	tls-maxphys-base:1.5
	matt-nb6-plus:1.3.0.4
	matt-nb6-plus-base:1.3
	netbsd-6-0-RC1:1.3
	jmcneill-usbmp-base10:1.3
	yamt-pagecache-base5:1.3
	jmcneill-usbmp-base9:1.3
	yamt-pagecache-base4:1.3
	jmcneill-usbmp-base8:1.3
	jmcneill-usbmp-base7:1.3
	jmcneill-usbmp-base6:1.3
	jmcneill-usbmp-base5:1.3
	jmcneill-usbmp-base4:1.3
	jmcneill-usbmp-base3:1.3
	jmcneill-usbmp-pre-base2:1.1
	jmcneill-usbmp-base2:1.3
	netbsd-6:1.3.0.2
	netbsd-6-base:1.3
	jmcneill-usbmp:1.1.0.14
	jmcneill-usbmp-base:1.1
	jmcneill-audiomp3:1.1.0.12
	jmcneill-audiomp3-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.10
	yamt-pagecache-base:1.1
	rmind-uvmplock-nbase:1.1
	jruoho-x86intr:1.1.0.8
	cherry-xenmp:1.1.0.6
	cherry-xenmp-base:1.1
	rmind-uvmplock-base:1.1
	rmind-uvmplock:1.1.0.4
	bouyer-quota2-nbase:1.1
	bouyer-quota2:1.1.0.2
	bouyer-quota2-base:1.1;
locks; strict;
comment	@# @;


1.11
date	2025.09.19.05.18.22;	author mrg;	state Exp;
branches;
next	1.10;
commitid	ZLGoifTzxLEsBhbG;

1.10
date	2021.04.15.17.26.22;	author christos;	state Exp;
branches;
next	1.9;
commitid	gxG7HTxshrRWFpPC;

1.9
date	2019.02.05.09.54.36;	author hannken;	state Exp;
branches
	1.9.14.1;
next	1.8;
commitid	twjwObL57tZCSyaB;

1.8
date	2018.08.18.11.57.57;	author christos;	state Exp;
branches;
next	1.7;
commitid	tOoDpGrqJOAl4BOA;

1.7
date	2018.05.28.21.05.01;	author chs;	state Exp;
branches
	1.7.2.1;
next	1.6;
commitid	NQFwoUduS0toJ6EA;

1.6
date	2016.06.18.21.45.05;	author christos;	state Exp;
branches
	1.6.16.1;
next	1.5;
commitid	NXwsfn7oTMS8KZaz;

1.5
date	2014.04.22.15.12.52;	author christos;	state Exp;
branches
	1.5.4.1;
next	1.4;
commitid	kMMSQtHZ74N2UGxx;

1.4
date	2012.11.21.17.48.05;	author pooka;	state Exp;
branches
	1.4.2.1
	1.4.10.1;
next	1.3;

1.3
date	2012.02.05.18.46.05;	author christos;	state Exp;
branches
	1.3.6.1;
next	1.2;

1.2
date	2012.02.04.18.28.53;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	2011.01.18.22.21.22;	author haad;	state Exp;
branches
	1.1.4.1
	1.1.8.1
	1.1.10.1
	1.1.14.1;
next	;

1.9.14.1
date	2021.04.17.17.26.21;	author thorpej;	state Exp;
branches;
next	;
commitid	bct79XL9ibnNBFPC;

1.7.2.1
date	2019.06.10.22.09.44;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.6.16.1
date	2018.06.25.07.26.06;	author pgoyette;	state Exp;
branches;
next	1.6.16.2;
commitid	8PtAu9af7VvhiDHA;

1.6.16.2
date	2018.09.06.06.56.44;	author pgoyette;	state Exp;
branches;
next	;
commitid	HCi1bXD317XIK0RA;

1.5.4.1
date	2016.07.09.20.25.21;	author skrll;	state Exp;
branches;
next	;
commitid	6Uo6zNa4c5W4AGdz;

1.4.2.1
date	2014.05.18.17.46.12;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.4.10.1
date	2014.08.10.06.56.11;	author tls;	state Exp;
branches;
next	;
commitid	i4aS5ndhchyrCMLx;

1.3.6.1
date	2013.02.25.00.30.01;	author tls;	state Exp;
branches;
next	1.3.6.2;

1.3.6.2
date	2014.08.20.00.04.34;	author tls;	state Exp;
branches;
next	1.3.6.3;
commitid	jTnpym9Qu0o4R1Nx;

1.3.6.3
date	2017.12.03.11.39.02;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.1.4.1
date	2011.01.18.22.21.22;	author rmind;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2011.03.05.20.55.50;	author rmind;	state Exp;
branches;
next	;

1.1.8.1
date	2011.01.18.22.21.22;	author jruoho;	state dead;
branches;
next	1.1.8.2;

1.1.8.2
date	2011.06.06.09.09.51;	author jruoho;	state Exp;
branches;
next	;

1.1.10.1
date	2012.04.17.00.08.37;	author yamt;	state Exp;
branches;
next	1.1.10.2;

1.1.10.2
date	2013.01.16.05.33.48;	author yamt;	state Exp;
branches;
next	1.1.10.3;

1.1.10.3
date	2014.05.22.11.41.08;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.1.14.1
date	2012.02.18.07.35.37;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.11
log
@avoid various seemingly bogus warnings with GCC 14.

i couldn't see any real case for any of these issues.  it seems like
the "maybe uninit" checker has gotten worse.

additionally, the "dangling pointer" checker also failing.
@
text
@#	$NetBSD: Makefile.zfsmod,v 1.10 2021/04/15 17:26:22 christos Exp $

ZFSDIR=	${S}/../external/cddl/osnet

.PATH:	${ZFSDIR}/dist/common/zfs

SRCS+=	zfs_comutil.c
SRCS+=	zfs_deleg.c
SRCS+=	zfs_fletcher.c
SRCS+=	zfs_namecheck.c
SRCS+=	zfs_prop.c
SRCS+=	zpool_prop.c
SRCS+=	zprop_common.c

.PATH:	${ZFSDIR}/lib/libzpool

SRCS+=	atomic.c

.PATH:	${ZFSDIR}/dist/uts/common/fs/zfs

SRCS+=	arc.c
SRCS+=	blkptr.c
SRCS+=	bplist.c
SRCS+=	bpobj.c
SRCS+=	bptree.c
SRCS+=	bqueue.c
SRCS+=	dbuf.c
SRCS+=	ddt.c
SRCS+=	ddt_zap.c
SRCS+=	dmu.c
SRCS+=	dmu_diff.c
SRCS+=	dmu_object.c
SRCS+=	dmu_objset.c
SRCS+=	dmu_send.c
SRCS+=	dmu_traverse.c
SRCS+=	dmu_tx.c
SRCS+=	dmu_zfetch.c
SRCS+=	dnode.c
SRCS+=	dnode_sync.c
SRCS+=	dsl_bookmark.c
SRCS+=	dsl_dataset.c
SRCS+=	dsl_deadlist.c
SRCS+=	dsl_deleg.c
SRCS+=	dsl_destroy.c
SRCS+=	dsl_dir.c
SRCS+=	dsl_pool.c
SRCS+=	dsl_prop.c
SRCS+=	dsl_scan.c
SRCS+=	dsl_synctask.c
SRCS+=	dsl_userhold.c
#SRCS+=	edonr_zfs.c
SRCS+=	gzip.c
SRCS+=	lz4.c
SRCS+=	lzjb.c
SRCS+=	metaslab.c
SRCS+=	multilist.c
SRCS+=	range_tree.c
SRCS+=	refcount.c
SRCS+=	rrwlock.c
SRCS+=	sa.c
SRCS+=	sha256.c
#SRCS+=	skein_zfs.c
SRCS+=	spa.c
SRCS+=	spa_config.c
SRCS+=	spa_errlog.c
SRCS+=	spa_history.c
SRCS+=	spa_misc.c
SRCS+=	space_map.c
SRCS+=	space_reftree.c
SRCS+=	trim_map.c
SRCS+=	txg.c
SRCS+=	uberblock.c
SRCS+=	unique.c
SRCS+=	vdev.c
SRCS+=	vdev_cache.c
SRCS+=	vdev_disk.c
SRCS+=	vdev_file.c
SRCS+=	vdev_label.c
SRCS+=	vdev_mirror.c
SRCS+=	vdev_missing.c
SRCS+=	vdev_queue.c
SRCS+=	vdev_raidz.c
SRCS+=	vdev_root.c
SRCS+=	zap.c
SRCS+=	zap_leaf.c
SRCS+=	zap_micro.c
SRCS+=	zfeature.c
SRCS+=	zfeature_common.c
SRCS+=	zfs_byteswap.c
SRCS+=	zfs_ctldir.c
SRCS+=	zfs_debug.c
SRCS+=	zfs_dir.c
SRCS+=	zfs_fm.c
SRCS+=	zfs_fuid.c
SRCS+=	zfs_ioctl.c
SRCS+=	zfs_ioctl_compat.c
SRCS+=	zfs_log.c
SRCS+=	zfs_onexit.c
SRCS+=	zfs_replay.c
SRCS+=	zfs_rlock.c
SRCS+=	zfs_sa.c
SRCS+=	zfs_vfsops.c
SRCS+=	zfs_vnops.c
SRCS+=	zfs_znode.c
SRCS+=	zil.c
SRCS+=	zio.c
SRCS+=	zio_checksum.c
SRCS+=	zio_compress.c
SRCS+=	zio_inject.c
SRCS+=	zle.c
SRCS+=	zrlock.c
#SRCS+=	zutil.c
SRCS+=	zvol.c
SRCS+= 	zfs_acl.c

WARNS=		0

CWARNFLAGS+=	-Wall
CWARNFLAGS+=	-Wno-unknown-pragmas
CWARNFLAGS+=	-Wno-missing-braces
CWARNFLAGS+=	-Wno-parentheses
CWARNFLAGS+=	-Wno-unused
CWARNFLAGS+=	-Wno-switch
CWARNFLAGS+=	-Wno-strict-prototypes
CWARNFLAGS+=	-Wno-missing-prototypes
CWARNFLAGS+=	${CC_WNO_MAYBE_UNINITIALIZED}

CPPFLAGS+=	-I${ZFSDIR}/sys
CPPFLAGS+=      -I${ZFSDIR}/dist/common
CPPFLAGS+=	-I${ZFSDIR}/dist/common/acl
CPPFLAGS+=	-I${ZFSDIR}/dist/common/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/fs/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zmod
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common

CPPFLAGS+=	-D_PROPLIB_ZFS_CONFLICT
@


1.10
log
@- Don't define NEED_ISYSTEM. This is a rump thing and should be only exposed
  there.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.9 2019/02/05 09:54:36 hannken Exp $
d126 1
@


1.9
log
@Prepare the implementation of the ZFS control directory ".zfs".

- Move the stub routines from zfs_stub.c to zfs_ctldir.c and
  remove now empty file zfs_stub.c

- Add stub routines for zfsctl_loadvnode() to initialize control
  nodes and zfsctl_snapshot() to retrieve ".zfs/snapshot".

- Add an initial vnode operations vector for control nodes.

- Implement lookup into ".zfs" and lookup ".." from ".zfs/snapshot/<snap>".

- Change nodeid of mounted snapshots to the snapshot object id.

- Respect "-u" flag to "zfs rename <snapshot> ...".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.8 2018/08/18 11:57:57 christos Exp $
a137 2

NEED_ISYSTEM=	# duplicate headers, depends on -isystem to build
@


1.9.14.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.10 2021/04/15 17:26:22 christos Exp $
d138 2
@


1.8
log
@remove NOGCCERROR; hides real issues.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.7 2018/05/28 21:05:01 chs Exp $
a115 4
.PATH: ${ZFSDIR}/sys/kern

SRCS+=	zfs_stub.c

@


1.7
log
@merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.6 2016/06/18 21:45:05 christos Exp $
a120 1
NOGCCERROR=	yes
@


1.7.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.9 2019/02/05 09:54:36 hannken Exp $
d116 4
d121 1
@


1.6
log
@avoid duplicate symbols.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.5 2014/04/22 15:12:52 christos Exp $
a14 8
.PATH:	${ZFSDIR}/dist/uts/common/fs

#SRCS+=	gfs.c

.PATH: ${ZFSDIR}/dist/uts/common/zmod

#SRCS+= trees.c

d22 1
d24 3
d31 1
d40 1
d42 1
d44 1
d48 1
a48 1
SRCS+=	dsl_scrub.c
d50 2
d53 1
d56 2
d60 1
d62 1
d69 2
d87 2
d90 2
a91 1
#SRCS+=	zfs_ctldir.c
d93 1
a94 1
SRCS+=	zfs_fm.c
d96 1
d98 1
d101 1
a104 1
SRCS+= 	zfs_acl.c
d110 2
d114 1
a114 1
SRCS+=	zle.c
d118 1
a118 1
SRCS+= zfs_stub.c
a126 1
CWARNFLAGS+=	-Wno-uninitialized
a130 1
CWARNFLAGS+=	-Wno-format
a141 3
CPPFLAGS+=	-Dcaddr_t=__caddr_t "-D__va_list=va_list" -D__NetBSD__
CPPFLAGS+=	-std=c99
CPPFLAGS+=	-D_NFS_NFS_H_
a143 3
CPPFLAGS+=	-DDIAGNOSTIC
# -DZFS_DEBUG

@


1.6.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.7 2018/05/28 21:05:01 chs Exp $
d15 8
a29 1
SRCS+=	blkptr.c
a30 3
SRCS+=	bpobj.c
SRCS+=	bptree.c
SRCS+=	bqueue.c
a34 1
SRCS+=	dmu_diff.c
a42 1
SRCS+=	dsl_bookmark.c
a43 1
SRCS+=	dsl_deadlist.c
a44 1
SRCS+=	dsl_destroy.c
d48 1
a48 1
SRCS+=	dsl_scan.c
a49 2
SRCS+=	dsl_userhold.c
#SRCS+=	edonr_zfs.c
a50 1
SRCS+=	lz4.c
a52 2
SRCS+=	multilist.c
SRCS+=	range_tree.c
a54 1
SRCS+=	sa.c
a55 1
#SRCS+=	skein_zfs.c
a61 2
SRCS+=	space_reftree.c
SRCS+=	trim_map.c
a77 2
SRCS+=	zfeature.c
SRCS+=	zfeature_common.c
d79 1
a79 2
SRCS+=	zfs_ctldir.c
SRCS+=	zfs_debug.c
d81 1
a82 1
SRCS+=	zfs_fuid.c
a83 1
SRCS+=	zfs_ioctl_compat.c
a84 1
SRCS+=	zfs_onexit.c
a86 1
SRCS+=	zfs_sa.c
d90 1
a95 2
SRCS+=	zle.c
SRCS+=	zrlock.c
d98 1
a98 1
SRCS+= 	zfs_acl.c
d102 1
a102 1
SRCS+=	zfs_stub.c
d111 1
d116 1
d128 3
d133 3
@


1.6.16.2
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.8 2018/08/18 11:57:57 christos Exp $
d121 1
@


1.5
log
@add atomic.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.4 2012/11/21 17:48:05 pooka Exp $
d21 1
a21 1
SRCS+= trees.c
d96 1
a96 1
SRCS+=	zutil.c
@


1.5.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.6 2016/06/18 21:45:05 christos Exp $
d21 1
a21 1
#SRCS+= trees.c
d96 1
a96 1
#SRCS+=	zutil.c
@


1.4
log
@Don't unconditionally use the error-silencing magic of -isystem
(as opposed to -I) on every component, only the zfs ones depend on it
to build.  Regular modules might benefit from a similar move.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.3 2012/02/05 18:46:05 christos Exp $
d23 4
@


1.4.10.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.5 2014/04/22 15:12:52 christos Exp $
a22 4
.PATH:	${ZFSDIR}/lib/libzpool

SRCS+=	atomic.c

@


1.4.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.4 2012/11/21 17:48:05 pooka Exp $
a22 4
.PATH:	${ZFSDIR}/lib/libzpool

SRCS+=	atomic.c

@


1.3
log
@-D flags belong in CPPFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.2 2012/02/04 18:28:53 christos Exp $
d131 2
@


1.3.6.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.3 2012/02/05 18:46:05 christos Exp $
a130 2

NEED_ISYSTEM=	# duplicate headers, depends on -isystem to build
@


1.3.6.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a22 4
.PATH:	${ZFSDIR}/lib/libzpool

SRCS+=	atomic.c

@


1.3.6.3
log
@update from HEAD
@
text
@d21 1
a21 1
#SRCS+= trees.c
d96 1
a96 1
#SRCS+=	zutil.c
@


1.2
log
@Remove -g -O0. It does not work on amd64 at all.
If you want debugging on, add it yourself.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.1 2011/01/18 22:21:22 haad Exp $
d129 1
a129 1
CFLAGS+=	-DDIAGNOSTIC
@


1.1
log
@Add support for compiling ZFS and Solaris modules as RUMP libraries. Add
some locking and rumpcopy primitives and refactor module building Makefiles
to work with both RUMP and kernel modules. This is first part of adding
support for regular test of zfs on NetBSD to hunt some bugs and make it
stable.

Ok by pooka@@.
@
text
@d1 1
a1 1
#	$NetBSD$
d129 1
a129 1
CFLAGS+=	-DDIAGNOSTIC -g -O0
@


1.1.10.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.1 2011/01/18 22:21:22 haad Exp $
d129 1
a129 1
CPPFLAGS+=	-DDIAGNOSTIC
@


1.1.10.2
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.1.10.1 2012/04/17 00:08:37 yamt Exp $
a130 2

NEED_ISYSTEM=	# duplicate headers, depends on -isystem to build
@


1.1.10.3
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.zfsmod,v 1.1.10.2 2013/01/16 05:33:48 yamt Exp $
a22 4
.PATH:	${ZFSDIR}/lib/libzpool

SRCS+=	atomic.c

@


1.1.14.1
log
@merge to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.zfsmod,v 1.3 2012/02/05 18:46:05 christos Exp $
d129 1
a129 1
CPPFLAGS+=	-DDIAGNOSTIC
@


1.1.8.1
log
@file Makefile.zfsmod was added on branch jruoho-x86intr on 2011-06-06 09:09:51 +0000
@
text
@d1 130
@


1.1.8.2
log
@Sync with HEAD.
@
text
@a0 130
#	$NetBSD: Makefile.zfsmod,v 1.1 2011/01/18 22:21:22 haad Exp $

ZFSDIR=	${S}/../external/cddl/osnet

.PATH:	${ZFSDIR}/dist/common/zfs

SRCS+=	zfs_comutil.c
SRCS+=	zfs_deleg.c
SRCS+=	zfs_fletcher.c
SRCS+=	zfs_namecheck.c
SRCS+=	zfs_prop.c
SRCS+=	zpool_prop.c
SRCS+=	zprop_common.c

.PATH:	${ZFSDIR}/dist/uts/common/fs

#SRCS+=	gfs.c

.PATH: ${ZFSDIR}/dist/uts/common/zmod

SRCS+= trees.c

.PATH:	${ZFSDIR}/dist/uts/common/fs/zfs

SRCS+=	arc.c
SRCS+=	bplist.c
SRCS+=	dbuf.c
SRCS+=	ddt.c
SRCS+=	ddt_zap.c
SRCS+=	dmu.c
SRCS+=	dmu_object.c
SRCS+=	dmu_objset.c
SRCS+=	dmu_send.c
SRCS+=	dmu_traverse.c
SRCS+=	dmu_tx.c
SRCS+=	dmu_zfetch.c
SRCS+=	dnode.c
SRCS+=	dnode_sync.c
SRCS+=	dsl_dataset.c
SRCS+=	dsl_deleg.c
SRCS+=	dsl_dir.c
SRCS+=	dsl_pool.c
SRCS+=	dsl_prop.c
SRCS+=	dsl_scrub.c
SRCS+=	dsl_synctask.c
SRCS+=	gzip.c
SRCS+=	lzjb.c
SRCS+=	metaslab.c
SRCS+=	refcount.c
SRCS+=	rrwlock.c
SRCS+=	sha256.c
SRCS+=	spa.c
SRCS+=	spa_config.c
SRCS+=	spa_errlog.c
SRCS+=	spa_history.c
SRCS+=	spa_misc.c
SRCS+=	space_map.c
SRCS+=	txg.c
SRCS+=	uberblock.c
SRCS+=	unique.c
SRCS+=	vdev.c
SRCS+=	vdev_cache.c
SRCS+=	vdev_disk.c
SRCS+=	vdev_file.c
SRCS+=	vdev_label.c
SRCS+=	vdev_mirror.c
SRCS+=	vdev_missing.c
SRCS+=	vdev_queue.c
SRCS+=	vdev_raidz.c
SRCS+=	vdev_root.c
SRCS+=	zap.c
SRCS+=	zap_leaf.c
SRCS+=	zap_micro.c
SRCS+=	zfs_byteswap.c
#SRCS+=	zfs_ctldir.c
SRCS+=	zfs_dir.c
SRCS+=	zfs_fuid.c
SRCS+=	zfs_fm.c
SRCS+=	zfs_ioctl.c
SRCS+=	zfs_log.c
SRCS+=	zfs_replay.c
SRCS+=	zfs_rlock.c
SRCS+=	zfs_vfsops.c
SRCS+=	zfs_vnops.c
SRCS+=	zfs_znode.c
SRCS+= 	zfs_acl.c
SRCS+=	zil.c
SRCS+=	zio.c
SRCS+=	zio_checksum.c
SRCS+=	zio_compress.c
SRCS+=	zio_inject.c
SRCS+=	zutil.c
SRCS+=	zvol.c
SRCS+=	zle.c

.PATH: ${ZFSDIR}/sys/kern

SRCS+= zfs_stub.c

WARNS=		0
NOGCCERROR=	yes

CWARNFLAGS+=	-Wall
CWARNFLAGS+=	-Wno-unknown-pragmas
CWARNFLAGS+=	-Wno-missing-braces
CWARNFLAGS+=	-Wno-parentheses
CWARNFLAGS+=	-Wno-uninitialized
CWARNFLAGS+=	-Wno-unused
CWARNFLAGS+=	-Wno-switch
CWARNFLAGS+=	-Wno-strict-prototypes
CWARNFLAGS+=	-Wno-missing-prototypes
CWARNFLAGS+=	-Wno-format

CPPFLAGS+=	-I${ZFSDIR}/sys
CPPFLAGS+=      -I${ZFSDIR}/dist/common
CPPFLAGS+=	-I${ZFSDIR}/dist/common/acl
CPPFLAGS+=	-I${ZFSDIR}/dist/common/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/fs/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zmod
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common

CPPFLAGS+=	-Dcaddr_t=__caddr_t "-D__va_list=va_list" -D__NetBSD__
CPPFLAGS+=	-std=c99
CPPFLAGS+=	-D_NFS_NFS_H_
CPPFLAGS+=	-D_PROPLIB_ZFS_CONFLICT

CFLAGS+=	-DDIAGNOSTIC -g -O0
# -DZFS_DEBUG
@


1.1.4.1
log
@file Makefile.zfsmod was added on branch rmind-uvmplock on 2011-03-05 20:55:50 +0000
@
text
@d1 130
@


1.1.4.2
log
@sync with head
@
text
@a0 130
#	$NetBSD$

ZFSDIR=	${S}/../external/cddl/osnet

.PATH:	${ZFSDIR}/dist/common/zfs

SRCS+=	zfs_comutil.c
SRCS+=	zfs_deleg.c
SRCS+=	zfs_fletcher.c
SRCS+=	zfs_namecheck.c
SRCS+=	zfs_prop.c
SRCS+=	zpool_prop.c
SRCS+=	zprop_common.c

.PATH:	${ZFSDIR}/dist/uts/common/fs

#SRCS+=	gfs.c

.PATH: ${ZFSDIR}/dist/uts/common/zmod

SRCS+= trees.c

.PATH:	${ZFSDIR}/dist/uts/common/fs/zfs

SRCS+=	arc.c
SRCS+=	bplist.c
SRCS+=	dbuf.c
SRCS+=	ddt.c
SRCS+=	ddt_zap.c
SRCS+=	dmu.c
SRCS+=	dmu_object.c
SRCS+=	dmu_objset.c
SRCS+=	dmu_send.c
SRCS+=	dmu_traverse.c
SRCS+=	dmu_tx.c
SRCS+=	dmu_zfetch.c
SRCS+=	dnode.c
SRCS+=	dnode_sync.c
SRCS+=	dsl_dataset.c
SRCS+=	dsl_deleg.c
SRCS+=	dsl_dir.c
SRCS+=	dsl_pool.c
SRCS+=	dsl_prop.c
SRCS+=	dsl_scrub.c
SRCS+=	dsl_synctask.c
SRCS+=	gzip.c
SRCS+=	lzjb.c
SRCS+=	metaslab.c
SRCS+=	refcount.c
SRCS+=	rrwlock.c
SRCS+=	sha256.c
SRCS+=	spa.c
SRCS+=	spa_config.c
SRCS+=	spa_errlog.c
SRCS+=	spa_history.c
SRCS+=	spa_misc.c
SRCS+=	space_map.c
SRCS+=	txg.c
SRCS+=	uberblock.c
SRCS+=	unique.c
SRCS+=	vdev.c
SRCS+=	vdev_cache.c
SRCS+=	vdev_disk.c
SRCS+=	vdev_file.c
SRCS+=	vdev_label.c
SRCS+=	vdev_mirror.c
SRCS+=	vdev_missing.c
SRCS+=	vdev_queue.c
SRCS+=	vdev_raidz.c
SRCS+=	vdev_root.c
SRCS+=	zap.c
SRCS+=	zap_leaf.c
SRCS+=	zap_micro.c
SRCS+=	zfs_byteswap.c
#SRCS+=	zfs_ctldir.c
SRCS+=	zfs_dir.c
SRCS+=	zfs_fuid.c
SRCS+=	zfs_fm.c
SRCS+=	zfs_ioctl.c
SRCS+=	zfs_log.c
SRCS+=	zfs_replay.c
SRCS+=	zfs_rlock.c
SRCS+=	zfs_vfsops.c
SRCS+=	zfs_vnops.c
SRCS+=	zfs_znode.c
SRCS+= 	zfs_acl.c
SRCS+=	zil.c
SRCS+=	zio.c
SRCS+=	zio_checksum.c
SRCS+=	zio_compress.c
SRCS+=	zio_inject.c
SRCS+=	zutil.c
SRCS+=	zvol.c
SRCS+=	zle.c

.PATH: ${ZFSDIR}/sys/kern

SRCS+= zfs_stub.c

WARNS=		0
NOGCCERROR=	yes

CWARNFLAGS+=	-Wall
CWARNFLAGS+=	-Wno-unknown-pragmas
CWARNFLAGS+=	-Wno-missing-braces
CWARNFLAGS+=	-Wno-parentheses
CWARNFLAGS+=	-Wno-uninitialized
CWARNFLAGS+=	-Wno-unused
CWARNFLAGS+=	-Wno-switch
CWARNFLAGS+=	-Wno-strict-prototypes
CWARNFLAGS+=	-Wno-missing-prototypes
CWARNFLAGS+=	-Wno-format

CPPFLAGS+=	-I${ZFSDIR}/sys
CPPFLAGS+=      -I${ZFSDIR}/dist/common
CPPFLAGS+=	-I${ZFSDIR}/dist/common/acl
CPPFLAGS+=	-I${ZFSDIR}/dist/common/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/fs/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zmod
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common/zfs
CPPFLAGS+=	-I${ZFSDIR}/dist/uts/common

CPPFLAGS+=	-Dcaddr_t=__caddr_t "-D__va_list=va_list" -D__NetBSD__
CPPFLAGS+=	-std=c99
CPPFLAGS+=	-D_NFS_NFS_H_
CPPFLAGS+=	-D_PROPLIB_ZFS_CONFLICT

CFLAGS+=	-DDIAGNOSTIC -g -O0
# -DZFS_DEBUG
@


