Re: How to safely access inode/dentry obtained from struct page *?

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

 



On Sat, 30 Aug 2014 10:41:16 +0530, Joshi said:
> I am trying to obtain file name at block layer level (above IO scheduler).

Nope.  Won't work.  There is no single unique name for a file.

Consider:

touch a
ln a b

There's now 2 names for the same inode.

And why should the block level care about the file name, anyhow?  It doesn't
even know if it's a file or metadata... or even if there's a filesystem
on the partition at all.....

Attachment: pgpfnaS42oqnX.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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