| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This headers were not resolving anything used for compiled .c files.
Remove unused util.c file.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define an 'activation_handler' that gets called automatically on
PV appearance/disappearance while processing the lvmetad_pv_found
and lvmetad_pv_gone functions that are supposed to update the
lvmetad state based on PV availability state. For now, the actual
support is for PV appearance only, leaving room for PV disappearance
support as well (which is a more complex problem to solve as this
needs to count with possible device stack).
Add a new activation change mode - CHANGE_AAY exposed as
'--activate ay/-aay' argument ('activate automatically').
Factor out the vgchange activation functionality for use in other
tools (like pvscan...).
|
|
|
|
| |
Fail to update lvmetad with proper log error message.
|
|
|
|
|
| |
Simplifies the code, properly detects too long socket paths,
drops unused parameter.
|
|
|
|
| |
Just some missing checks revealed by Coverity in recent code.
|
|
|
|
| |
Just small updates and remove <backtrace> after log_error.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Add 3rd daemon return state "unknown" for lookups that are carried out
successfully but don't find the item requested.
Avoid issuing error messages when it's expected that a device that's
being looked up in lvmetad might not be there.
|
| |
|
|
|
|
|
|
| |
Hold global lock in pvscan --lvmetad. (This might need refinement.)
Add PV name to "PV gone" messages.
Adjust some log message severities. (More changes needed.)
|
|
|
|
|
|
| |
Test pointers from allocation against NULL.
Error paths should be checked, some of them probably need
some extesions.
|
| |
|
| |
|
|
|
|
| |
lvmetad client code. Fixes RHBZ 798267.
|
|
|
|
|
|
| |
when reading VG text metadate and called from pvscan --lvmetad.
(Longer-term, that check needs moving outside of that code.)
|
|
|
|
| |
lvmetad is not being used.
|
| |
|
| |
|
|
|
|
| |
and avoid usage of failed buffer.
|
| |
|
|
|
|
| |
We don't want stack traces here, so mark as void.
|
|
|
|
|
| |
Currently we never fail with 64byte uuid buffer,
but just stay consitent with rest of the code and check for result.
|
|
|
|
| |
--lvmetad.
|
| |
|
|
|
|
|
| |
- Fix a couple of memory leaks in the lvmetad client code.
- Avoid an error in lvmetad_pv_gone when we aren't using lvmetad.
|
|
|
|
|
| |
Just a minor change to not give backtrace when log_error has been just
reported.
|
|
|
|
| |
Move declaration to the front of function to follow coding rules.
|
|
|
|
| |
baton is being modified, so needs to be cleared before each use.
|
|
|
|
|
|
|
| |
cleanup gcc warning,
use PRIu64
header cleanups
const pointer fixes.
|
|
|
|
| |
lvm.conf *and* lvmetad is running.
|
| |
|
| |
|
|
|
|
|
| |
it. Avoids the need for FMT_INSTANCE_PV and enables further simplifications. No
functional change, internal refactor only.
|
|
|
|
| |
lvmcache.c). No functional change.
|
|
|
|
|
| |
'len' calculation is unused ?
Unreachable code could be removed or moved upward ?
|
|
|
|
| |
the latter out of libdm.
|
|
|
|
| |
reset the 'precomitted' flag, just as we'd clear if we next did a 'commit'.
|
|
|
|
|
|
|
|
|
| |
Properly detect if the filters were refreshed properly.
(May needs few more fixes ??)
Filter refresh may fail because it may be out of free file descriptors
when clvmd gets overloaded.
|
|
|
|
| |
Since these function returns buffer size - use size_t type for them.
|
|
|
|
|
|
|
| |
leaving behind the LVM-specific parts of the code (convenience wrappers that
handle `struct device` and `struct cmd_context`, basically). A number of
functions have been renamed (in addition to getting a dm_ prefix) -- namely,
all of the config interface now has a dm_config_ prefix.
|
|
|
|
|
|
|
|
|
|
|
| |
Add config option to enable crc checking of VG structures.
Currently it's disabled by default.
For the internal test-suite this check it is enabled.
Note: In the case the internal error is detected, debug build with
compile option DEBUG_ENFORCE_POOL_LOCKING helps to catch the source
of the problem.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use debug pool locking functionality. So the command could check,
whether the memory in the pool has not been modified.
For lv_postoder() instead of unlocking and locking for every changed
struct status member do it once when entering and leaving function.
(mprotect would trap each such memory access).
Currently lv_postoder() does not modify other part of vg structure
then status flags of each LV with flags that are reverted back to
its original state after function exit.
|
|
|
|
|
|
|
|
|
| |
Extend vginfo cache with cached VG structure. So if the same metadata
are use, skip mda decoding in the case, the same data are in use.
This helps for operations like activation of all LVs in one VG,
where same data were decoded giving the same output result.
Patch adds 1-to-1 connection between volume_group and lvmcache_vginfo.
|
|
|
|
|
|
|
|
| |
Move the free_vg() to vg.c and replace free_vg with release_vg
and make the _free_vg internal.
Patch is needed for sharing VG in vginfo cache so the release_vg function name
is a better fit here.
|
| |
|