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 1282906982-26918-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. v1 Latest15 patches 9 repliesIn review

Changes from V18 from the cover letter

a) Drop open on symlink patch
b) Drop other patches that added support for NULL pathname in *at syscalls
c) Add new handle based syscalls. All of them are restricted to CAP_DAC_READ_SEARCH

Patches in v1 No applies recorded yet

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

Reviews trailers per patch

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

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

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 -V19 00/15] 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 V18:
a) Drop open on symlink patch
b) Drop other patches that added support for NULL pathname in *at syscalls
c) Add new handle based syscalls. All of them are restricted to CAP_DAC_READ_SEARCH

-aneesh