On 2010-03-25, at 18:42, Ben Hutchings wrote:
On Thu, 2010-03-18 at 22:39 +0530, Aneesh Kumar K.V wrote:
The below set of patches implement open by handle support using
exportfs
operations. This allows user space application to map a file name
to file
handle and later open the file using handle. This should be usable
for userspace NFS [1] and 9P server [2]. XFS already support this
with the ioctls
XFS_IOC_PATH_TO_HANDLE and XFS_IOC_OPEN_BY_HANDLE.
I think this is quite a poor choice of name. A 'handle' is normally a
capability and a counted reference to some resource. In a Linux
context
'file handle' suggests to me a pointer to struct file. But as I
understand it you are trying to provide an uncounted reference that is
still subject to later permission checks.
In NFS this is currently called a file handle (i.e. an encoded
representation of a specific file/inode), so the name is consistent
with current usage.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
--
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