diff options
| author | Tomohiro Kusumi <tkusumi@tuxera.com> | 2017-02-27 17:27:11 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-27 21:43:45 -0500 |
| commit | 0fae77feca339699dbd6c079ded37bbd72432eb3 (patch) | |
| tree | f80bf8f25690782c9b9b8de5f318973f22c94063 /include/uapi/linux | |
| parent | 88488080946c2da0d998a3ac0a0a5aebf8dc62c8 (diff) | |
autofs: add command enum/macros for root-dir ioctls
Sync root-dir ioctl with misc-char-dev ioctl's enum/macro format since
these two types of ioctls aren't completely independent of each other in
terms of command nr. No functional changes.
Link: http://lkml.kernel.org/r/148577166143.9801.15511796506678428145.stgit@pluto.themaw.net
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/auto_dev-ioctl.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/auto_fs.h | 25 | ||||
| -rw-r--r-- | include/uapi/linux/auto_fs4.h | 16 |
3 files changed, 29 insertions, 14 deletions
diff --git a/include/uapi/linux/auto_dev-ioctl.h b/include/uapi/linux/auto_dev-ioctl.h index 388739b429b0..af107aa7b685 100644 --- a/include/uapi/linux/auto_dev-ioctl.h +++ b/include/uapi/linux/auto_dev-ioctl.h | |||
| @@ -156,8 +156,6 @@ enum { | |||
| 156 | AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD, | 156 | AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD, |
| 157 | }; | 157 | }; |
| 158 | 158 | ||
| 159 | #define AUTOFS_IOCTL 0x93 | ||
| 160 | |||
| 161 | #define AUTOFS_DEV_IOCTL_VERSION \ | 159 | #define AUTOFS_DEV_IOCTL_VERSION \ |
| 162 | _IOWR(AUTOFS_IOCTL, \ | 160 | _IOWR(AUTOFS_IOCTL, \ |
| 163 | AUTOFS_DEV_IOCTL_VERSION_CMD, struct autofs_dev_ioctl) | 161 | AUTOFS_DEV_IOCTL_VERSION_CMD, struct autofs_dev_ioctl) |
diff --git a/include/uapi/linux/auto_fs.h b/include/uapi/linux/auto_fs.h index 1bfc3ed8b284..aa63451ef20a 100644 --- a/include/uapi/linux/auto_fs.h +++ b/include/uapi/linux/auto_fs.h | |||
| @@ -61,12 +61,23 @@ struct autofs_packet_expire { | |||
| 61 | char name[NAME_MAX+1]; | 61 | char name[NAME_MAX+1]; |
| 62 | }; | 62 | }; |
| 63 | 63 | ||
| 64 | #define AUTOFS_IOC_READY _IO(0x93, 0x60) | 64 | #define AUTOFS_IOCTL 0x93 |
| 65 | #define AUTOFS_IOC_FAIL _IO(0x93, 0x61) | 65 | |
| 66 | #define AUTOFS_IOC_CATATONIC _IO(0x93, 0x62) | 66 | enum { |
| 67 | #define AUTOFS_IOC_PROTOVER _IOR(0x93, 0x63, int) | 67 | AUTOFS_IOC_READY_CMD = 0x60, |
| 68 | #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93, 0x64, compat_ulong_t) | 68 | AUTOFS_IOC_FAIL_CMD, |
| 69 | #define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93, 0x64, unsigned long) | 69 | AUTOFS_IOC_CATATONIC_CMD, |
| 70 | #define AUTOFS_IOC_EXPIRE _IOR(0x93, 0x65, struct autofs_packet_expire) | 70 | AUTOFS_IOC_PROTOVER_CMD, |
| 71 | AUTOFS_IOC_SETTIMEOUT_CMD, | ||
| 72 | AUTOFS_IOC_EXPIRE_CMD, | ||
| 73 | }; | ||
| 74 | |||
| 75 | #define AUTOFS_IOC_READY _IO(AUTOFS_IOCTL, AUTOFS_IOC_READY_CMD) | ||
| 76 | #define AUTOFS_IOC_FAIL _IO(AUTOFS_IOCTL, AUTOFS_IOC_FAIL_CMD) | ||
| 77 | #define AUTOFS_IOC_CATATONIC _IO(AUTOFS_IOCTL, AUTOFS_IOC_CATATONIC_CMD) | ||
| 78 | #define AUTOFS_IOC_PROTOVER _IOR(AUTOFS_IOCTL, AUTOFS_IOC_PROTOVER_CMD, int) | ||
| 79 | #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(AUTOFS_IOCTL, AUTOFS_IOC_SETTIMEOUT_CMD, compat_ulong_t) | ||
| 80 | #define AUTOFS_IOC_SETTIMEOUT _IOWR(AUTOFS_IOCTL, AUTOFS_IOC_SETTIMEOUT_CMD, unsigned long) | ||
| 81 | #define AUTOFS_IOC_EXPIRE _IOR(AUTOFS_IOCTL, AUTOFS_IOC_EXPIRE_CMD, struct autofs_packet_expire) | ||
| 71 | 82 | ||
| 72 | #endif /* _UAPI_LINUX_AUTO_FS_H */ | 83 | #endif /* _UAPI_LINUX_AUTO_FS_H */ |
diff --git a/include/uapi/linux/auto_fs4.h b/include/uapi/linux/auto_fs4.h index 8f8f1bdcca8c..7c6da423d54e 100644 --- a/include/uapi/linux/auto_fs4.h +++ b/include/uapi/linux/auto_fs4.h | |||
| @@ -148,10 +148,16 @@ union autofs_v5_packet_union { | |||
| 148 | autofs_packet_expire_direct_t expire_direct; | 148 | autofs_packet_expire_direct_t expire_direct; |
| 149 | }; | 149 | }; |
| 150 | 150 | ||
| 151 | #define AUTOFS_IOC_EXPIRE_MULTI _IOW(0x93, 0x66, int) | 151 | enum { |
| 152 | #define AUTOFS_IOC_EXPIRE_INDIRECT AUTOFS_IOC_EXPIRE_MULTI | 152 | AUTOFS_IOC_EXPIRE_MULTI_CMD = 0x66, /* AUTOFS_IOC_EXPIRE_CMD + 1 */ |
| 153 | #define AUTOFS_IOC_EXPIRE_DIRECT AUTOFS_IOC_EXPIRE_MULTI | 153 | AUTOFS_IOC_PROTOSUBVER_CMD, |
| 154 | #define AUTOFS_IOC_PROTOSUBVER _IOR(0x93, 0x67, int) | 154 | AUTOFS_IOC_ASKUMOUNT_CMD = 0x70, /* AUTOFS_DEV_IOCTL_VERSION_CMD - 1 */ |
| 155 | #define AUTOFS_IOC_ASKUMOUNT _IOR(0x93, 0x70, int) | 155 | }; |
| 156 | |||
| 157 | #define AUTOFS_IOC_EXPIRE_MULTI _IOW(AUTOFS_IOCTL, AUTOFS_IOC_EXPIRE_MULTI_CMD, int) | ||
| 158 | #define AUTOFS_IOC_EXPIRE_INDIRECT AUTOFS_IOC_EXPIRE_MULTI | ||
| 159 | #define AUTOFS_IOC_EXPIRE_DIRECT AUTOFS_IOC_EXPIRE_MULTI | ||
| 160 | #define AUTOFS_IOC_PROTOSUBVER _IOR(AUTOFS_IOCTL, AUTOFS_IOC_PROTOSUBVER_CMD, int) | ||
| 161 | #define AUTOFS_IOC_ASKUMOUNT _IOR(AUTOFS_IOCTL, AUTOFS_IOC_ASKUMOUNT_CMD, int) | ||
| 156 | 162 | ||
| 157 | #endif /* _LINUX_AUTO_FS4_H */ | 163 | #endif /* _LINUX_AUTO_FS4_H */ |
