aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/super.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-04-07 19:16:32 -0400
committerJan Kara <jack@suse.cz>2008-04-17 08:23:39 -0400
commitc82a127505d39fa81c886eceed6fdf8c1ff4a06b (patch)
treea96766d515ff22f1ba2d4af004c4c853ec29162c /fs/udf/super.c
parent4f7874c868eaedd0e64b2f6c800bc852bdc7f38b (diff)
udf: Fix detection of VAT version
We incorrectly (way to strictly) checked version of VAT on loading and thus refuse to mount correct media. There are just two format versions - below 2.0 and above 2.0 and we understand both. So update the version check accordingly. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r--fs/udf/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 28ed3f5ebd70..14f965e8a738 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -1256,12 +1256,12 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block,
1256 u16 suf = 1256 u16 suf =
1257 le16_to_cpu(((__le16 *)upm2->partIdent. 1257 le16_to_cpu(((__le16 *)upm2->partIdent.
1258 identSuffix)[0]); 1258 identSuffix)[0]);
1259 if (suf == 0x0150) { 1259 if (suf < 0x0200) {
1260 map->s_partition_type = 1260 map->s_partition_type =
1261 UDF_VIRTUAL_MAP15; 1261 UDF_VIRTUAL_MAP15;
1262 map->s_partition_func = 1262 map->s_partition_func =
1263 udf_get_pblock_virt15; 1263 udf_get_pblock_virt15;
1264 } else if (suf == 0x0200) { 1264 } else {
1265 map->s_partition_type = 1265 map->s_partition_type =
1266 UDF_VIRTUAL_MAP20; 1266 UDF_VIRTUAL_MAP20;
1267 map->s_partition_func = 1267 map->s_partition_func =