linux/fs/udf
Jan Kara 9181f8bf5a udf: Don't modify filesystem for read-only mounts
When read-write mount of a filesystem is requested but we find out we
can mount the filesystem only in read-only mode, we still modify
LVID in udf_close_lvid(). That is both unnecessary and contrary to
expectation that when we fall back to read-only mount we don't modify
the filesystem.

Make sure we call udf_close_lvid() only if we called udf_open_lvid() so
that filesystem gets modified only if we verified we are allowed to
write to it.

Reported-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Jan Kara <jack@suse.com>
2015-08-20 14:58:35 +02:00
..
balloc.c
dir.c udf: Make udf_get_filename() return error instead of 0 length file name 2015-05-18 11:23:06 +02:00
directory.c
ecma_167.h
file.c udf: remove double err declaration in udf_file_write_iter() 2015-05-18 11:23:09 +02:00
ialloc.c
inode.c udf: Don't corrupt unalloc spacetable when writing it 2015-07-09 16:38:57 +02:00
Kconfig
lowlevel.c
Makefile
misc.c
namei.c UDF: support NFSv2 export 2015-05-18 11:23:08 +02:00
osta_udf.h
partition.c
super.c udf: Don't modify filesystem for read-only mounts 2015-08-20 14:58:35 +02:00
symlink.c udf: Return -ENOMEM when allocation fails in udf_get_filename() 2015-05-18 11:23:03 +02:00
truncate.c
udf_i.h fs: cleanup slight list_entry abuse 2015-06-23 18:01:59 -04:00
udf_sb.h
udfdecl.h
udfend.h
udftime.c
unicode.c udf: Make udf_get_filename() return error instead of 0 length file name 2015-05-18 11:23:06 +02:00