Re: negative dentry objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 25, 2008 at 01:49:23PM +0530, Onkar wrote:
> negative dentry is not associated with any inode (d_inode=0) because either
> the inode was deleted (how ??)  OR path name was never correct to begin with
> ( ???? foxed )
> Please try to give some clues as to how inode gets deleted when it is
> associated with  a dentry d (d->d_inode) ??? and why the the dentry was
> created in the firt place when the path name isn't correct ??

	fd = open("/tmp/foo");
	remove("/tmp/foo");

Now "fd" has an open handle to an inode whose dentry was removed from
the filesystem.  So it's dentry is now negative.

Hope this helps,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux