提交 c1a26e7d 编写于 作者: P Peter Osterlund 提交者: Linus Torvalds

[PATCH] UDF: Fix mounting read-write

The UDF filesystem can't be mounted in read-write mode any more,
because of forgotten braces.
Signed-off-by: NPeter Osterlund <petero2@telia.com>
[ Duh! ]
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4b0ff1a9
......@@ -1621,9 +1621,10 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent)
goto error_out;
}
if (UDF_SB_PARTFLAGS(sb, UDF_SB_PARTITION(sb)) & UDF_PART_FLAG_READ_ONLY)
if (UDF_SB_PARTFLAGS(sb, UDF_SB_PARTITION(sb)) & UDF_PART_FLAG_READ_ONLY) {
printk("UDF-fs: Partition marked readonly; forcing readonly mount\n");
sb->s_flags |= MS_RDONLY;
}
if ( udf_find_fileset(sb, &fileset, &rootdir) )
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册