summaryrefslogtreecommitdiffstats
path: root/block/bounce.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.com>2015-08-20 14:50:07 +0200
committerJan Kara <jack@suse.com>2015-08-20 14:58:35 +0200
commit9181f8bf5abf4b9d59b12e878895375b84fe32ba (patch)
tree7bd54141c6086a7507d2a393c465678870cd1eed /block/bounce.c
parent72d4d0e48995c91ddf5d1f86612c979eca95bd06 (diff)
downloadlinux-0-day-9181f8bf5abf4b9d59b12e878895375b84fe32ba.tar.gz
linux-0-day-9181f8bf5abf4b9d59b12e878895375b84fe32ba.tar.xz
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>
Diffstat (limited to 'block/bounce.c')
0 files changed, 0 insertions, 0 deletions