udf: Disallow R/W mode for disk with Metadata partition
authorPali Rohár <pali.rohar@gmail.com>
Sun, 12 Jan 2020 14:49:59 +0000 (15:49 +0100)
committerJan Kara <jack@suse.cz>
Mon, 13 Jan 2020 11:40:17 +0000 (12:40 +0100)
commit57debb815459d2ef3e25aacfe355307d14b73a91
treea2a22da1ebae1ea07c5078a679d404d88e49a3c9
parent49be68c4931d9f0f171e5f01a574fc40205db2b5
udf: Disallow R/W mode for disk with Metadata partition

Currently we do not support writing to UDF disks with Metadata partition.
There is already check that disks with declared minimal write revision to
UDF 2.50 or higher are mounted only in R/O mode but this does not cover
situation when minimal write revision is set incorrectly (e.g. to 2.01).

Link: https://lore.kernel.org/r/20200112144959.28104-1-pali.rohar@gmail.com
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c