Skip to content

Commit 7868f93

Browse files
wolfpldjankara
authored andcommitted
udf: Increase UDF_MAX_READ_VERSION to 0x0260
Some discs containing the UDF file system are unable to be mounted, failing with the following message: UDF-fs: error (device sr0): udf_fill_super: minUDFReadRev=260 (max is 250) The UDF 2.60 specification [0] states in the section Basic Restrictions & Requirements (page 10): The Minimum UDF Read Revision value shall be at most #250 for all media with a UDF 2.60 file system. This indicates that a UDF 2.50 implementation can read all UDF 2.60 media. Media that do not have a Metadata Partition may use a value lower than #250. The conclusion is that the discs failing to mount were burned with a faulty software, which didn't follow the specification. This can be worked around by increasing UDF_MAX_READ_VERSION to 0x260, to match the Minimum Read Revision. No other changes are required, as reading UDF 2.60 is backward compatible with UDF 2.50. [0] http://www.osta.org/specs/pdf/udf260.pdf Signed-off-by: Bartosz Taudul <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent b41b98e commit 7868f93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fs/udf/udf_sb.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
#include <linux/bitops.h>
77
#include <linux/magic.h>
88

9-
#define UDF_MAX_READ_VERSION 0x0250
9+
/*
10+
* Even UDF 2.6 media should have version <= 0x250 but apparently there are
11+
* some broken filesystems with version set to 0x260. Accommodate those.
12+
*/
13+
#define UDF_MAX_READ_VERSION 0x0260
1014
#define UDF_MAX_WRITE_VERSION 0x0201
1115

1216
#define UDF_FLAG_USE_EXTENDED_FE 0

0 commit comments

Comments
 (0)