From: Pete Zaitcev Date: Thu, 7 Sep 2006 23:54:22 +0000 (-0700) Subject: USB: UB: Let cdrecord to see a device with media absent X-Git-Tag: v2.6.19-rc1~899^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed