Re: [PATCH -V7 3/9] vfs: Add name to file handle conversion support
From: Al Viro
Date: Fri May 14 2010 - 14:40:57 EST
On Fri, May 14, 2010 at 11:48:24PM +0530, Aneesh Kumar K. V wrote:
> How about
> sys_open_by_handle(int mountdirfd,
> struct file_handle __user *ufh, int open_flag)
>
> and we validate the UUID present in the file_handle by using mountdirfd
> vfsmount. In otherwords we drop the UUID based vfsmount lookup, But
> still add UUID as a part of file handle ?
IDGI. If you have decided upon the mountdirfd, why bother with rechecking?
You still need to handle the case when fs tells you to take a hike because
fileid was invalid. What does duplicate uuid check in the kernel buy you?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/