Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arnd Bergmann and committed by
Linus Torvalds
f79f1185 e28cab42

+2
+2
fs/compat_ioctl.c
··· 1038 1038 #ifdef CONFIG_BLOCK 1039 1039 /* loop */ 1040 1040 IGNORE_IOCTL(LOOP_CLR_FD) 1041 + /* md calls this on random blockdevs */ 1042 + IGNORE_IOCTL(RAID_VERSION) 1041 1043 /* SG stuff */ 1042 1044 COMPATIBLE_IOCTL(SG_SET_TIMEOUT) 1043 1045 COMPATIBLE_IOCTL(SG_GET_TIMEOUT)