1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-12-30 08:32:45 +03:00

Compare commits

..

8 Commits

Author SHA1 Message Date
Zdenek Kabelac
ce9c5f2f7e WHATS_NEW: update 2024-10-10 08:53:07 -05:00
Zdenek Kabelac
eea78613ef device_mapper: slight improvement of tok_match
Reduce amount of unnecessary instructions for some code paths.
2024-10-10 08:53:07 -05:00
Zdenek Kabelac
00a8946e46 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-10 08:53:07 -05:00
Zdenek Kabelac
53d5e2e602 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-10 08:53:07 -05:00
Zdenek Kabelac
ce970403d6 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-10 08:53:07 -05:00
Zdenek Kabelac
4e623daf8e 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-10 08:53:07 -05:00
Zdenek Kabelac
e03bdcfbc2 crc: move static table
Move static table upward in the code so it can be shared with
another 'crc' implementation.
2024-10-10 08:53:06 -05:00
David Teigland
fa12a2398e config: set vg_copy_internal to binary for testing 2024-10-10 08:50:52 -05:00

View File

@@ -5175,11 +5175,9 @@ struct volume_group *vg_read(struct cmd_context *cmd, const char *vg_name, const
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;
}
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)