1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-20 21:49:28 +03:00

Compare commits

..

9 Commits

Author SHA1 Message Date
fadcb63a43 WHATS_NEW: update 2024-10-14 11:31:40 -05:00
ca74ba6f16 device_mapper: slight improvement of tok_match
Reduce amount of unnecessary instructions for some code paths.
2024-10-14 11:31:40 -05:00
7b6a800e4f import_vsn1: increate hash size
With larger amount of LV hashing buckets within VG,
until better structures for dynamic handling of LV elements will be used.
2024-10-14 11:31:40 -05:00
c22ed72e7d device_mapper: slight reorder for _get_token
For most common part check for '#' when it's known it's not a space.
And also when we checked for '\n' we dont need to check again isspace().
2024-10-14 11:31:40 -05:00
faf5fddbec device_mapper: nodes and values with strings
Avoid double pool allocation call by placing string
directly after the node/value structure end.

It would be likely better to not copy the string at all
and derefence it from the original string however that
is much larger rework - and also for unescaping we would
need to allocate anyway.
2024-10-14 11:31:40 -05:00
f4dc2b9aa3 crc: add newer zlib code
This code is faster when calculating crc32 checksum for larger
block areas. There is also SIMD variant present in the code,
however ATM the influence on performance of lvm2 is not that big..
2024-10-14 11:31:40 -05:00
6de4590cf9 crc: move static table
Move static table upward in the code so it can be shared with
another 'crc' implementation.
2024-10-14 11:31:40 -05:00
8bfbb623d7 config: set vg_copy_internal to binary for testing 2024-10-14 11:31:40 -05:00
77305127e4 vg: use vg_copy_struct in second location 2024-10-14 11:31:40 -05:00

View File

@ -5175,9 +5175,11 @@ struct volume_group *vg_read(struct cmd_context *cmd, const char *vg_name, const
goto out;
}
if (!(vg->vg_committed = import_vg_from_config_tree(cmd, vg->fid, vg->committed_cft))) {
log_error("Failed to import written VG.");
goto out;
if (!(vg->vg_committed = vg_copy_struct(vg))) {
if (!(vg->vg_committed = import_vg_from_config_tree(cmd, vg->fid, vg->committed_cft))) {
log_error("Failed to import written VG.");
goto out;
}
}
} else {
if (vg->vg_precommitted)