Commit 984bf2c
dm integrity: clear the journal on suspend
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 <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>1 parent 5e5dab5 commit 984bf2c
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
2375 | 2376 | | |
2376 | 2377 | | |
2377 | 2378 | | |
| 2379 | + | |
| 2380 | + | |
2378 | 2381 | | |
2379 | 2382 | | |
2380 | 2383 | | |
| |||
3100 | 3103 | | |
3101 | 3104 | | |
3102 | 3105 | | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
3103 | 3114 | | |
3104 | 3115 | | |
3105 | 3116 | | |
| |||
3127 | 3138 | | |
3128 | 3139 | | |
3129 | 3140 | | |
| 3141 | + | |
| 3142 | + | |
3130 | 3143 | | |
3131 | 3144 | | |
3132 | 3145 | | |
| |||
0 commit comments