2007-04-05 21:09:06 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2017-03-04 06:30:04 -05:00
|
|
|
.PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/ztest
|
2007-04-05 21:09:06 -04:00
|
|
|
|
|
|
|
|
PROG= ztest
|
2014-04-13 01:21:56 -04:00
|
|
|
MAN=
|
2007-04-05 21:09:06 -04:00
|
|
|
|
2010-03-02 14:04:07 -05:00
|
|
|
WARNS?= 0
|
2017-03-04 06:30:04 -05:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
|
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
|
2007-04-05 21:09:06 -04:00
|
|
|
|
2015-12-03 22:17:47 -05:00
|
|
|
LIBADD= geom m nvpair umem zpool pthread avl zfs_core zfs uutil
|
2007-04-05 21:09:06 -04:00
|
|
|
|
2009-03-14 13:55:16 -04:00
|
|
|
CSTD= c99
|
|
|
|
|
|
2013-08-27 00:01:31 -04:00
|
|
|
# Since there are many asserts in this program, it makes no sense to compile
|
|
|
|
|
# it without debugging.
|
|
|
|
|
CFLAGS+= -g -DDEBUG=1
|
Merge recent zfs vendor changes, sync code and adjust userland DEBUG.
Illumos issued covered:
1884 Empty "used" field for zfs *space commands
3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument
is zero
3028 zfs {group,user}space -n prints (null) instead of numeric GID/UID
3048 zfs {user,group}space [-s|-S] is broken
3049 zfs {user,group}space -t doesn't really filter the results
3060 zfs {user,group}space -H output isn't tab-delimited
3061 zfs {user,group}space -o doesn't use specified fields order
3064 usr/src/cmd/zpool/zpool_main.c misspells "successful"
3093 zfs {user,group}space's -i is noop
3098 zfs userspace/groupspace fail without saying why when run as non-root
References:
https://www.illumos.org/issues/ + [issue_id]
Obtained from: illumos (vendor/illumos, vendor/illumos-sys)
MFC after: 2 weeks
2012-09-12 14:05:43 -04:00
|
|
|
|
2007-04-05 21:09:06 -04:00
|
|
|
.include <bsd.prog.mk>
|