From: Theodore Tso <tytso@mit.edu>
To: Tejas Sumant <tejas.sumant@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Couple of queries related to htree directory
Date: Thu, 14 Jun 2007 14:46:31 -0400 [thread overview]
Message-ID: <20070614184630.GB14911@thunk.org> (raw)
In-Reply-To: <ffa0f8300706140622j104ad6d7ra3abb2c8779dece@mail.gmail.com>
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
next prev parent reply other threads:[~2007-06-14 18:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-14 13:22 Couple of queries related to htree directory Tejas Sumant
2007-06-14 18:46 ` Theodore Tso [this message]
2007-06-15 11:00 ` Tejas Sumant
2007-06-15 16:32 ` Theodore Tso
2007-06-18 2:15 ` Tejas Sumant
2007-06-18 9:13 ` Tejas Sumant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070614184630.GB14911@thunk.org \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=tejas.sumant@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox