head 1.7; access; symbols netbsd-11-0-RC4:1.7 netbsd-11-0-RC3:1.7 netbsd-11-0-RC2:1.7 netbsd-11-0-RC1:1.7 perseant-exfatfs-base-20250801:1.7 netbsd-11:1.7.0.10 netbsd-11-base:1.7 netbsd-10-1-RELEASE:1.7 perseant-exfatfs-base-20240630:1.7 perseant-exfatfs:1.7.0.8 perseant-exfatfs-base:1.7 netbsd-8-3-RELEASE:1.5 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.6 is-mlppp-base:1.6 phil-wifi-20200406:1.6 netbsd-8-2-RELEASE:1.5 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.4 netbsd-9-base:1.6 phil-wifi-20190609:1.6 netbsd-8-1-RELEASE:1.5 netbsd-8-1-RC1:1.5 pgoyette-compat-merge-20190127:1.5.14.1 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.4 pgoyette-compat-0728:1.6 netbsd-8-0-RELEASE:1.5 phil-wifi:1.6.0.2 phil-wifi-base:1.6 pgoyette-compat-0625:1.6 netbsd-8-0-RC2:1.5 pgoyette-compat-0521:1.5 pgoyette-compat-0502:1.5 pgoyette-compat-0422:1.5 netbsd-8-0-RC1:1.5 pgoyette-compat-0415:1.5 pgoyette-compat-0407:1.5 pgoyette-compat-0330:1.5 pgoyette-compat-0322:1.5 pgoyette-compat-0315:1.5 netbsd-7-1-2-RELEASE:1.4 pgoyette-compat:1.5.0.14 pgoyette-compat-base:1.5 netbsd-7-1-1-RELEASE:1.4 matt-nb8-mediatek:1.5.0.12 matt-nb8-mediatek-base:1.5 perseant-stdc-iso10646:1.5.0.10 perseant-stdc-iso10646-base:1.5 netbsd-8:1.5.0.8 netbsd-8-base:1.5 prg-localcount2-base3:1.5 prg-localcount2-base2:1.5 prg-localcount2-base1:1.5 prg-localcount2:1.5.0.6 prg-localcount2-base:1.5 pgoyette-localcount-20170426:1.5 bouyer-socketcan-base1:1.5 pgoyette-localcount-20170320:1.5 netbsd-7-1:1.4.0.30 netbsd-7-1-RELEASE:1.4 netbsd-7-1-RC2:1.4 netbsd-7-nhusb-base-20170116:1.4 bouyer-socketcan:1.5.0.4 bouyer-socketcan-base:1.5 pgoyette-localcount-20170107:1.5 netbsd-7-1-RC1:1.4 pgoyette-localcount-20161104:1.5 netbsd-7-0-2-RELEASE:1.4 localcount-20160914:1.5 netbsd-7-nhusb:1.4.0.28 netbsd-7-nhusb-base:1.4 pgoyette-localcount-20160806:1.5 pgoyette-localcount-20160726:1.5 pgoyette-localcount:1.5.0.2 pgoyette-localcount-base:1.5 netbsd-7-0-1-RELEASE:1.4 netbsd-7-0:1.4.0.26 netbsd-7-0-RELEASE:1.4 netbsd-7-0-RC3:1.4 netbsd-7-0-RC2:1.4 netbsd-7-0-RC1:1.4 netbsd-6-0-6-RELEASE:1.4 netbsd-6-1-5-RELEASE:1.4 netbsd-7:1.4.0.24 netbsd-7-base:1.4 yamt-pagecache-base9:1.4 yamt-pagecache-tag8:1.4 netbsd-6-1-4-RELEASE:1.4 netbsd-6-0-5-RELEASE:1.4 tls-earlyentropy:1.4.0.22 tls-earlyentropy-base:1.4 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4 riastradh-drm2-base3:1.4 netbsd-6-1-3-RELEASE:1.4 netbsd-6-0-4-RELEASE:1.4 netbsd-6-1-2-RELEASE:1.4 netbsd-6-0-3-RELEASE:1.4 netbsd-6-1-1-RELEASE:1.4 riastradh-drm2-base2:1.4 riastradh-drm2-base1:1.4 riastradh-drm2:1.4.0.16 riastradh-drm2-base:1.4 netbsd-6-1:1.4.0.20 netbsd-6-0-2-RELEASE:1.4 netbsd-6-1-RELEASE:1.4 netbsd-6-1-RC4:1.4 netbsd-6-1-RC3:1.4 agc-symver:1.4.0.18 agc-symver-base:1.4 netbsd-6-1-RC2:1.4 netbsd-6-1-RC1:1.4 yamt-pagecache-base8:1.4 netbsd-6-0-1-RELEASE:1.4 yamt-pagecache-base7:1.4 matt-nb6-plus-nbase:1.4 yamt-pagecache-base6:1.4 netbsd-6-0:1.4.0.14 netbsd-6-0-RELEASE:1.4 netbsd-6-0-RC2:1.4 tls-maxphys:1.4.0.12 tls-maxphys-base:1.4 matt-nb6-plus:1.4.0.10 matt-nb6-plus-base:1.4 netbsd-6-0-RC1:1.4 yamt-pagecache-base5:1.4 yamt-pagecache-base4:1.4 netbsd-6:1.4.0.8 netbsd-6-base:1.4 yamt-pagecache-base3:1.4 yamt-pagecache-base2:1.4 yamt-pagecache:1.4.0.6 yamt-pagecache-base:1.4 cherry-xenmp:1.4.0.4 cherry-xenmp-base:1.4 bouyer-quota2-nbase:1.4 bouyer-quota2:1.4.0.2 bouyer-quota2-base:1.4 matt-mips64-premerge-20101231:1.4 darran-pre-netbsd:1.2 darran-pre-freebsd:1.2 darran-pre-dtrace:1.2 matt-premerge-20091211:1.2; locks; strict; comment @# @; 1.7 date 2021.03.31.06.27.58; author simonb; state Exp; branches; next 1.6; commitid 0CTRVGD9zDHWvqNC; 1.6 date 2018.05.28.21.05.09; author chs; state Exp; branches; next 1.5; commitid NQFwoUduS0toJ6EA; 1.5 date 2015.04.10.20.34.16; author riastradh; state Exp; branches 1.5.14.1; next 1.4; commitid UlDlXS4bgurOk5hy; 1.4 date 2010.12.14.01.03.10; author haad; state Exp; branches 1.4.18.1; next 1.3; 1.3 date 2010.02.28.14.45.47; author haad; state Exp; branches; next 1.2; 1.2 date 2009.10.21.22.32.20; author joerg; state Exp; branches; next 1.1; 1.1 date 2009.08.07.20.57.56; author haad; state Exp; branches; next ; 1.5.14.1 date 2018.06.25.07.25.25; author pgoyette; state Exp; branches; next ; commitid 8PtAu9af7VvhiDHA; 1.4.18.1 date 2013.03.26.01.59.13; author agc; state Exp; branches; next 1.4.18.2; 1.4.18.2 date 2013.03.31.23.06.43; author agc; state Exp; branches; next ; desc @@ 1.7 log @Use compat/exec.mk - zfs isn't compat32 friendly (yet?). @ text @# $NetBSD: Makefile,v 1.6 2018/05/28 21:05:09 chs Exp $ .include "../../Makefile.zfs" PROG= zpool MAN= zpool.8 zpool-features.7 USETBL= yes SRCS= zpool_main.c zpool_iter.c zpool_util.c zpool_vdev.c CPPFLAGS+= "-Dprint_timestamp(a)=((void)0)" DPADD= ${LIBAVL} ${LIBZFS} ${LIBM} ${LIBNVPAIR} ${LIBUUTIL} ${LIBUTIL} ${LIBUMEM} LIBAVL_OBJDIR!= cd ${LIBAVL_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBAVL_OBJDIR} -lavl LIBNVPAIR_OBJDIR!= cd ${LIBNVPAIR_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBNVPAIR_OBJDIR} -lnvpair LIBUUTIL_OBJDIR!= cd ${LIBUUTIL_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBUUTIL_OBJDIR} -luutil LIBZFS_CORE_OBJDIR!= cd ${LIBZFS_CORE_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBZFS_CORE_OBJDIR} -lzfs_core LIBZFS_OBJDIR!= cd ${LIBZFS_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBZFS_OBJDIR} -lzfs LIBUMEM_OBJDIR!= cd ${LIBUMEM_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBUMEM_OBJDIR} -lumem LIBZPOOL_OBJDIR!= cd ${LIBZPOOL_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBZPOOL_OBJDIR} -lzpool LDADD+= -lm -lutil -lpthread .PATH: ${ZFSDIR}/dist/cmd/zpool .include "../../compat/exec.mk" .include @ 1.6 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,v 1.5 2015/04/10 20:34:16 riastradh Exp $ d39 2 @ 1.5 log @Use CPPFLAGS, not CFLAGS, so this actually takes effect. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2010/12/14 01:03:10 haad Exp $ d6 1 a6 1 MAN= zpool.8 d23 3 @ 1.5.14.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2018/05/28 21:05:09 chs Exp $ d6 1 a6 1 MAN= zpool.8 zpool-features.7 a22 3 LIBZFS_CORE_OBJDIR!= cd ${LIBZFS_CORE_SRCDIR} && ${PRINTOBJDIR} LDADD+= -L${LIBZFS_CORE_OBJDIR} -lzfs_core @ 1.4 log @Define print_timestamp during build, to shut up gcc warning. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2010/02/28 14:45:47 haad Exp $ d10 1 a10 1 CFLAGS+="-Dprint_timestamp(a)=((void)0)" @ 1.4.18.1 log @First pass at adding symbol versioning for libz. Also fix up the ZFS infrastructure where it tried to link with the wrong libz.so instance -- these problems showed up in testing with the versioned libz.so. @ text @d1 1 a1 3 # $NetBSD: Makefile,v 1.4 2010/12/14 01:03:10 haad Exp $ .include a33 2 PROGDPLIBS+= z ${NETBSDSRCDIR}/lib/libz @ 1.4.18.2 log @add symbol versioning information for libpthread @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4.18.1 2013/03/26 01:59:13 agc Exp $ d34 1 a34 1 LDADD+= -lm -lutil d36 1 a36 2 PROGDPLIBS+= z ${NETBSDSRCDIR}/lib/libz PROGDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread @ 1.3 log @Add NetBSD build glue to build new zfs version 22 sources. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2009/10/21 22:32:20 joerg Exp $ d10 2 @ 1.2 log @zpool(8) uses tbl. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2009/08/07 20:57:56 haad Exp $ d10 1 a10 1 DPADD= ${LIBAVL} ${LIBZFS} ${LIBM} ${LIBNVPAIR} ${LIBUUTIL} ${LIBUTIL} d24 7 a30 1 LDADD+= -lm -lutil @ 1.1 log @Add NetBSD Solaris compat code and reachover Makefiles. Most of code written by Andrew Doran some of it by me. This is still work in progress code. There are known issues. Zfs can panic your system still. I will commit integration bits and needed kernel bits later when we fix most obvious bugs. This code need some support from our kernel which I will commit in a separate patch and therefore itnot work yet. Issues: 1) Support for openat/fstatat syscalls. 2) getnewvnode locking against myself panic when reclaiming vnodes 3) Replace solaris taskq with our workqueue which doesn't need to alloc anything during work. 4) Investigate problems with NO_WAIT allocations. Oked by core@@ and ad@@. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2009/03/26 22:11:45 ad Exp $ d7 1 @