Александр Фахрутдинов
2012-Aug-08 11:02 UTC
[Samba] How to build vfs_zfsacl module on Linux platform?
Solaris OS has ZFS as primary filesystem, that has own implementation of ACL (NFS v4 ACL). Samba uses zfsacl and acl_xattr modules for converting NT ACL to ZFS ACL and extended attributes of file in this OS. ZfsOnLinux team ported ZFS as a number of kernel-linked modules to Linux OS, so ZFS on Linux supports NFS ACL, deduplication, compresson and other features of Solaris ZFS v.28. But NFS ACL is not compatible with POSIX ACL, the one type of ACL Samba can use on Linux platform. Acl_xattr and acl_tdb modules cannot solve problem, because it's required a filesytem with POSIX ACL support for storing generic ACL attrbutes. So, can I build vfs_zfsacl module on Linux, or building required Solaris-specific header files? Debian 6 Squeeze x64 Linux 3.4-generic ZfsOnLinux v.0.6.0-rc9 Samba 3.6.6
Jeremy Allison
2012-Aug-09 23:24 UTC
[Samba] How to build vfs_zfsacl module on Linux platform?
On Wed, Aug 08, 2012 at 03:02:23PM +0400, ????????? ??????????? wrote:> Solaris OS has ZFS as primary filesystem, that has own implementation of ACL (NFS v4 ACL). Samba uses zfsacl and acl_xattr modules for converting NT ACL to ZFS ACL and extended attributes of file in this OS. > > ZfsOnLinux team ported ZFS as a number of kernel-linked modules to Linux OS, so ZFS on Linux supports NFS ACL, deduplication, compresson and other features of Solaris ZFS v.28. But NFS ACL is not compatible with POSIX ACL, the one type of ACL Samba can use on Linux platform. Acl_xattr and acl_tdb modules cannot solve problem, because it's required a filesytem with POSIX ACL support for storing generic ACL attrbutes. > > So, can I build vfs_zfsacl module on Linux, or building required Solaris-specific header files?As part of the ZFS-on-Linux code, they should provide header files that allow the vfs_zfsacl to build on Linux. If they don't, then the project isn't done yet. Jeremy.