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