From ecfa5263ab5b19a58d53a7116fb079f3b956b918 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 5 Dec 2008 10:55:36 +0000 Subject: * Implement ioctl support. On high level interface only "restricted" ioctls are supported (which are defined with the _IO(), _IOR(), _IOW() or _IOWR() macros). Unrestricted ioctls will only be allwed to CUSE (Character Device in Userspace) servers. Patch by Tejun Heo --- include/fuse_common.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/fuse_common.h') diff --git a/include/fuse_common.h b/include/fuse_common.h index 9bbc386..fb18b61 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -93,6 +93,21 @@ struct fuse_file_info { #define FUSE_CAP_ATOMIC_O_TRUNC (1 << 3) #define FUSE_CAP_BIG_WRITES (1 << 5) +/** + * Ioctl flags + * + * FUSE_IOCTL_COMPAT: 32bit compat ioctl on 64bit machine + * FUSE_IOCTL_UNRESTRICTED: not restricted to well-formed ioctls, retry allowed + * FUSE_IOCTL_RETRY: retry with new iovecs + * + * FUSE_IOCTL_MAX_IOV: maximum of in_iovecs + out_iovecs + */ +#define FUSE_IOCTL_COMPAT (1 << 0) +#define FUSE_IOCTL_UNRESTRICTED (1 << 1) +#define FUSE_IOCTL_RETRY (1 << 2) + +#define FUSE_IOCTL_MAX_IOV 256 + /** * Connection information, passed to the ->init() method * -- cgit v1.2.3