mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Cross-platform acltype
The acltype property is currently hidden on FreeBSD and does not reflect the NFSv4 style ZFS ACLs used on the platform. This makes it difficult to observe that a pool imported from FreeBSD on Linux has a different type of ACL that is being ignored, and vice versa. Add an nfsv4 acltype and expose the property on FreeBSD. Make the default acltype nfsv4 on FreeBSD. Setting acltype to an unhanded style is treated the same as setting it to off. The ACLs will not be removed, but they will be ignored. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10520
This commit is contained in:
+14
-3
@@ -651,17 +651,28 @@ you must first remove all
|
||||
.Tn ACL
|
||||
entries which do not represent the current mode.
|
||||
.El
|
||||
.It Sy acltype Ns = Ns Sy off Ns | Ns Sy posix
|
||||
.It Sy acltype Ns = Ns Sy off Ns | Ns Sy nfsv4 Ns | Ns Sy posix
|
||||
Controls whether ACLs are enabled and if so what type of ACL to use.
|
||||
This property is not visible on FreeBSD yet.
|
||||
When this property is set to a type of ACL not supported by the current
|
||||
platform, the behavior is the same as if it were set to
|
||||
.Sy off .
|
||||
.Bl -tag -width "posixacl"
|
||||
.It Sy off
|
||||
default, when a file system has the
|
||||
default on Linux, when a file system has the
|
||||
.Sy acltype
|
||||
property set to off then ACLs are disabled.
|
||||
.It Sy noacl
|
||||
an alias for
|
||||
.Sy off
|
||||
.It Sy nfsv4
|
||||
default on FreeBSD, indicates that NFSv4-style ZFS ACLs should be used.
|
||||
These ACLs can be managed with the
|
||||
.Xr getfacl 1
|
||||
and
|
||||
.Xr setfacl 1
|
||||
commands on FreeBSD. The
|
||||
.Sy nfsv4
|
||||
ZFS ACL type is not yet supported on Linux.
|
||||
.It Sy posix
|
||||
indicates POSIX ACLs should be used. POSIX ACLs are specific to Linux and are
|
||||
not functional on other platforms. POSIX ACLs are stored as an extended
|
||||
|
||||
Reference in New Issue
Block a user