Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement
Linux 2.0 Unofficial Patches (ftp://ftp.informatik.uni-stuttgart.de/pub/Linux/schoebel/)

New inode & dcache & transname implementation

Thomas Schoebel-Theuer (Schoebel@informatik.uni-stuttgart.de)
Thu Apr 24 19:53:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Distributions] [Links]


The newest alpha release (based on 2.0.27) of my rewrite of some essential VFS thingies can be found at

ftp://ftp.informatik.uni-stuttgart.de/pub/Linux/schoebel/

An excerpt from the README there:

Features:

  • the new dcache can hold "negative entries", i.e. names that are known to *not* exist. This saves unneccessary lookups for non-existing names and is in particular useful for the transname facility.

  • /proc/<pid>/fd/ now contains symlinks with the full absolute path to the inode. So you can see where the inode is.

  • deleted files are kept in a two-level basket: if a used inode is unlinked, the name foo is moved to .deleted-.foo and is kept in the dcache (not on disk!), so it remains accessible for /proc/<pid>/fd/ (and for normal lookup of course). Try the shell script in the appendix to see what it does!

  • if the fs supports it (currently only ext2), deleted files go to the second level basket as soon as the i_count becomes zero. The second level basket keeps up to a constant number (currently 100) of deleted files, but only as long as no umount() is done (e.g. until the next reboot) and as long as sufficient space remains on the disk. If the second level basket needs to be reduced (e.g. because of space shortage), the files are freed in LRU order.

I hope that at least the last feature will be widely accepted by all people typing rm * too fast ;-)

Please try the alpha code on test machines only (never on unrecoverable data) and give me feedback.

Please answer by email *only* (I don't read the kernel list) and please restrict your answer to questions dealing with the code.

Download




[Home] [Up] [Search] [FeedBack]


For information regarding copying and distribution of this material see the COPYING document.
Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.