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)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 22 Jul 2014 14:37:43 +0000 (16:37 +0200)
commitd7afaec0b564f0609e116f562983b8e72fc3e9c9
tree18df4aca0d0cc0427aa3082cfd2c6ac55d22aeff
parenta800bad36619ce47ac0222004635448e6c91ff72
fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT

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>
Cc: <stable@vger.kernel.org> # v3.15+
fs/fuse/inode.c
include/uapi/linux/fuse.h