From: Tejun Heo Date: Fri, 4 Sep 2009 02:38:02 +0000 (+0900) Subject: [SCSI] sr: consider the last written sector when determining media size X-Git-Tag: v2.6.32-rc4~9^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5915136d4d3954867cced8a2297bddd16caf36a1;p=pandora-kernel.git [SCSI] sr: consider the last written sector when determining media size On certain cases, UDF disc doesn't report capacity correctly via READ_CAPACITY but TOC or trackinfo contains valid information which can be obtained using cdrom_get_last_written(). ide-cd considers both values and uses the larger one. Do the same in sr. This fixes bko#9668. http://bugzilla.kernel.org/show_bug.cgi?id=9668 Signed-off-by: Tejun Heo Reported-by: Milan Kocian Cc: Jan Kara Signed-off-by: James Bottomley --- Reading git-diff-tree failed