Re: lookup_dentry

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

 



On Tue, 7 May 2002, Sridhar N wrote:

> 	Thanks it worked.  Given two paths, to check if they refer to the
> same file, is it enough to check if their inode number and their mount
> points are same ?  Or is there something else ?

Two paths point to identical file <=> dentry1->d_inode->i_ino == 
dentry2->d_inode->i_ino && dentry1->d_inode->i_dev = 
dentry2->d_inode->i_dev

-- 
JiKos.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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