2007-04-06 01:35:16 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
KMOD= zfs
|
|
|
|
|
|
|
|
SRCS= vnode_if.h
|
|
|
|
|
2008-03-27 23:21:25 +00:00
|
|
|
SUNW= ${.CURDIR}/../../cddl/contrib/opensolaris
|
2008-03-08 19:14:43 +00:00
|
|
|
|
|
|
|
.PATH: ${SUNW}/common/acl
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= acl_common.c
|
2008-03-08 19:14:43 +00:00
|
|
|
.PATH: ${SUNW}/common/avl
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= avl.c
|
2008-03-08 19:14:43 +00:00
|
|
|
.PATH: ${SUNW}/common/nvpair
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= nvpair.c
|
Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.
This bring huge amount of changes, I'll enumerate only user-visible changes:
- Delegated Administration
Allows regular users to perform ZFS operations, like file system
creation, snapshot creation, etc.
- L2ARC
Level 2 cache for ZFS - allows to use additional disks for cache.
Huge performance improvements mostly for random read of mostly
static content.
- slog
Allow to use additional disks for ZFS Intent Log to speed up
operations like fsync(2).
- vfs.zfs.super_owner
Allows regular users to perform privileged operations on files stored
on ZFS file systems owned by him. Very careful with this one.
- chflags(2)
Not all the flags are supported. This still needs work.
- ZFSBoot
Support to boot off of ZFS pool. Not finished, AFAIK.
Submitted by: dfr
- Snapshot properties
- New failure modes
Before if write requested failed, system paniced. Now one
can select from one of three failure modes:
- panic - panic on write error
- wait - wait for disk to reappear
- continue - serve read requests if possible, block write requests
- Refquota, refreservation properties
Just quota and reservation properties, but don't count space consumed
by children file systems, clones and snapshots.
- Sparse volumes
ZVOLs that don't reserve space in the pool.
- External attributes
Compatible with extattr(2).
- NFSv4-ACLs
Not sure about the status, might not be complete yet.
Submitted by: trasz
- Creation-time properties
- Regression tests for zpool(8) command.
Obtained from: OpenSolaris
2008-11-17 20:49:29 +00:00
|
|
|
.PATH: ${.CURDIR}/../../cddl/contrib/opensolaris/common/unicode
|
|
|
|
SRCS+= u8_textprep.c
|
2007-04-06 01:35:16 +00:00
|
|
|
|
2008-03-27 23:21:25 +00:00
|
|
|
.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
|
2009-05-26 08:21:59 +00:00
|
|
|
SRCS+= opensolaris_acl.c
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= opensolaris_kmem.c
|
|
|
|
SRCS+= opensolaris_kobj.c
|
|
|
|
SRCS+= opensolaris_kstat.c
|
Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.
This bring huge amount of changes, I'll enumerate only user-visible changes:
- Delegated Administration
Allows regular users to perform ZFS operations, like file system
creation, snapshot creation, etc.
- L2ARC
Level 2 cache for ZFS - allows to use additional disks for cache.
Huge performance improvements mostly for random read of mostly
static content.
- slog
Allow to use additional disks for ZFS Intent Log to speed up
operations like fsync(2).
- vfs.zfs.super_owner
Allows regular users to perform privileged operations on files stored
on ZFS file systems owned by him. Very careful with this one.
- chflags(2)
Not all the flags are supported. This still needs work.
- ZFSBoot
Support to boot off of ZFS pool. Not finished, AFAIK.
Submitted by: dfr
- Snapshot properties
- New failure modes
Before if write requested failed, system paniced. Now one
can select from one of three failure modes:
- panic - panic on write error
- wait - wait for disk to reappear
- continue - serve read requests if possible, block write requests
- Refquota, refreservation properties
Just quota and reservation properties, but don't count space consumed
by children file systems, clones and snapshots.
- Sparse volumes
ZVOLs that don't reserve space in the pool.
- External attributes
Compatible with extattr(2).
- NFSv4-ACLs
Not sure about the status, might not be complete yet.
Submitted by: trasz
- Creation-time properties
- Regression tests for zpool(8) command.
Obtained from: OpenSolaris
2008-11-17 20:49:29 +00:00
|
|
|
SRCS+= opensolaris_lookup.c
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= opensolaris_policy.c
|
|
|
|
SRCS+= opensolaris_string.c
|
|
|
|
SRCS+= opensolaris_vfs.c
|
|
|
|
SRCS+= opensolaris_zone.c
|
|
|
|
|
2008-04-11 22:59:33 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
|
2008-03-08 19:14:43 +00:00
|
|
|
.PATH: ${SUNW}/common/atomic/${MACHINE_ARCH}
|
2009-05-09 01:45:55 +00:00
|
|
|
SRCS+= opensolaris_atomic.S
|
2007-06-08 12:35:47 +00:00
|
|
|
.else
|
2008-03-27 23:21:25 +00:00
|
|
|
.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
|
2007-06-08 12:35:47 +00:00
|
|
|
SRCS+= opensolaris_atomic.c
|
|
|
|
.endif
|
2007-04-06 01:35:16 +00:00
|
|
|
|
2008-03-08 19:14:43 +00:00
|
|
|
.PATH: ${SUNW}/uts/common/fs
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= gfs.c
|
Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.
This bring huge amount of changes, I'll enumerate only user-visible changes:
- Delegated Administration
Allows regular users to perform ZFS operations, like file system
creation, snapshot creation, etc.
- L2ARC
Level 2 cache for ZFS - allows to use additional disks for cache.
Huge performance improvements mostly for random read of mostly
static content.
- slog
Allow to use additional disks for ZFS Intent Log to speed up
operations like fsync(2).
- vfs.zfs.super_owner
Allows regular users to perform privileged operations on files stored
on ZFS file systems owned by him. Very careful with this one.
- chflags(2)
Not all the flags are supported. This still needs work.
- ZFSBoot
Support to boot off of ZFS pool. Not finished, AFAIK.
Submitted by: dfr
- Snapshot properties
- New failure modes
Before if write requested failed, system paniced. Now one
can select from one of three failure modes:
- panic - panic on write error
- wait - wait for disk to reappear
- continue - serve read requests if possible, block write requests
- Refquota, refreservation properties
Just quota and reservation properties, but don't count space consumed
by children file systems, clones and snapshots.
- Sparse volumes
ZVOLs that don't reserve space in the pool.
- External attributes
Compatible with extattr(2).
- NFSv4-ACLs
Not sure about the status, might not be complete yet.
Submitted by: trasz
- Creation-time properties
- Regression tests for zpool(8) command.
Obtained from: OpenSolaris
2008-11-17 20:49:29 +00:00
|
|
|
SRCS+= vnode.c
|
2007-04-06 01:35:16 +00:00
|
|
|
|
2008-03-08 19:14:43 +00:00
|
|
|
.PATH: ${SUNW}/uts/common/os
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= callb.c
|
|
|
|
SRCS+= list.c
|
|
|
|
SRCS+= nvpair_alloc_system.c
|
|
|
|
SRCS+= taskq.c
|
|
|
|
|
2008-03-08 19:14:43 +00:00
|
|
|
.PATH: ${SUNW}/uts/common/zmod
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= adler32.c
|
2009-05-09 01:45:55 +00:00
|
|
|
SRCS+= opensolaris_crc32.c
|
2007-04-06 01:35:16 +00:00
|
|
|
SRCS+= deflate.c
|
|
|
|
SRCS+= inffast.c
|
|
|
|
SRCS+= inflate.c
|
|
|
|
SRCS+= inftrees.c
|
|
|
|
SRCS+= trees.c
|
|
|
|
SRCS+= zmod.c
|
|
|
|
SRCS+= zmod_subr.c
|
|
|
|
SRCS+= zutil.c
|
|
|
|
|
2008-03-08 19:14:43 +00:00
|
|
|
.PATH: ${SUNW}/common/zfs
|
|
|
|
.include "${SUNW}/uts/common/Makefile.files"
|
|
|
|
.PATH: ${SUNW}/uts/common/fs/zfs
|
2007-04-06 01:35:16 +00:00
|
|
|
ZFS_SRCS= ${ZFS_OBJS:C/.o$/.c/}
|
|
|
|
SRCS+= ${ZFS_SRCS}
|
|
|
|
SRCS+= vdev_geom.c
|
|
|
|
|
|
|
|
# Use UMA for ZIO allocation. This is not stable.
|
|
|
|
#CFLAGS+=-DZIO_USE_UMA
|
|
|
|
|
2007-04-24 16:59:20 +00:00
|
|
|
# Use FreeBSD's namecache.
|
|
|
|
CFLAGS+=-DFREEBSD_NAMECACHE
|
|
|
|
|
2008-03-27 23:21:25 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../../cddl/compat/opensolaris
|
2008-03-08 19:14:43 +00:00
|
|
|
CFLAGS+=-I${SUNW}/uts/common/fs/zfs
|
|
|
|
CFLAGS+=-I${SUNW}/uts/common/zmod
|
|
|
|
CFLAGS+=-I${SUNW}/uts/common
|
2007-04-06 01:35:16 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../..
|
2008-03-08 19:14:43 +00:00
|
|
|
CFLAGS+=-I${SUNW}/common/zfs
|
|
|
|
CFLAGS+=-I${SUNW}/common
|
2007-04-06 01:35:16 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../../../include
|
2008-11-05 19:40:36 +00:00
|
|
|
CFLAGS+=-DBUILDING_ZFS
|
2007-04-06 01:35:16 +00:00
|
|
|
|
|
|
|
#CFLAGS+=-DDEBUG=1
|
|
|
|
#DEBUG_FLAGS=-g
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|
2008-02-21 11:11:06 +00:00
|
|
|
|
|
|
|
CWARNFLAGS+=-Wno-unknown-pragmas
|
|
|
|
CWARNFLAGS+=-Wno-missing-prototypes
|
|
|
|
CWARNFLAGS+=-Wno-undef
|
|
|
|
CWARNFLAGS+=-Wno-strict-prototypes
|
|
|
|
CWARNFLAGS+=-Wno-cast-qual
|
|
|
|
CWARNFLAGS+=-Wno-parentheses
|
|
|
|
CWARNFLAGS+=-Wno-redundant-decls
|
|
|
|
CWARNFLAGS+=-Wno-missing-braces
|
|
|
|
CWARNFLAGS+=-Wno-uninitialized
|
|
|
|
CWARNFLAGS+=-Wno-unused
|
|
|
|
CWARNFLAGS+=-Wno-inline
|
|
|
|
CWARNFLAGS+=-Wno-switch
|
|
|
|
CWARNFLAGS+=-Wno-pointer-arith
|