X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=block%2Fcompat_ioctl.c;h=7c668c8a6f953e1b6c298c9fc8af400924d7368a;hb=0a1538607bdbd08c8ff1b35ab00643bd0a6f7972;hp=7b725020823c82243418c7d0105b9f6d23260589;hpb=94bd217e2d683719ab21a4ac117d8a1b91cbedc9;p=karo-tx-linux.git diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 7b725020823c..7c668c8a6f95 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c @@ -719,6 +719,9 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) case BLKSECTGET: return compat_put_ushort(arg, queue_max_sectors(bdev_get_queue(bdev))); + case BLKROTATIONAL: + return compat_put_ushort(arg, + !blk_queue_nonrot(bdev_get_queue(bdev))); case BLKRASET: /* compatible, but no compat_ptr (!) */ case BLKFRASET: if (!capable(CAP_SYS_ADMIN))