]> asedeno.scripts.mit.edu Git - linux.git/commit
udf: Fix free space reporting for metadata and virtual partitions
authorJan Kara <jack@suse.cz>
Tue, 7 Jan 2020 15:36:49 +0000 (16:36 +0100)
committerJan Kara <jack@suse.cz>
Thu, 9 Jan 2020 17:38:18 +0000 (18:38 +0100)
commita4a8b99ec819ca60b49dc582a4287ef03411f117
tree0afc256149d51dac0539011effa3148deb888694
parent614644676394951e73194ea96b3f026c1adf5443
udf: Fix free space reporting for metadata and virtual partitions

Free space on filesystems with metadata or virtual partition maps
currently gets misreported. This is because these partitions are just
remapped onto underlying real partitions from which keep track of free
blocks. Take this remapping into account when counting free blocks as
well.

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Reported-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c