Hi! Does anyone know how many ACLs can be stored on file system (xfs) using acl_xattr module and in file file_ntacls.tdb? Best regards /Adrian Berlin -- You Rock! Your E-Mail Should Too! Signup Now at Rock.com and get 250MB of Storage! http://webmail.rock.com/signup/
On Mar 26, 2010, at 1:26 AM, Adrian Berlin wrote: Hi!> Does anyone know how many ACLs can be stored on file system (xfs) using acl_xattr module and in file file_ntacls.tdb? > > Best regards > /Adrian Berlin > > > -- > You Rock! Your E-Mail Should Too! Signup Now at Rock.com and get 250MB of Storage! > > http://webmail.rock.com/signup/ > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >If I recall correctly, the POSIX ACLs only allow 25 ACLs per file, though this might be based off old information I read about a while back....
> Does anyone know how many ACLs can be stored on file system (xfs) using acl_xattr module and in file file_ntacls.tdb? >There's something I would really like to know! But somehow it seems to be a secret of the gods that us mere mortals are not allowed to penetrate...
On Fri, 2010-03-26 at 13:06 +0000, Miguel Medalha wrote:> > If I remember correctly XFS used to have a size limit of 64KiB per > > xattr. > > > > What about ext3 & ext4?Always IIRC, they should be limited by the inode size, which is 4KiB, but this information is old, and should be verified for ext4. Simo. -- Simo Sorce Samba Team GPL Compliance Officer <simo at samba.org> Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>
On Fri, Mar 26, 2010 at 05:57:27PM +0100, Adrian Berlin wrote:> Hi! > Thanks everyone for answer. So acl_tdb has unlimited storage for extended acls > and acl_xattr has 64KB per xattr?acl_tdb isn't unlimited, it's ahas a 4GB limit on the size of the tdb (until we get 64-bit tdb support).> I have one more question. How many acl can be stored in 64KB?Depends on the size of the ACL, which depends on how many DACL entries it has. Jeremy
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: /root/acl-test.sh: #!/bin/sh -ex G=2200000000 #G=10 while : do G=$(( $G + 1 )) setfacl -m g:"$G":rwx /home/dir done OS is Debian Lenny: debian:/# cat /etc/debian_version 5.0.4 debian:/# uname -r 2.6.26-2-amd64 getfacl & setfacl has version: 2.2.47 Other extended attributes may reduce the number of avaiable ACEs. Conclusion: 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-- Gruss Harry Jede
> 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: > /root/acl-test.sh: > > #!/bin/sh -ex > G=2200000000 > #G=10 > > while : > do > G=$(( $G + 1 )) > > setfacl -m g:"$G":rwx /home/dir > > done > > > > OS is Debian Lenny: > debian:/# cat /etc/debian_version > 5.0.4 > debian:/# uname -r > 2.6.26-2-amd64 > > getfacl& setfacl has version: 2.2.47 > > Other extended attributes may reduce the number of avaiable ACEs. > > Conclusion: > ext3 is a better choice then xfs, at least for Debian Lenny. > > I have not tested any special tuning options for ext3 or xfs.Thank you very much for that information!
Thanks everyone for answers! 21 - 26 ACLs in XFS filesystem is just for POSIX ACL or extended too? Best regards /Adrian Berlin> ----- Original Message ----- > From: Miguel Medalha <miguelmedalha at sapo.pt> > To: Harry Jede <walk2sun at arcor.de> > Cc: samba at lists.samba.org > Subject: Re: [Samba] acl_xattr vs acl_tdb > Date: Sun, 28 Mar 2010 21:24:21 +0100 > > > > > 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: > > /root/acl-test.sh: > > > > #!/bin/sh -ex > > G=2200000000 > > #G=10 > > > > while : > > do > > G=$(( $G + 1 )) > > > > setfacl -m g:"$G":rwx /home/dir > > > > done > > > > > > > > OS is Debian Lenny: > > debian:/# cat /etc/debian_version > > 5.0.4 > > debian:/# uname -r > > 2.6.26-2-amd64 > > > > getfacl& setfacl has version: 2.2.47 > > > > Other extended attributes may reduce the number of avaiable ACEs. > > > > Conclusion: > > ext3 is a better choice then xfs, at least for Debian Lenny. > > > > I have not tested any special tuning options for ext3 or xfs. > > Thank you very much for that information! > -- To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba>-- You Rock! Your E-Mail Should Too! Signup Now at Rock.com and get 250MB of Storage! http://webmail.rock.com/signup/