[Devel] [PATCH hci-8.1 v7 10/10] dm-ploop: truncate unused tail of top delta on suspend

Konstantin Khorenko khorenko at virtuozzo.com
Tue Nov 17 21:23:02 MSK 2026


I won't apply this version, please send v8 with the changes below.

On Tue, 17 Nov 2026 18:17:43 +0100, Alexander Ivanov wrote:
> Also skip it if the file size differs from top->file_size. Then another
> ploop on the same images writes to the top delta (e.g. a live one left
> by libploop error path), and on-disk BAT may miss clusters it has just
> allocated, so the truncation would cut its data.

Item 7 of the cover letter reply: another ploop that preallocated
before our last reload does not change the size, so the check does
not see it; say the check is best effort. Item 4: the "only place to
change file_size" comment.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list