diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-02-10 10:14:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-10 10:36:16 -0500 |
commit | f79f11852831ba8837e82b73364e6f1cd0145499 (patch) | |
tree | 250450363c2aa1e43980ab0d61bdf07352ec139b /fs | |
parent | e28cab42f384745c8a947a9ccd51e4aae52f5d51 (diff) |
compat_ioctl: ignore RAID_VERSION ioctl
md ioctls are now handled by the md driver itself, but mdadm
may call RAID_VERSION on other devices as well. Mark the command
as IGNORE_IOCTL so this fails silently rather than printing
an annoying message.
Reported-by: "Michael S. Tsirkin" <m.s.tsirkin@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/compat_ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index c5c45de1a2ee..b6f23b25370e 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -1038,6 +1038,8 @@ COMPATIBLE_IOCTL(FIOQSIZE) | |||
1038 | #ifdef CONFIG_BLOCK | 1038 | #ifdef CONFIG_BLOCK |
1039 | /* loop */ | 1039 | /* loop */ |
1040 | IGNORE_IOCTL(LOOP_CLR_FD) | 1040 | IGNORE_IOCTL(LOOP_CLR_FD) |
1041 | /* md calls this on random blockdevs */ | ||
1042 | IGNORE_IOCTL(RAID_VERSION) | ||
1041 | /* SG stuff */ | 1043 | /* SG stuff */ |
1042 | COMPATIBLE_IOCTL(SG_SET_TIMEOUT) | 1044 | COMPATIBLE_IOCTL(SG_SET_TIMEOUT) |
1043 | COMPATIBLE_IOCTL(SG_GET_TIMEOUT) | 1045 | COMPATIBLE_IOCTL(SG_GET_TIMEOUT) |