diff options
| author | Joe Thornber <joe@fib011235813.fsnet.co.uk> | 2002-12-15 17:15:43 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-15 17:15:43 -0800 |
| commit | e36a44915d7140d680cd7e952381dec21798c068 (patch) | |
| tree | 404f79c7f5ecd06ed2352ee7fcd916bd3797467f /include/linux/dm-ioctl.h | |
| parent | 91ec8aa9f5416d3474a34af9b8f197a344d0d523 (diff) | |
[PATCH] dm: move ioctl numbers to a sane place
Four constants:
DM_DIR,
DM_MAX_TYPE_NAME,
DM_NAME_LEN,
DM_UUID_LEN
Were being declared in device-mapper.h, these are all specific to
the ioctl interface, so they've been moved to dm-ioctl.h. Nobody
in userland should ever include <linux/device-mapper.h> so remove
ifdef __KERNEL guards.
Diffstat (limited to 'include/linux/dm-ioctl.h')
| -rw-r--r-- | include/linux/dm-ioctl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/dm-ioctl.h b/include/linux/dm-ioctl.h index c5ae8cd3921c..72edd5e19e62 100644 --- a/include/linux/dm-ioctl.h +++ b/include/linux/dm-ioctl.h @@ -7,9 +7,13 @@ #ifndef _LINUX_DM_IOCTL_H #define _LINUX_DM_IOCTL_H -#include <linux/device-mapper.h> #include <linux/types.h> +#define DM_DIR "mapper" /* Slashes not supported */ +#define DM_MAX_TYPE_NAME 16 +#define DM_NAME_LEN 128 +#define DM_UUID_LEN 129 + /* * Implements a traditional ioctl interface to the device mapper. */ |
