[Samba] acl_xattr vs acl_tdb

Harry Jede walk2sun at arcor.de
Sun Mar 28 08:06:02 MDT 2010

On Freitag, 26. März 2010 wrote Adrian Berlin:
> Hi!
> Does anyone know how many ACLs can be stored on file system (xfs)
> using acl_xattr module and in file file_ntacls.tdb?

The docs say that xfs uses 64k.

A small test gives me total other numbers :-( .

xfs can store 21 to 26 ACEs. It depends on the size of gidnumber.
ext3 may store 503 to 513 ACEs, also depending on the size of gidnumber.

The test bed:
fresh created /home partitions with:
  mkfs.xfs -f /dev/hda6
for xfs, and
  mkfs.ext3 /dev/hda6
for ext3.

only one directory:
  rmdir /home/dir/ ;mkdir /home/dir/

and a small shell script, which add ACEs:

#!/bin/sh -ex

while : 
  G=$(( $G + 1 ))

  setfacl -m g:"$G":rwx /home/dir


OS is Debian Lenny:
debian:/# cat /etc/debian_version 
debian:/# uname -r

getfacl & setfacl has version: 2.2.47

Other extended attributes may reduce the number of avaiable ACEs.

ext3 is a better choice then xfs, at least for Debian Lenny.

I have not tested any special tuning options for ext3 or xfs.

> Best regards
> /Adrian Berlin


	Harry Jede

More information about the samba mailing list