]> git.ipfire.org Git - thirdparty/linux.git/commit
dm vdo: add geometry block initialization to encodings.c
authorBruce Johnston <bjohnsto@redhat.com>
Tue, 24 Mar 2026 18:06:44 +0000 (14:06 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 26 Mar 2026 17:17:31 +0000 (18:17 +0100)
commit4b4a8d9560d987f4df17b7248ab1c8146138d0f5
tree0534165dbf424fd22137946d2abfe7d6e1101d61
parent0be6c2b1c18f1586f0ec68463b85a8d56e4623f5
dm vdo: add geometry block initialization to encodings.c

Add vdo_initialize_volume_geometry() to populate the geometry block,
computing the space required for the two main regions on disk.

Add uds_compute_index_size() to calculate the space required for the
UDS indexer from the UDS configuration.

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/encodings.c
drivers/md/dm-vdo/encodings.h
drivers/md/dm-vdo/indexer/index-layout.c
drivers/md/dm-vdo/indexer/indexer.h