Enable acl on btrfs device

Hi all,

I am trying to enable acl on my external btrfs devices. However, if I add defaults,acl as mount options, the device will not get mounted until I remove the mount option line. I am wondering why acl is not enabled by default and how to enable them manually?

Thanks

According to this there is only option noacl available. So should be mounted with acl by default.

Yes, I also though that I can only disable the use of acl. However:

# cat /etc/config/fstab  
config mount
	option enabled '1'
	option uuid 'XXXXXXXX-824d-4d68-8b32-XXXXXXXX'
	option target '/mnt/parity1
# mount | grep parity1
/dev/sda on /mnt/parity1 type btrfs (rw,relatime,noacl,space_cache,subvolid=5,subvol=/)

So acl is disabled by something different than fstab

Found it…

   root@kukuzi:~# mount -o acl /dev/sda1 /mnt/msata/
   mount: wrong fs type, bad option, bad superblock on /dev/sda1,
   missing codepage or helper program, or other error

   In some cases useful info is found in syslog - try
   dmesg | tail or so.
   root@kukuzi:~# dmesg |tail
   [ 2480.963838] BTRFS error (device sda1): support for ACL not compiled in!
   [ 2481.000744] BTRFS: open_ctree failed
   root@kukuzi:~#

Error in detail: no support in kernel.

Oha, thanks for researching…
No I’ve no idea how to add write permission for a lxc guest on an host mount?

No idea right now how to do it in a proper manner, but you can shoot you in the knee through the eye via smb/cifs or nfs mount… :scream:

Turris TEAM: Please add support for this!

CONFIG_BTRFS_FS_POSIX_ACL is not set