summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-04-08 01:16:32 +0200
committerJan Kara <jack@suse.cz>2008-04-17 14:23:39 +0200
commitc82a127505d39fa81c886eceed6fdf8c1ff4a06b (patch)
treea96766d515ff22f1ba2d4af004c4c853ec29162c /fs/udf
parent4f7874c868eaedd0e64b2f6c800bc852bdc7f38b (diff)
downloadop-kernel-dev-c82a127505d39fa81c886eceed6fdf8c1ff4a06b.zip
op-kernel-dev-c82a127505d39fa81c886eceed6fdf8c1ff4a06b.tar.gz
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')
-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 28ed3f5..14f965e 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,
u16 suf =
le16_to_cpu(((__le16 *)upm2->partIdent.
identSuffix)[0]);
- if (suf == 0x0150) {
+ if (suf < 0x0200) {
map->s_partition_type =
UDF_VIRTUAL_MAP15;
map->s_partition_func =
udf_get_pblock_virt15;
- } else if (suf == 0x0200) {
+ } else {
map->s_partition_type =
UDF_VIRTUAL_MAP20;
map->s_partition_func =
OpenPOWER on IntegriCloud