aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@redhat.com>2006-09-07 19:54:22 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 14:58:57 -0400
commitd1ad4ea331e78a5ff90eda7718da31bcbc1a9c38 (patch)
tree4f12208aa12a3cb2ccf066862474f7ef0ed0f999 /include/linux/usb.h
parent14acdcd32160767d7f2fa00803d2d764d3e3373a (diff)
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 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions