diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-12-13 05:58:49 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-12-13 05:58:49 -0500 |
commit | b18da0c56e9ff43a007b6c8e302c62e720964151 (patch) | |
tree | dca57bc1042c576474529768533d6efb88716f35 /include/linux/fuse.h | |
parent | c411cc88d873b3f68635a04691f7f115c46bc39e (diff) |
fuse: support ioctl on directories
Multiplexing filesystems may want to support ioctls on the underlying
files and directores (e.g. FS_IOC_{GET,SET}FLAGS).
Ioctl support on directories was missing so add it now.
Reported-by: Antonio SJ Musumeci <bile@landofbile.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r-- | include/linux/fuse.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 464cff526860..446c89718b9c 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
@@ -50,6 +50,9 @@ | |||
50 | * | 50 | * |
51 | * 7.17 | 51 | * 7.17 |
52 | * - add FUSE_FLOCK_LOCKS and FUSE_RELEASE_FLOCK_UNLOCK | 52 | * - add FUSE_FLOCK_LOCKS and FUSE_RELEASE_FLOCK_UNLOCK |
53 | * | ||
54 | * 7.18 | ||
55 | * - add FUSE_IOCTL_DIR flag | ||
53 | */ | 56 | */ |
54 | 57 | ||
55 | #ifndef _LINUX_FUSE_H | 58 | #ifndef _LINUX_FUSE_H |
@@ -81,7 +84,7 @@ | |||
81 | #define FUSE_KERNEL_VERSION 7 | 84 | #define FUSE_KERNEL_VERSION 7 |
82 | 85 | ||
83 | /** Minor version number of this interface */ | 86 | /** Minor version number of this interface */ |
84 | #define FUSE_KERNEL_MINOR_VERSION 17 | 87 | #define FUSE_KERNEL_MINOR_VERSION 18 |
85 | 88 | ||
86 | /** The node ID of the root inode */ | 89 | /** The node ID of the root inode */ |
87 | #define FUSE_ROOT_ID 1 | 90 | #define FUSE_ROOT_ID 1 |
@@ -214,6 +217,7 @@ struct fuse_file_lock { | |||
214 | * FUSE_IOCTL_UNRESTRICTED: not restricted to well-formed ioctls, retry allowed | 217 | * FUSE_IOCTL_UNRESTRICTED: not restricted to well-formed ioctls, retry allowed |
215 | * FUSE_IOCTL_RETRY: retry with new iovecs | 218 | * FUSE_IOCTL_RETRY: retry with new iovecs |
216 | * FUSE_IOCTL_32BIT: 32bit ioctl | 219 | * FUSE_IOCTL_32BIT: 32bit ioctl |
220 | * FUSE_IOCTL_DIR: is a directory | ||
217 | * | 221 | * |
218 | * FUSE_IOCTL_MAX_IOV: maximum of in_iovecs + out_iovecs | 222 | * FUSE_IOCTL_MAX_IOV: maximum of in_iovecs + out_iovecs |
219 | */ | 223 | */ |
@@ -221,6 +225,7 @@ struct fuse_file_lock { | |||
221 | #define FUSE_IOCTL_UNRESTRICTED (1 << 1) | 225 | #define FUSE_IOCTL_UNRESTRICTED (1 << 1) |
222 | #define FUSE_IOCTL_RETRY (1 << 2) | 226 | #define FUSE_IOCTL_RETRY (1 << 2) |
223 | #define FUSE_IOCTL_32BIT (1 << 3) | 227 | #define FUSE_IOCTL_32BIT (1 << 3) |
228 | #define FUSE_IOCTL_DIR (1 << 4) | ||
224 | 229 | ||
225 | #define FUSE_IOCTL_MAX_IOV 256 | 230 | #define FUSE_IOCTL_MAX_IOV 256 |
226 | 231 | ||