mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +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.
|
* Do not use udev for device listing or device info because pvscan
|
||||||
* Don't ask udev for info since pvscan is running from udev.
|
* is used to populate udev info.
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
init_obtain_device_list_from_udev(0);
|
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))
|
if (arg_is_set(cmd, major_ARG) + arg_is_set(cmd, minor_ARG))
|
||||||
devno_args = 1;
|
devno_args = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user