udf: finalize integrity descriptor before writeback
authorSteve Magnani <steve.magnani@digidescorp.com>
Fri, 8 Feb 2019 17:34:55 +0000 (11:34 -0600)
committerJan Kara <jack@suse.cz>
Mon, 11 Feb 2019 08:26:02 +0000 (09:26 +0100)
commite8b4274735e416621cfb28c2802b4ad52da35d0f
treeb1569ebbc437c6f29fbc41892863c15b53fc6c93
parentebbd5e99f60aca79b6c723c17a4ad1a8f26fcd98
udf: finalize integrity descriptor before writeback

Make sure the CRC and tag checksum of the Logical Volume Integrity
Descriptor are valid before the structure is written out to disk.
Otherwise, unless the filesystem is unmounted gracefully, the on-disk
LVID will be invalid - which is unnecessary filesystem damage.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c