• Pete Zaitcev's avatar
    USB: UB: Let cdrecord to see a device with media absent · d1ad4ea3
    Pete Zaitcev authored
    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: default avatarPete Zaitcev <zaitcev@redhat.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    d1ad4ea3
ub.c 61.7 KB