LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-12-2005, 02:00 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
about mke2fs -j -O dir_index


The "mke2fs -O dir_index" thing seems a good idea. What does dir_index however represent? When i create a new filesystem can i just do " mke2fs -j -O /dev/hdXY"?
Or must i, after the creation of a filesystem- mke2fs -j, do for each directory in which i want to have b-hashed trees, mke2fs -O directory_path?
Thanks
 
Old 11-12-2005, 08:30 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
From the man page, it looks like dir_index just give the filesystem a place to see where things are located so it can go there more quickly.

I think you need to put the feature after -O . For example:
mke2fs -j -O dir_index /dev/hda1
or
mkfs.ext3 -O dir_index /dev/hda1

Code:
       -O feature[,...]
              Create  filesystem with given features (filesystem options), overrid-
              ing the default filesystem options.  Currently, the sparse_super  and
              filetype  features  are  turned on by default when mke2fs is run on a
              system with Linux 2.2 or later  (unless  creator-os  is  set  to  the
              Hurd).   Filesystems  that may need to be mounted on pre-2.2 Linux or
              other kernels should be created with -O none (or -r 0 for Linux  1.2)
              which  will disable these features, even if mke2fs is run on a system
              which can support them.

              The following filesystem options are supported:

                   dir_index
                          Use hashed b-trees to speed up lookups in large  directo-
                          ries.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mke2fs locks up artur Linux - Hardware 1 10-18-2004 04:17 PM
mke2fs problem cuco76 Fedora 9 11-22-2003 06:06 PM
accidental mke2fs sarahan Linux - General 1 11-15-2003 04:58 AM
mke2fs appler Linux - Newbie 2 03-04-2003 05:54 PM
mke2fs problem vaibhavk Linux - General 2 01-15-2002 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration