]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm vdo: save the formatted metadata to disk
authorBruce Johnston <bjohnsto@redhat.com>
Tue, 24 Mar 2026 18:06:52 +0000 (14:06 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 26 Mar 2026 17:19:25 +0000 (18:19 +0100)
commitfc1d43826702d8c14845c187d3ea0743fdf8f223
tree78d3a8f9a436ade70fb45ad9a11cfed8399ac0b2
parentdefce4e039bc0100164964f79e896d05cb45dc76
dm vdo: save the formatted metadata to disk

Add vdo_save_super_block() and vdo_save_geometry_block() to perform
asynchronous writes of the super block and geometry block respectively.
Add vdo_clear_layout() to zero the UDS index's first block, the block
map partition, and the recovery journal partition.

These operations are driven by new phases in the pre-load state machine
(PRE_LOAD_PHASE_FORMAT_*), ensuring that disk writes happen during
pre-resume rather than during dmsetup create.

Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
Reviewed-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-vdo/dm-vdo-target.c
drivers/md/dm-vdo/vdo.c
drivers/md/dm-vdo/vdo.h