FreeBSD 8.2 - Samba and ZFS
I'm using 8.2 with Samba 3.5.6 and a ZFS share. I followed the instructions in this thread but I'm getting the incorrectly ordered error message.
I compiled Samba 3.5.6 with ACL_SUPPORT with pulls in vfs_zfsacl and libsuncal.
Makefile
And work/samba-3.5.6/source3/configure appears to fix up the references to sys/acl.h to reference sunacl.h.
The share has aclmode and aclinherit set to passthrough.
Here's the smb.conf.
What am I missing?
I'm using 8.2 with Samba 3.5.6 and a ZFS share. I followed the instructions in this thread but I'm getting the incorrectly ordered error message.
I compiled Samba 3.5.6 with ACL_SUPPORT with pulls in vfs_zfsacl and libsuncal.
Makefile
Code:
.if defined(WITH_ACL_SUPPORT)
CONFIGURE_ARGS+= --with-acl-support
. if ${OSVERSION} > 800000
WANT_EXP_MODULES+= vfs_zfsacl
LIB_DEPENDS+= sunacl.1:${PORTSDIR}/sysutils/libsunacl
. endif
.else
CONFIGURE_ARGS+= --without-acl-support
.endif
And work/samba-3.5.6/source3/configure appears to fix up the references to sys/acl.h to reference sunacl.h.
Code:
for ac_header in sys/acl.h acl/libacl.h sunacl.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
The share has aclmode and aclinherit set to passthrough.
Code:
NAME USED AVAIL REFER MOUNTPOINT
zdisk 355K 39.0G 30.6K /zdisk
zdisk/share 58.6K 39.0G 30.6K /zdisk/share
zdisk/share/user 28.0K 39.0G 28.0K /zdisk/share/user
zdisk/share/user aclmode passthrough inherited from zdisk/share
zdisk/share/user aclinherit passthrough inherited from zdisk/share
Here's the smb.conf.
Code:
[global]
workgroup = WORKGROUP
netbios name = FILER
server string = FILER
unix extensions = No
dns proxy = No
map acl inherit = Yes
log file = /var/log/samba/log.%m
max log size = 50
[share]
path = /zdisk/share/user
valid users = user
read only = No
inherit permissions = Yes
inherit acls = Yes
inherit owner = Yes
map archive = No
map readonly = no
vfs objects = zfsacl
nfs4:acedup = merge
nfs4:mode = special
nfs4:chown = yes
What am I missing?