summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@redhat.com>2006-09-07 16:54:22 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 11:58:57 -0700
commitd1ad4ea331e78a5ff90eda7718da31bcbc1a9c38 (patch)
tree4f12208aa12a3cb2ccf066862474f7ef0ed0f999 /block
parent14acdcd32160767d7f2fa00803d2d764d3e3373a (diff)
downloadlinux-d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38.tar.gz
linux-d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38.tar.bz2
linux-d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38.zip
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 'block')
0 files changed, 0 insertions, 0 deletions