virtio_blk: ioctl return value fix
authorChristoph Hellwig <hch@lst.de>
Sat, 20 Jun 2009 19:29:41 +0000 (21:29 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 17 Jul 2009 12:17:46 +0000 (21:47 +0930)
commitd9ecdea7ed7467db32ec160f4eca46c279255606
treed28aaecc9e06af13baa02e6d36a02e7e8fe58fb1
parent4eff3cae9c9809720c636e64bc72f212258e0bd5
virtio_blk: ioctl return value fix

Block driver ioctl methods must return ENOTTY and not -ENOIOCTLCMD if
they expect the block layer to handle generic ioctls.

This triggered a BLKROSET failure in xfsqa #200.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c