mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
pvscan: don't use udev for external device info
pvscan is used to populate udev info, so it can't expect to use that udev info.
This commit is contained in:
parent
bef1363c00
commit
c7a5b5cca0
@ -1710,13 +1710,11 @@ int pvscan_cache_cmd(struct cmd_context *cmd, int argc, char **argv)
|
||||
}
|
||||
|
||||
/*
|
||||
* If obtain_device_list_from_udev was set to 1, force it to 0.
|
||||
* Don't ask udev for info since pvscan is running from udev.
|
||||
* If a pvscan attempts to get dev info from udev, udev can
|
||||
* repeatedly return errors about the dev not being initialized
|
||||
* which will stall the pvscan.
|
||||
* Do not use udev for device listing or device info because pvscan
|
||||
* is used to populate udev info.
|
||||
*/
|
||||
init_obtain_device_list_from_udev(0);
|
||||
init_external_device_info_source(DEV_EXT_NONE);
|
||||
|
||||
if (arg_is_set(cmd, major_ARG) + arg_is_set(cmd, minor_ARG))
|
||||
devno_args = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user