Il problema
L'utente non è in grado di montare xfs con l'autorizzazione noacl. L'opzione di montaggio noactl per il file system xfs è impostata nel file /etc/fstab.
# cat /etc/fstab /dev/sbb1 /mnt xfs inode64.noacl 0 0
Ma il montaggio non è riuscito con errore di seguito.
# mount -v /mnt mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_cdm_ebsul06_N00-appl_ptch, missing codepage or helper program, or other error In some cases useful info is found in syslog - try
Gli errori dmesg per l'opzione noacl sono i seguenti:
# dmesg | tail XFS (sbb1): Ending clean mount XFS (sbb1): unknown mount option [noacl]. XFS (sbb1): Mounting Filesystem XFS (sbb1): Ending clean mount XFS (sbb1): unknown mount option [noacl]. XFS (sbb1): unknown mount option [noacl]. XFS (sbb1): unknown mount option [noacl]. XFS (sbb1): Mounting Filesystem XFS (sbb1): Ending clean mount XFS (sbb1): unknown mount option [noacl].
Sebbene l'utente possa rimontare correttamente il file system XFS con l'opzione noacl.
# mount -o remount,noacl /mnt # mount| grep noacl /dev/sdb1 on /mnt type xfs (rw,inode64,noacl)
La soluzione
1. Attualmente, il kernel è compilato con il supporto ACL, quindi non c'è alcuna opzione per disabilitare ACL per XFS in fase di esecuzione:
CONFIG_XFS_POSIX_ACL=y
2. Per xfs remount , puoi anche specificare qualsiasi opzione non valida, come "ciao", XFS la ignorerà ma la elencherà solo nell'output:
# mount -o remount,hello /mnt # mount .. /dev/sdb1 on /mnt/ type xfs (rw,noacl,noacl,noacl,hello)
3. E per codice sorgente per XFS, xfs ignora semplicemente quelle opzioni non valide:
xfs_fs_remount( ... * Until that is implemented we return success for * every remount request, and silently ignore all * options that we can't actually change. */ ...
Conclusione
Non è disponibile alcuna opzione per disabilitare ACL per XFS in fase di esecuzione. Non impostare ACL sui file su xfs mount, ACL non verrà utilizzato per quei file.