summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2004-02-09 16:45:59 -0800
committerJens Axboe <axboe@suse.de>2004-02-09 16:45:59 -0800
commit1ec2fc7d07210145d4d08a99b3478d24fffb5f90 (patch)
treead32e5213c3329531aa76a41b308d540f213b5aa /include/linux
parentaf3ad15398b72407954bccca0d9952527e42da05 (diff)
[PATCH] DVD-R capability flag set incorrectly, /proc formatting fix
From John McKell <mckellj@iomega.com>: This patch for scsi/sr.c and cdrom/cdrom.c persuades /proc/sys/dev/cdrom/info to report that connecting a drive via USB rather than ATAPI in fact does not make it able to write DVD-R. Without this patch, when sr0 and hdd are the same type of device connected via USB and ATAPI respectively, I see: $ cat /proc/sys/dev/cdrom/info: drive name: sr1 sr0 hdd ... Can write CD-R: 1 0 0 Can write CD-RW: 1 0 0 Can read DVD: 0 0 0 Can write DVD-R: 1 1 0 Can write DVD-RAM: 0 0 0 Can read MRW: 0 0 0 Can write MRW: 0 0 0 With this patch applied, instead I see: $ cat /proc/sys/dev/cdrom/info: drive name: sr1 sr0 hdd ... Can write CD-R: 1 0 0 Can write CD-RW: 1 0 0 Can read DVD: 0 0 0 Can write DVD-R: 0 0 0 Can write DVD-RAM: 0 0 0 Can read MRW: 0 0 0 Can write MRW: 0 0 0 The sr1 device in particular is an ordinary CD-RW that in fact cannot write DVD-R. While messing with this code, I also thought to tweak the /proc formatting to align the tabbed columns.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions