diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2006-09-07 16:54:22 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 11:58:57 -0700 |
commit | d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38 (patch) | |
tree | 4f12208aa12a3cb2ccf066862474f7ef0ed0f999 /arch | |
parent | 14acdcd32160767d7f2fa00803d2d764d3e3373a (diff) | |
download | op-kernel-dev-d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38.zip op-kernel-dev-d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38.tar.gz |
USB: UB: Let cdrecord to see a device with media absent
The command "cdrecord dev=/dev/uba x.iso" prints nasty garbage if a blank
is not in the drive. This happens because drivers have to set req->errors
separately from just returning zero uptodate with end_that_request_first,
end_that_request_last. These functions only set error in BIO, but sg_io()
ignores it.
Since we're on it, let cdrecord access a device when ->changed is set.
It's useful if someone wants to know device capabilities without burning
anything.
Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions