fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT
authorAndrew Gallagher <andrewjcg@fb.com>
Tue, 22 Jul 2014 14:37:43 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 19:44:08 +0000 (12:44 -0700)
commitc7b9c0291e753d3bc911d70c554930b2cf76e8c1
tree382fad739e657c9a1a0e02242225db7ef631aeea
parent67268040cb50767fe61330d4382eb4bac78b7d61
fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT

commit d7afaec0b564f0609e116f562983b8e72fc3e9c9 upstream.

Here some additional changes to set a capability flag so that clients can
detect when it's appropriate to return -ENOSYS from open.

This amends the following commit introduced in 3.14:

  7678ac50615d  fuse: support clients that don't implement 'open'

However we can only add the flag to 3.15 and later since there was no
protocol version update in 3.14.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/inode.c
include/uapi/linux/fuse.h