Re: Couple of queries related to htree directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 14, 2007 at 06:52:01PM +0530, Tejas Sumant wrote:
> 
> Any idea, how to search a directory on given ext3 file system, which
> is having htree structure?

The same way you search any other Linux/Unix system.  I.e., using
opendir()/readir() from a C program, or /bin/ls from a shell program,
etc.  It's completely transparent. 

> Also is there any way to create a htree indexed directory explicitly?
> using some command or tool?

Once the dir_index feature is enabled, for all new directories and all
directories which are only take one disk block grow to bigger than one
disk block, they automatically get indexed.  (There's no point
indexing a single directory block since that's equivalent to a single
leaf block.)

To convert existing directories, you need to unmount the filesystem
and use the command:

	e2fsck -fD /dev/hdXX

This really should be added to an FAQ on ext4.wiki.kernel.org....

					 - Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux