Re: [V9fs-developer] 9p/overlayfs: what inodes/dentries are safe to use?

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

 



On Mon, Oct 12, 2015 at 7:47 PM, Dominique Martinet
<asmadeus@xxxxxxxxxxxxx> wrote:
> Miklos Szeredi wrote on Mon, Oct 12, 2015:
>> The solution depends on how 9p handles hard links.  If any dentry will
>> do then d_find_any_alias() will get you a dentry (any dentry) from the
>> inode.
>>
>> Otherwise I know of no mechanism to get the backing dentry from the file.
>
> I've got two problems at the moment:
>  - first, 9P stores informations in the superblock (accessed
> through either dentry->d_sb->s_fs_info or inode->i_sb->...), and
> operations such as read will get passed an inode and a file (which has a
> dentry), but 9P doesn't know which to trust (if I go this right - if 9P
> is underlay then the inode is 9p's, if 9P is overlay then the dentry
> is ?)

file->f_path shouldn't be trusted by filesystems for non-directories.  Ever.

Solution to this particular problem?  Not sure.

Al?

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux