On Thu, 20 Jun 2024 15:24:05 +0800, Ye Bin wrote: > We encountered a problem that the file system could not be mounted in > the power-off scenario. The analysis of the file system mirror shows that > only part of the data is written to the last commit block. > The valid data of the commit block is concentrated in the first sector. > However, the data of the entire block is involved in the checksum calculation. > For different hardware, the minimum atomic unit may be different. > If the checksum of a committed block is incorrect, clear the data except the > 'commit_header' and then calculate the checksum. If the checkusm is correct, > it is considered that the block is partially committed, Then continue to replay > journal. > > [...] Applied, thanks! [1/1] jbd2: avoid mount failed when commit block is partial submitted commit: 0bab8db4152c4a2185a1367db09cc402bdc62d5e Best regards, -- Theodore Ts'o <tytso@xxxxxxx>