1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Zdenek Kabelac db0f1b799f metadata: use radix_tree for find_lv_in_vg
Since there is a group of commands that need to access 'lv_list'
while still need to search for LV by its name, make the whole
struct lv_list a member of logical_volume structure.
This makes it easy to return also 'lv_list' this list this LV
within VG.
Also the patch should not use more memory, since we were allocating
lv_list for each LV anyway when linkin LV to VG.

Since find_lv_by_name() is now using radix_tree(),
use the same 'search for /' in LV in name for both
find_lv() & find_lv_in_vg().

TODO: Possibly refactor code and use only dm_list
instead of lv_list and dereference LV with container_of()
(thus saving pointer within struct logical_volume) - but
we use 'lv_list' currently in many places...
2024-10-31 17:55:31 +01:00
..
activate cleanup: typos in comments 2024-08-30 16:51:15 +02:00
cache cleanup: typos in comments 2024-08-30 16:51:15 +02:00
cache_segtype metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
commands config: introduce validate_metadata 2024-10-31 17:55:31 +01:00
config config: introduce validate_metadata 2024-10-31 17:55:31 +01:00
datastruct cleanup: eliminate unused assign 2021-03-11 00:18:01 +01:00
device cov: add stacktraces 2024-10-30 13:08:56 +01:00
display get_alloc_string: compare only enum 2024-10-30 12:57:34 +01:00
error error: try with modprobe 2024-05-27 15:16:26 +02:00
filters cleanup: typos in comments 2024-08-30 16:51:15 +02:00
format_text lv_manip: init major minor in alloc_lv 2024-10-28 20:07:37 +01:00
freeseg device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
integrity metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
label cleanup: typos in comments 2024-08-30 16:51:15 +02:00
locking cov: validate string with lock mode 2024-10-30 13:09:31 +01:00
log log: postpone some initialization 2024-10-24 17:38:09 +02:00
lvmpolld cleanup: typos in logging 2024-08-30 16:51:15 +02:00
metadata metadata: use radix_tree for find_lv_in_vg 2024-10-31 17:55:31 +01:00
mirror metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
misc validate_lvname: early exit 2024-10-31 17:55:31 +01:00
mm memlock: use value of 0 to disable memory locking 2024-09-27 13:42:45 +02:00
notify cleanup: fix typos 2024-09-27 13:42:45 +02:00
properties cleanup: typos in comments 2024-08-30 16:51:15 +02:00
raid metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
report reporting: prepare id string only for json output 2024-10-22 19:36:00 +02:00
snapshot metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
striped metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
thin metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
unknown metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
uuid cleanup: use _ for static var 2024-06-03 15:30:05 +02:00
vdo metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
writecache metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
zero const: _ops segtype handler 2024-05-04 01:01:57 +02:00
Makefile.in devices: factor common list functions 2022-11-07 11:38:46 -06:00