On 2026/5/19 14:53, Zhiguo Niu wrote:
With ztailpacking enabled, the current process assumes that a compacted_4b_end
always exists in the compacted pack. However, in some specific files, the
compacted pack may not have a compacted_4b_end. This leads to an incorrect
modification of the last compacted_2B entry, resulting in incorrect modification
of its clusterofs. In subsequent fsck operations, incorrect parameters will
affect the decompression of the penultimate pcluster.

This patch also handle the last compacted_2B pack correctly.

Fixes: a7c1f0575ef8 ("erofs-utils: lib: refine tailpcluster compression 
approach")

Signed-off-by: Zhiguo Niu <[email protected]>
Suggested-by: Gao Xiang <[email protected]>

Applied to -experiemntal with some very minor updates..

Thanks,
Gao Xiang

Reply via email to