udf: Use device size when drive reported bogus number of written blocks
authorJan Kara <jack@suse.cz>
Thu, 18 Jun 2009 10:33:16 +0000 (12:33 +0200)
committerJan Kara <jack@suse.cz>
Thu, 18 Jun 2009 10:33:16 +0000 (12:33 +0200)
commit24a5d59f3477bcff4c069ff4d0ca9a3e037d0235
tree1520131c701310311b5c253dce5553f4d98281c8
parent1d89b30cc9be41af87881682ec82e2c107849dbe
udf: Use device size when drive reported bogus number of written blocks

Some drives report 0 as the number of written blocks when there are some blocks
recorded. Use device size in such case so that we can automagically mount such
media.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/lowlevel.c