mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
clvmd: Initialise udev.
Since commit 2fc126b00d
, the library
code requires udev to be initialised for device scanning and
clvmd can fail to find VGs if devices/external_device_info_source
is set to "udev".
This commit is contained in:
parent
2304286f68
commit
509410bbbc
@ -1,8 +1,9 @@
|
||||
Version 2.02.141 -
|
||||
====================================
|
||||
Initialise udev in clvmd for use in device scanning. (2.02.116)
|
||||
Add seg_le_ranges report field for common format when displaying seg devices.
|
||||
Honour report/list_item_separator for seg_metadata_le_ranges report field.
|
||||
Don't mark hidden devs in -o devices,metadata_devices,seg_pe_ranges (2.02.140).
|
||||
Don't mark hidden devs in -o devices,metadata_devices,seg_pe_ranges.(2.02.140)
|
||||
Change LV sizes in seg_pe_ranges report field to match underlying devices.
|
||||
Add kernel_cache_settings report field for cache LV settings used in kernel.
|
||||
|
||||
|
@ -901,8 +901,12 @@ int init_clvm(struct dm_hash_table *excl_uuid)
|
||||
if (!get_initial_state(excl_uuid))
|
||||
log_error("Cannot load initial lock states.");
|
||||
|
||||
if (!udev_init_library_context())
|
||||
stack;
|
||||
|
||||
if (!(cmd = create_toolcontext(1, NULL, 0, 1, 1, 1))) {
|
||||
log_error("Failed to allocate command context");
|
||||
udev_fin_library_context();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -929,6 +933,7 @@ void destroy_lvm(void)
|
||||
if (cmd) {
|
||||
memlock_dec_daemon(cmd);
|
||||
destroy_toolcontext(cmd);
|
||||
udev_fin_library_context();
|
||||
cmd = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user