1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
lvm2/lib/metadata
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
..
2024-10-30 12:59:08 +01:00
2024-10-25 01:26:40 +02:00
2024-08-30 16:51:15 +02:00
2016-01-21 12:11:37 +01:00
2022-02-24 17:22:04 -06:00
2021-08-16 11:31:15 -05:00
2021-08-16 11:31:15 -05:00
2024-10-25 01:26:40 +02:00
2018-06-05 16:23:18 +02:00
2024-08-30 16:51:15 +02:00
2024-05-04 01:01:57 +02:00
2024-10-24 17:38:09 +02:00
2024-10-24 17:38:09 +02:00