Re: [PATCH -V4 2/6] vfs: Add name to file handle conversion support

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

 



On Mon, 26 Apr 2010 05:52:08 -0400, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> On Fri, Apr 23, 2010 at 04:02:14PM -0600, Andreas Dilger wrote:
> > Out of curiosity, why not do this for other types of files?  It makes sense from a consistency POV, so that the userspace code doesn't have to special-case each file by checking the type first (which would mean doing an extra path traversal and stat for each file first, adding overhead).
> 
> This limitation seems to be copied from the original XFS handle code,
> but I don't see any good reason to stay with it.
> 

The limitation came from the original XFS handle code. So to support
symlink and regular files better i added the below syscalls to the patch
set. sys_name_to_handle, sys_lname_to_handle and sys_freadlink. The last
to return the link target name from an fd. This enables to use handle
for symlink and then use the fd returned from open_by_handle to get the
target name. Let me know what you think

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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux