Skip to content

Generic name to handle and open by handle syscalls

Aneesh Kumar K.V linux-fsdevel lkml 1 version New

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

Versions newest first

  1. v1 Latest16 patches 0 repliesNew

Changes from V22 from the cover letter

a) Add support for O_PATH open flag
b) Add support "" names in *at syscalls
c) Add support O_PATH descriptor in few selective syscalls like stat, chown, chmod and dup

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16exportfs: Return the minimum required handle sizefs/btrfs/export.c fs/exportfs/expfs.c fs/fat/inode.c +9 more+59 -180 replies
2/16vfs: Add name to file handle conversion supportfs/open.c include/linux/exportfs.h include/linux/fs.h +2 more+145 -10 replies
3/16vfs: Add open by file handle supportfs/compat.c fs/exportfs/expfs.c fs/namei.c +4 more+268 -210 replies
4/16fs: Don't allow to create hardlink for deleted filefs/namei.c+5 -10 replies
5/16fs: Remove i_nlink check from file system link callbackfs/btrfs/inode.c fs/ext3/namei.c fs/ext4/namei.c +3 more+0 -420 replies
6/16x86: Add new syscalls for x86_32arch/x86/include/asm/unistd_32.h arch/x86/kernel/syscall_table_32.S+5 -10 replies
7/16x86: Add new syscalls for x86_64arch/x86/ia32/ia32entry.S arch/x86/include/asm/unistd_64.h+6 -00 replies
8/16unistd.h: Add new syscalls numbers to asm-genericinclude/asm-generic/unistd.h+5 -10 replies
9/16vfs: Export file system uuid via /proc/<pid>/mountinfofs/namespace.c include/linux/fs.h+17 -00 replies
10/16ext3: Copy fs UUID to superblock.fs/ext3/super.c+1 -00 replies
11/16ext4: Copy fs UUID to superblockfs/ext4/super.c+2 -00 replies
12/16vfs: Add O_PATH open flagfs/fcntl.c fs/file_table.c fs/namei.c +3 more+113 -110 replies
13/16fs: Support "" relative pathnamesfs/namei.c include/linux/fs.h+87 -270 replies
14/16fs: limit linkat syscall with null relative name to CAP_DAC_READ_SEARCHfs/namei.c+21 -00 replies
15/16vfs: enable O_PATH descriptor for few syscallsfs/fcntl.c fs/open.c fs/stat.c+4 -40 replies
16/16vfs: enable "" pathname in openat syscallfs/open.c+1 -10 replies

Reviews trailers per patch

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

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

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 -V26 00/16] 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 V22:
a) Add support for O_PATH open flag
b) Add support "" names in *at syscalls
c) Add support O_PATH descriptor in few selective syscalls like stat, chown, chmod and dup

NOTE: v23-25 can be found in the git repo

-aneesh