| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
The permitted option list in lvcreate has not kept
up with command-lines.in.
|
| |
|
|
|
|
|
| |
non-standard wwid can be reported from sysfs with spaces/etc.
replace with "_"
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
new topical man page describing autoactivation
|
| |
|
|
|
|
|
| |
Using the option would do nothing useful but would
print extraneous braces.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Remove the searched_devnames file in a couple more places:
. When hints need refreshing it's possible that a missing
devices file entry could be found by searching devices
again.
. When a devices file entry devname is first found to be
incorrect, a new search for missing entries may be
useful.
|
|
|
|
|
|
|
|
| |
When devnames are used as device ids and devnames change,
then new devices need to be located for the PVs. If the old
devname is now used by a filtered device, this was preventing
the code from searching for the new device, so the PV was
reported as missing.
|
|
|
|
|
| |
If a devices file entry for a dm device is using the devname
for the device id, then recognize different dm names as matching.
|
|
|
|
| |
rhel5 for example doesn't have /sys/dev/block
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a device id is set for a device, using an idtype other
than devname, it means that sysfs has been used with the device
to match the device id. So, checking for a sysfs entry for the
device in filter-sysfs is redundant. For any other cases not
covered by this (e.g. devname ids), have filter-sysfs simply
stat /sys/dev/block/major:minor to test if the device exists
in sysfs.
The extensive processing done by filter-sysfs init is removed.
It was taking an immense amount of time with many devices, e.g.
. 1024 PVs in 520 VGs
. 520 concurrent vgchange -ay <vgname> commands
. vgchange scans only PVs in the named VG (based on pvs_online
files from a pending patch)
A large number of the vgchange commands were taking over 1 min,
and nearly half of that time was used by filter-sysfs init.
With this patch, the vgchange commands take about half the time.
|
|
|
|
|
| |
which is no longer used after commit
"toollib: remove all devices list from process_each_pv"
|
|
|
|
|
|
|
|
| |
Help bootstrapping existing shared vgs into the devices file.
Reading the vg in vgimportdevices would require locking to be
started, but vgchange lockstart won't see the vg if it's not
in the devices file. The lvmlockd locks are not protecting
vg modifications so skipping them here won't be a problem.
|
| |
|
|
|
|
| |
This reverts commit 33e47182f773c1a902b533580b63a803906de55d.
|
|
|
|
| |
This reverts commit 67722b312390cdab29c076c912e14bd739c5c0f6.
|
| |
|
| |
|
|
|
|
|
| |
Optimize the common pvscan --cache command by only adding
the necessary devs to dev-cache.
|
| |
|
|
|
|
|
| |
It appear on some systems the first found dev might not be actually for
the filesytem - so use a better way through _cache.st_dev.
|
| |
|
|
|
|
|
|
|
| |
As we are not using 'enable-compat' for anything, remove this section.
Also remove duplicated check for blkid.
Move setting of some AC_ARG_ENABLE defaults into the macro so it's always
defined.
|
| |
|
|
|
|
|
|
|
|
| |
When scanning configured /dev dir, avoid entring
directories with different filesystem.
This minimizes risk we will block on i.e. entring
directory with mount point.
|
|
|
|
|
| |
At least 'stack' failure code path as the
function device_id_update_vg_uuid() is void.
|
|
|
|
|
| |
Always resed sd_id128_t id and report warning in case
sd_id128_get_machine_app_specific() does not exit with 0.
|
|
|
|
| |
Check pv2 is non-null before trying to deref its tags.
|
|
|
|
|
| |
Do not try to 'discover' another error state, when ENOMEM
is already detected.
|
| |
|
|
|
|
|
| |
Before dereference of subcommand pointer, check it's not NULL
as coverity believes there exists theoretical path for this...
|
|
|
|
| |
Check lvmcache info exists before calling lvmcache_del_save_bad_mda().
|
|
|
|
| |
Newly added option --with-default-use-devices-file needs to use withval.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Enhance logic for checking supported systemd version,
while doing only a single check for systemd package.
For version checking use PKG_CHECK_EXISTS() macro.
Also use one pkg check for blkid.
Avoid checking version for thin/cache_check when tools are not present
on system.
|
|
|
|
|
| |
Use TMPDIR for executing test and also ensure
all libraries linked to the test are from builddir.
|
|
|
|
|
| |
Instead of guessing tmpfs usage, just directly try if we could
reopen file with O_DIRECT on the used filesystem.
|
| |
|
| |
|
|
|
|
|
| |
Easier for automatic struct initialization = { 0 } without warns
from older gcc.
|
|
|
|
|
| |
Missed [] around AS_IF internals,
Also missed to call pkg_config_init prior PKG_CHECK_MODULES().
|
|
|
|
|
|
|
|
|
|
|
| |
Resolve event_activation configure option just once.
Do not print debug_devs about 'bad' filtering, when
actually filter already printed reason for skipping
Do not trace more then once about backup being disabled.
No debug when unlinked file does not exists in pvscan.
|
| |
|