Re: How to let glusterfs support getfacl and setfacl?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Monday, May 18, 2015, Niels de Vos <ndevos@xxxxxxxxxx> wrote:
On Sun, May 17, 2015 at 07:50:40PM -0500, Peng Yu wrote:
> I see the glusterfs should support get/setfacl.
>
> http://www.gluster.org/community/documentation/index.php/Gluster_3.2:_Setting_Access_ACLs
>
> But when I try it, it says the following.
>
> $ setfacl -m 'u:myuser:r-x' somedir
> setfacl: somedir: Operation not supported
>
> `/etc/fstab` has the mount /mnt/glusterfs, where somedir is.
>
> rigel:/gv /mnt/glusterfs glusterfs defaults,_netdev 0 0
>
> Does anybody know how to make get/setfacl available in glusterfs?

You can enable support for ACLs with the "acl" mount option. In your
/etc/fstab, you would have something like this:

    rigel:/gv /mnt/glusterfs glusterfs _netdev,acl 0 0

I tried this. But it still see the same error message when I call setfacl. Also, setfacl works on directories in glusterfs servers. 

The "defaults" keyword really is not needed if you have any other
options ;-)

Cheers,
Niels


--
Regards,
Peng
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux