• Jan Kara's avatar
    udf: Fix mounting of Win7 created UDF filesystems · 7f401f16
    Jan Kara authored
    commit ee4af50c upstream.
    
    Win7 is creating UDF filesystems with single partition with number 8192.
    Current partition descriptor scanning code does not handle this well as
    it incorrectly assumes that partition numbers will form mostly contiguous
    space of small numbers. This results in unmountable media due to errors
    like:
    
    UDF-fs: error (device dm-1): udf_read_tagged: tag version 0x0000 != 0x0002 || 0x0003, block 0
    UDF-fs: warning (device dm-1): udf_fill_super: No fileset found
    
    Fix the problem by handling partition descriptors in a way that sparse
    partition numbering does not matter.
    Reported-and-tested-by: 's avatarjean-luc malet <jeanluc.malet@gmail.com>
    CC: stable@vger.kernel.org
    Fixes: 7b78fd02Signed-off-by: 's avatarJan Kara <jack@suse.cz>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    7f401f16
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
balloc.c Loading commit data...
dir.c Loading commit data...
directory.c Loading commit data...
ecma_167.h Loading commit data...
file.c Loading commit data...
ialloc.c Loading commit data...
inode.c Loading commit data...
lowlevel.c Loading commit data...
misc.c Loading commit data...
namei.c Loading commit data...
osta_udf.h Loading commit data...
partition.c Loading commit data...
super.c Loading commit data...
symlink.c Loading commit data...
truncate.c Loading commit data...
udf_i.h Loading commit data...
udf_sb.h Loading commit data...
udfdecl.h Loading commit data...
udfend.h Loading commit data...
udftime.c Loading commit data...
unicode.c Loading commit data...