Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
abfd0ec5
Commit
abfd0ec5
authored
Apr 17, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dm: Fix 64/32 bit ioctl problems.
From: Kevin Corry <kevcorry@us.ibm.com> Fix 64/32 bit ioctl problems.
parent
bea63af0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
include/linux/compat_ioctl.h
include/linux/compat_ioctl.h
+13
-0
include/linux/dm-ioctl.h
include/linux/dm-ioctl.h
+28
-0
No files found.
include/linux/compat_ioctl.h
View file @
abfd0ec5
...
@@ -123,6 +123,19 @@ COMPATIBLE_IOCTL(STOP_ARRAY)
...
@@ -123,6 +123,19 @@ COMPATIBLE_IOCTL(STOP_ARRAY)
COMPATIBLE_IOCTL
(
STOP_ARRAY_RO
)
COMPATIBLE_IOCTL
(
STOP_ARRAY_RO
)
COMPATIBLE_IOCTL
(
RESTART_ARRAY_RW
)
COMPATIBLE_IOCTL
(
RESTART_ARRAY_RW
)
/* DM */
/* DM */
COMPATIBLE_IOCTL
(
DM_VERSION_32
)
COMPATIBLE_IOCTL
(
DM_LIST_DEVICES_32
)
COMPATIBLE_IOCTL
(
DM_DEV_CREATE_32
)
COMPATIBLE_IOCTL
(
DM_DEV_REMOVE_32
)
COMPATIBLE_IOCTL
(
DM_DEV_RENAME_32
)
COMPATIBLE_IOCTL
(
DM_DEV_SUSPEND_32
)
COMPATIBLE_IOCTL
(
DM_DEV_STATUS_32
)
COMPATIBLE_IOCTL
(
DM_DEV_WAIT_32
)
COMPATIBLE_IOCTL
(
DM_TABLE_LOAD_32
)
COMPATIBLE_IOCTL
(
DM_TABLE_CLEAR_32
)
COMPATIBLE_IOCTL
(
DM_TABLE_DEPS_32
)
COMPATIBLE_IOCTL
(
DM_TABLE_STATUS_32
)
COMPATIBLE_IOCTL
(
DM_LIST_VERSIONS_32
)
COMPATIBLE_IOCTL
(
DM_VERSION
)
COMPATIBLE_IOCTL
(
DM_VERSION
)
COMPATIBLE_IOCTL
(
DM_LIST_DEVICES
)
COMPATIBLE_IOCTL
(
DM_LIST_DEVICES
)
COMPATIBLE_IOCTL
(
DM_DEV_CREATE
)
COMPATIBLE_IOCTL
(
DM_DEV_CREATE
)
...
...
include/linux/dm-ioctl.h
View file @
abfd0ec5
...
@@ -200,6 +200,34 @@ enum {
...
@@ -200,6 +200,34 @@ enum {
DM_LIST_VERSIONS_CMD
,
DM_LIST_VERSIONS_CMD
,
};
};
/*
* The dm_ioctl struct passed into the ioctl is just the header
* on a larger chunk of memory. On x86-64 and other
* architectures the dm-ioctl struct will be padded to an 8 byte
* boundary so the size will be different, which would change the
* ioctl code - yes I really messed up. This hack forces these
* architectures to have the correct ioctl code.
*/
#ifdef CONFIG_COMPAT
typedef
char
ioctl_struct
[
308
];
#define DM_VERSION_32 _IOWR(DM_IOCTL, DM_VERSION_CMD, ioctl_struct)
#define DM_REMOVE_ALL_32 _IOWR(DM_IOCTL, DM_REMOVE_ALL_CMD, ioctl_struct)
#define DM_LIST_DEVICES_32 _IOWR(DM_IOCTL, DM_LIST_DEVICES_CMD, ioctl_struct)
#define DM_DEV_CREATE_32 _IOWR(DM_IOCTL, DM_DEV_CREATE_CMD, ioctl_struct)
#define DM_DEV_REMOVE_32 _IOWR(DM_IOCTL, DM_DEV_REMOVE_CMD, ioctl_struct)
#define DM_DEV_RENAME_32 _IOWR(DM_IOCTL, DM_DEV_RENAME_CMD, ioctl_struct)
#define DM_DEV_SUSPEND_32 _IOWR(DM_IOCTL, DM_DEV_SUSPEND_CMD, ioctl_struct)
#define DM_DEV_STATUS_32 _IOWR(DM_IOCTL, DM_DEV_STATUS_CMD, ioctl_struct)
#define DM_DEV_WAIT_32 _IOWR(DM_IOCTL, DM_DEV_WAIT_CMD, ioctl_struct)
#define DM_TABLE_LOAD_32 _IOWR(DM_IOCTL, DM_TABLE_LOAD_CMD, ioctl_struct)
#define DM_TABLE_CLEAR_32 _IOWR(DM_IOCTL, DM_TABLE_CLEAR_CMD, ioctl_struct)
#define DM_TABLE_DEPS_32 _IOWR(DM_IOCTL, DM_TABLE_DEPS_CMD, ioctl_struct)
#define DM_TABLE_STATUS_32 _IOWR(DM_IOCTL, DM_TABLE_STATUS_CMD, ioctl_struct)
#define DM_LIST_VERSIONS_32 _IOWR(DM_IOCTL, DM_LIST_VERSIONS_CMD, ioctl_struct)
#endif
#define DM_IOCTL 0xfd
#define DM_IOCTL 0xfd
#define DM_VERSION _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl)
#define DM_VERSION _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment