fuse: device fd clone
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 1 Jul 2015 14:26:08 +0000 (16:26 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 1 Jul 2015 14:26:08 +0000 (16:26 +0200)
commit00c570f4ba43ae73b41fa0a2269c3b0ac20386ef
tree5dad39b5bf083a172c7ac544ae0121d7fab1eeb0
parentee314a870e402f4e63b8a651bc96c740ed69cb31
fuse: device fd clone

Allow an open fuse device to be "cloned".  Userspace can create a clone by:

      newfd = open("/dev/fuse", O_RDWR)
      ioctl(newfd, FUSE_DEV_IOC_CLONE, &oldfd);

At this point newfd will refer to the same fuse connection as oldfd.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
Documentation/ioctl/ioctl-number.txt
fs/fuse/dev.c
include/uapi/linux/fuse.h