diff options
| author | Jens Axboe <axboe@suse.de> | 2004-02-09 16:45:59 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@suse.de> | 2004-02-09 16:45:59 -0800 |
| commit | 1ec2fc7d07210145d4d08a99b3478d24fffb5f90 (patch) | |
| tree | ad32e5213c3329531aa76a41b308d540f213b5aa /include/linux | |
| parent | af3ad15398b72407954bccca0d9952527e42da05 (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
