mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2025-02-17 09:28:28 +00:00
mkfs.f2fs: give random checkpoint version
This is to avoid wrong recovery during xfstests. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
b88767e606
commit
8399a29df9
@ -507,7 +507,7 @@ static int f2fs_write_check_point_pack(void)
|
||||
}
|
||||
|
||||
/* 1. cp page 1 of checkpoint pack 1 */
|
||||
set_cp(checkpoint_ver, 1);
|
||||
cp->checkpoint_ver = rand() | 0x1;
|
||||
set_cp(cur_node_segno[0], c.cur_seg[CURSEG_HOT_NODE]);
|
||||
set_cp(cur_node_segno[1], c.cur_seg[CURSEG_WARM_NODE]);
|
||||
set_cp(cur_node_segno[2], c.cur_seg[CURSEG_COLD_NODE]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user