I use last ZFS (ZFS for Linux) on the CentOS 6. Create successfully pool, all working fine. But i have one question.

How i can set ACL for ZFS folder/file? GNU ls, chmod, and other coreutils not support(?) it.

On the Solaris/OpenSolaris/OpenIndiana/Nexenta i use

/usr/bin/chmod \ A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:rwxpdDaARWcCos:fd-----:allow,everyone@:rwxpdDaARWcCos:fd-----:deny /ZFS/FOLDER/

What i must use for CentOS linux?


You can't do this for now. This is stated in the admin guide:

Currently, ACLs are not functioning in ZFS on Linux as of 0.6.0-rc13.


As of ZFS on Linux version 0.6.3, ACLs are now supported.

To enable them, you must set the acltype dataset property to the value posixacl, e.g.:

zfs set acltype=posixacl tank/home

If you haven't already, you should also set xattr to sa:

zfs set xattr=sa tank

POSIX ACLs are stored as extended attributes. Unfortunately, the standard way of storing extended attributes can cause serious performance hits on Linux, so you really need the "system attribute" storage method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.