summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* man lvmautoactivation: replace systemctl with journalctlrhel-8.6.0David Teigland2021-12-201-1/+1
|
* lvcreate: include recent optionsDavid Teigland2021-12-201-0/+4
| | | | | The permitted option list in lvcreate has not kept up with command-lines.in.
* man: add section about static autoactivationDavid Teigland2021-12-201-7/+41
|
* device_id: handle wwid with spaces or control charactersDavid Teigland2021-12-201-4/+6
| | | | | non-standard wwid can be reported from sysfs with spaces/etc. replace with "_"
* print warning about unrecognized journal option valueDavid Teigland2021-12-201-0/+1
|
* devices file: don't write in test modeDavid Teigland2021-12-201-0/+3
|
* tests devicesfile-devname.sh drop mdadm chunkDavid Teigland2021-12-201-1/+1
|
* spec: Add lvmautoactivation man pageMarian Csontos2021-12-201-0/+1
|
* man: lvmautoactivationDavid Teigland2021-12-204-37/+309
| | | | new topical man page describing autoactivation
* fix spelling of pruningDavid Teigland2021-12-201-1/+1
|
* display: ignore --reportformatDavid Teigland2021-12-202-6/+21
| | | | | Using the option would do nothing useful but would print extraneous braces.
* tests pv-ext-flags: work with devices fileDavid Teigland2021-12-201-0/+4
|
* device_id: searched_devnames improvementsDavid Teigland2021-12-202-2/+36
| | | | | | | | | | 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.
* device_id: fix search on filtered deviceDavid Teigland2021-12-202-2/+83
| | | | | | | | 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.
* device_id: match different dm device namesDavid Teigland2021-12-201-12/+69
| | | | | If a devices file entry for a dm device is using the devname for the device id, then recognize different dm names as matching.
* filter-sysfs: support old kernels without sys/dev/blockDavid Teigland2021-12-201-0/+28
| | | | rhel5 for example doesn't have /sys/dev/block
* lvmdevices: increase open file limitDavid Teigland2021-12-203-2/+7
|
* filter-sysfs: skip when device id is setDavid Teigland2021-12-202-288/+32
| | | | | | | | | | | | | | | | | | | | | 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.
* hints: remove the cmd hints listDavid Teigland2021-12-204-10/+2
| | | | | which is no longer used after commit "toollib: remove all devices list from process_each_pv"
* vgimportdevices: skip lvmlockd lockingDavid Teigland2021-12-201-0/+11
| | | | | | | | 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.
* pvscan: fix messages from coverity changesDavid Teigland2021-12-201-2/+2
|
* Revert "pvscan: only add device args to dev cache"David Teigland2021-12-206-246/+52
| | | | This reverts commit 33e47182f773c1a902b533580b63a803906de55d.
* Revert "new udev autoactivation"David Teigland2021-12-205-492/+4
| | | | This reverts commit 67722b312390cdab29c076c912e14bd739c5c0f6.
* pre-releasev2_03_14Marian Csontos2021-10-204-6/+6
|
* WHATS_NEW: updateMarian Csontos2021-10-201-2/+2
|
* pvscan: only add device args to dev cacheDavid Teigland2021-10-196-52/+246
| | | | | Optimize the common pvscan --cache command by only adding the necessary devs to dev-cache.
* dev-cache: enhance dir scan also for non-udev buildZdenek Kabelac2021-10-181-1/+9
|
* dev-cache: better detection of filesystemZdenek Kabelac2021-10-181-9/+13
| | | | | 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.
* configure: updateZdenek Kabelac2021-10-182-98/+21
|
* configure.ac: remove unused partZdenek Kabelac2021-10-181-23/+6
| | | | | | | 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.
* cleanup: use const char bufferZdenek Kabelac2021-10-181-1/+1
|
* dev-cache: skip different filesystems on dir scanZdenek Kabelac2021-10-182-0/+10
| | | | | | | | 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.
* cov: check device_ids_write return codeZdenek Kabelac2021-10-151-2/+3
| | | | | At least 'stack' failure code path as the function device_id_update_vg_uuid() is void.
* cov: ensure id is always initializeZdenek Kabelac2021-10-151-2/+4
| | | | | Always resed sd_id128_t id and report warning in case sd_id128_get_machine_app_specific() does not exit with 0.
* cov: check pointer before dereferencingZdenek Kabelac2021-10-151-2/+2
| | | | Check pv2 is non-null before trying to deref its tags.
* cov: do not drop already known error stateZdenek Kabelac2021-10-151-3/+1
| | | | | Do not try to 'discover' another error state, when ENOMEM is already detected.
* cov: ignore close resultZdenek Kabelac2021-10-151-1/+1
|
* cov: validate subcommand existanceZdenek Kabelac2021-10-151-2/+2
| | | | | Before dereference of subcommand pointer, check it's not NULL as coverity believes there exists theoretical path for this...
* cov: avoid using NULL infoZdenek Kabelac2021-10-151-3/+7
| | | | Check lvmcache info exists before calling lvmcache_del_save_bad_mda().
* configure: fix use of withvalZdenek Kabelac2021-10-152-3/+2
| | | | Newly added option --with-default-use-devices-file needs to use withval.
* configure: updateZdenek Kabelac2021-10-151-98/+63
|
* configure.ac: enhance systemd testingZdenek Kabelac2021-10-151-26/+31
| | | | | | | | | | | 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.
* makefile: enhance run-unit-test targetZdenek Kabelac2021-10-151-1/+6
| | | | | Use TMPDIR for executing test and also ensure all libraries linked to the test are from builddir.
* unit-test: better check for O_DIRECTZdenek Kabelac2021-10-151-14/+22
| | | | | Instead of guessing tmpfs usage, just directly try if we could reopen file with O_DIRECT on the used filesystem.
* configure: bash var typoZdenek Kabelac2021-10-152-2/+2
|
* gcc: always initialize vg_completeZdenek Kabelac2021-10-151-1/+1
|
* gcc: archive reoder struct varsZdenek Kabelac2021-10-151-2/+1
| | | | | Easier for automatic struct initialization = { 0 } without warns from older gcc.
* configure: missed bracesZdenek Kabelac2021-10-152-6/+9
| | | | | Missed [] around AS_IF internals, Also missed to call pkg_config_init prior PKG_CHECK_MODULES().
* debug: reduce some debugging noiseZdenek Kabelac2021-10-146-7/+14
| | | | | | | | | | | 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.
* make: generateZdenek Kabelac2021-10-142-8/+4
|