We run a third party application that creates an inordinate amount of subdirectories in a single directory. To speed up I/O, I wanted to set the T attribute on the directory that will hold the subdirectories. The "chattr +T /usr/local/lepus-bb/a-0607" command returns status 0, but when I verify the setting, the attribute isn't there: # lsattr -d /usr/local/lepus-bb/a-0607 ------------- /usr/local/lepus-bb/a-0607 Is this attribute implemented? The manual pages entry for chattr suggests it is, but when I check the chattr usage, "T" isn't listed: #chattr -v usage: chattr [-RV] [-+=AacDdijsSu] [-v version] files... FWIIW # cat /proc/version Linux version 2.4.21-40.ELsmp (bhcompile at hs20-bc1-7.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)) #1 SMP Thu Feb 2 22:22:39 EST 2006 Kind regards, Herta Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
On Mon, Jul 10, 2006 at 12:29:50PM +0200, Herta Van den Eynde wrote:> Is this attribute implemented? The manual pages entry for chattr > suggests it is, but when I check the chattr usage, "T" isn't listed: > > #chattr -v > usage: chattr [-RV] [-+=AacDdijsSu] [-v version] files... > > FWIIW > # cat /proc/version > Linux version 2.4.21-40.ELsmp (bhcompile at hs20-bc1-7.build.redhat.com) > (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)) #1 SMP Thu Feb 2 > 22:22:39 EST 2006To quote from the man page: A directory with attribute will be deemed to be the top of directory hierarchies for the purposes of the Orlov block allocator (which is used in on systems with Linux 2.5.46 or later). You're using Linux version 2.4.21.... - Ted
On Jul 10, 2006 12:29 +0200, Herta Van den Eynde wrote:> We run a third party application that creates an inordinate amount of > subdirectories in a single directory. To speed up I/O, I wanted to set > the T attribute on the directory that will hold the subdirectories. The > "chattr +T /usr/local/lepus-bb/a-0607" command returns status 0, but > when I verify the setting, the attribute isn't there: > > # lsattr -d /usr/local/lepus-bb/a-0607 > ------------- /usr/local/lepus-bb/a-0607 > > Is this attribute implemented? The manual pages entry for chattr > suggests it is, but when I check the chattr usage, "T" isn't listed: > > #chattr -v > usage: chattr [-RV] [-+=AacDdijsSu] [-v version] files...man chattr(1) reports: A directory with the ?T? attribute will be deemed to be the top of directory hierarchies for the purposes of the Orlov block allocator (which is used in on systems with Linux 2.5.46 or later).` You can also check with "debugfs -c -R 'stat lepus-bb/a-0607' /dev/XXXX" (assuming /usr/local/ is the mountpoint). It may be that the kernel is not allowing the T attribute in the EXT3_FL_USER_VISIBLE mask, though it does show correctly in my kernel. #define EXT3_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/ #define EXT3_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */ Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
Possibly Parallel Threads
- Forbidden: You don't have permission to access /phpMyAdmin/ on this server.
- "error in rsync protocol data stream (code 12) at io.c(150)" revisited
- samba connection to fully qualified domain name
- ext3 data=ordered - good enough for oracle?
- "installation method" (CentOS 5.2)