Mikulas Patocka 64b7f9a7dd dm integrity: clear the journal on suspend
[ Upstream commit 984bf2cc531e778e49298fdf6730e0396166aa21 ]

There was a problem that a user burned a dm-integrity image on CDROM
and could not activate it because it had a non-empty journal.

Fix this problem by flushing the journal (done by the previous commit)
and clearing the journal (done by this commit). Once the journal is
cleared, dm-integrity won't attempt to replay it on the next
activation.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-02 17:40:05 +01:00
..
2019-11-12 19:12:07 -07:00
2021-01-27 11:54:57 +01:00
2022-08-31 17:15:23 +02:00
2022-01-16 09:14:21 +01:00
2022-10-26 13:25:35 +02:00
2022-08-21 15:15:25 +02:00