[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how can i get an orphaned inode?
On Thu, May 01, 2003 at 05:48:07PM +0300, Nir Tzachar wrote:
> im implementing a stackable file system.
> i have a problem with the underlying file system after i delete a file ->
> i keep getting orphaned inodes .
I have not seen the term actually used, but I think it means an inode,
that has non-zero link count, but no dentries pointing to it are to be
found.
> can some please explain what is exactly an orphaned inode, so i can trace
> my implementation for bugs??
You are probably doing the reference-counting wrong. You should check,
that when you delete a dentry, the inode's nlink count is decremented
and the inode is properly marked dirty (so the nlink count makes it to
disk).
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/