[PATCH 06/13] sg_io: whitelist a few more commands for multimedia devices

Paolo Bonzini
2013-01-24T15:01:15Z

Strangely, a couple of MMC commands were never included. Add them too.

Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: linux-scsi@kernel.org
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
block/scsi_ioctl.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
index 084b943..ec930f0 100644
--- a/block/scsi_ioctl.c
+++ b/block/scsi_ioctl.c
@@ -220,11 +220,14 @@ static void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter)
sgio_bitmap_set(0x52, R , read); // READ TRACK INFORMATION
sgio_bitmap_set(0x5C, R , read); // READ BUFFER CAPACITY
sgio_bitmap_set(0xA4, R , read); // REPORT KEY
+ sgio_bitmap_set(0xA5, R , read); // PLAY AUDIO(12)
+ sgio_bitmap_set(0xAB, R| V , read); // SERVICE ACTION IN(12)
sgio_bitmap_set(0xAC, R , read); // GET PERFORMANCE
sgio_bitmap_set(0xAD, R , read); // READ DVD STRUCTURE
sgio_bitmap_set(0xB9, R , read); // READ CD MSF
sgio_bitmap_set(0xBA, R , read); // SCAN
sgio_bitmap_set(0xBC, R , read); // PLAY CD
+ sgio_bitmap_set(0xBD, R , read); // MECHANISM STATUS
sgio_bitmap_set(0xBE, R , read); // READ CD

sgio_bitmap_set(0x53, D| R , write); // RESERVE TRACK / XDWRITEREAD(10)
--
1.7.1