Skip to content

Generic name to handle and open by handle syscalls

Aneesh Kumar K.V linux-fsdevel lkml 1 version In review

Get series with b4
b4 am 1285702610-32733-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. v1 Latest12 patches 7 repliesIn review

Changes from V19 from the cover letter

a) Drop handle based chown, xattr, utimes syscalls
b) Rebased to latest linus kernel (050026feae5bd4fe2db4096b63b15abce7c47faa)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12exportfs: Return the minimum required handle sizefs/btrfs/export.c fs/exportfs/expfs.c fs/fat/inode.c +9 more+60 -172 replies
2/12vfs: Add name to file handle conversion supportfs/open.c include/linux/exportfs.h include/linux/fs.h +1 more+143 -14 replies
3/12vfs: Add open by file handle supportfs/compat.c fs/exportfs/expfs.c fs/namei.c +4 more+263 -191 reply
4/12vfs: Add handle based readlink syscallfs/stat.c include/linux/syscalls.h+31 -00 replies
5/12vfs: Add handle based stat syscallarch/x86/ia32/sys_ia32.c fs/stat.c include/linux/fs.h +1 more+67 -00 replies
6/12vfs: Add handle based link syscallfs/namei.c include/linux/syscalls.h+47 -00 replies
7/12x86: Add new syscalls for x86_32arch/x86/include/asm/unistd_32.h arch/x86/kernel/syscall_table_32.S+11 -10 replies
8/12x86: Add new syscalls for x86_64arch/x86/ia32/ia32entry.S arch/x86/include/asm/unistd_64.h+15 -00 replies
9/12unistd.h: Add new syscalls numbers to asm-genericinclude/asm-generic/unistd.h+11 -10 replies
10/12vfs: Export file system uuid via /proc/<pid>/mountinfofs/namespace.c include/linux/fs.h+17 -00 replies
11/12ext3: Copy fs UUID to superblock.fs/ext3/super.c+1 -00 replies
12/12ext4: Copy fs UUID to superblockfs/ext4/super.c+2 -00 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchSerge Hallyn
1/12A-b
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -V20 00/12] Generic name to handle and open by handle syscalls

Hi,

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.

[1] http://nfs-ganesha.sourceforge.net/
[2] http://thread.gmane.org/gmane.comp.emulators.qemu/68992

git repo for the patchset at:
git://git.kernel.org/pub/scm/linux/kernel/git/kvaneesh/linux-open-handle.git open-by-handle

Test case can be found at
http://git.kernel.org/?p=fs/ext2/kvaneesh/handle-test.git
git://git.kernel.org/pub/scm/fs/ext2/kvaneesh/handle-test.git

Changes from V19:
a) Drop handle based chown, xattr, utimes syscalls
b) Rebased to latest linus kernel (050026feae5bd4fe2db4096b63b15abce7c47faa)

-aneesh