-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 subject about says it all. should this only be done once per device or periodically? thanks! - -- Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778 Admin: Linux StepByStep - http://www.linux-sxs.org and http://jobs.linux-sxs.org Illiterate? Write for help! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE9miELSrrWWknCnMIRAkppAJ9P5iaijJvaKuyVc56chOsfMoM5CQCfYG2V jmCfQWzJKLnvHkx9ERPoMDc=CX3x -----END PGP SIGNATURE-----
On Tue, Oct 01, 2002 at 06:26:17PM -0400, Douglas J Hunley wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > subject about says it all. should this only be done once per device or > periodically? thanks!I'm not aware of a "-D" switch available in either fsck or e2fsck. -- -- Skylar Thompson (skylar@attglobal.net) -- http://lizw090-016.resnet.wisc.edu/~skylar/, http://www.earlham.edu/~thompsk/
On Oct 01, 2002 18:26 -0400, Douglas J Hunley wrote:> subject about says it all. should this only be done once per device or > periodically? thanks!If you are running with a kernel that understands htree indexes you only need to do it once (the kernel will keep the directory up-to-date after that). If you run with a non-htree kernel then you _should_ do it afterwards, but it is only really needed if you have added files to an previously-indexed directory. "e2fsck -D" will also pack an existing directory, so if you created a huge directory and deleted all of the files, then you can get a little bit of space back by re-indexing that directory, but it's not a big deal in most cases ("mkdir newdir; mv olddir/* newdir; rmdir olddir" will also do this for you without unmounting the filesystem). Cheers, Andreas -- Andreas Dilger http://www-mddsp.enel.ucalgary.ca/People/adilger/ http://sourceforge.net/projects/ext2resize/
Hi All: I just loaded RH 8.0 for the 1st time. It's kernel version is 2.4.18-14. From simply examining version numbers, I would infer that this kernel does NOT include the directory indexing feature. However, I have seen other messages mentioning that RedHat will (in some cases) backport code to fix a bug without breaking dependancies. Can anyone confirm one way or the other whether a stock RH8.0 kernel contains directory indexing? Alternatively, is there a means of testing or checking to see if it is present? TIA A. Becker Andreas Dilger <adilger@clusterfs.com> wrote:> On Oct 04, 2002 16:45 +0200, Ralf Hildebrandt wrote: > > On Thu, Oct 03, 2002 at 01:16:12AM -0400, Theodore Ts'o wrote: > > > > > And you only need to run the command once, as long as you usekernels> > > that understand directory indexing when the filesystem ismounted> > > read/write. > > > > Which kernels do understand it? Does 2.4.20-pre9 know it? > > Currently, only kernels with the htree patch applied. Maybe 2.5will> soon too, but I wouldn't expect it in 2.4 until at least 2.4.21-pre.> > Cheers, Andreas > -- > Andreas Dilger > http://www-mddsp.enel.ucalgary.ca/People/adilger/ > http://sourceforge.net/projects/ext2resize/ > > > > _______________________________________________ > Ext3-users mailing list > Ext3-users@redhat.com > https://listman.redhat.com/mailman/listinfo/ext3-users