Skip to content

Commit

Permalink
udf: Fix detection of VAT version
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kara committed Apr 17, 2008
1 parent 4f7874c commit c82a127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit c82a127

Please sign in to comment.