compat_ioctl: ignore RAID_VERSION ioctl
authorArnd Bergmann <arnd@arndb.de>
Wed, 10 Feb 2010 15:14:04 +0000 (16:14 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Feb 2010 15:36:16 +0000 (07:36 -0800)
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>
fs/compat_ioctl.c

index c5c45de1a2eee291d74c50c5680ea20db23be195..b6f23b25370e4101a2fead6a35ea3d1da7582e05 100644 (file)
@@ -1038,6 +1038,8 @@ COMPATIBLE_IOCTL(FIOQSIZE)
 #ifdef CONFIG_BLOCK
 /* loop */
 IGNORE_IOCTL(LOOP_CLR_FD)
+/* md calls this on random blockdevs */
+IGNORE_IOCTL(RAID_VERSION)
 /* SG stuff */
 COMPATIBLE_IOCTL(SG_SET_TIMEOUT)
 COMPATIBLE_IOCTL(SG_GET_TIMEOUT)