| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
A config setting can restore the old string.
|
|
|
|
|
| |
Remove misplaced '.' after '?'
Drop extra 'stack;' after log_debug().
|
| |
|
|
|
|
|
|
|
| |
Fixing some reported issued found by:
http://catb.org/~esr/doclifter/bugs.html
Reported-by: Eric S. Raymond <esr at thyrsus.com>
|
| |
|
|
|
|
|
| |
Coverity notice this cannot be NULL: cur = &dms->regions[*cur_r]
so avoid NULL checking and simplify form.
|
| |
|
|
|
|
| |
including changes not recorded for the previous release.
|
|
|
|
|
| |
Update test for new [unknown] VG name from
commit 250b9153.
|
|
|
|
| |
Rather than displaying a blank field for VG name.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Showing 'u' in the pv_attr reporting field is mostly unnecessary because
most PVs are allocatable, and being allocatable implies it is (u)sed,
and this is already obvious from other fields in the default 'pvs'
output like the VG name.
So move the new (u)sed pv_attr from character position 4 to 1, and only
show it in those rare cases when the PV is not (a)llocatable or the
relevant metadata is missing.
(Scripts should not be using pv_attr, but rather pv_allocatable,
pv_exported, pv_missing, pv_in_use etc.)
|
|
|
|
|
| |
Skip with older driver version.
Update address.
|
|
|
|
|
|
| |
Helping with understanding we will not try to deref NULL pointer,
as if the sizes are initialized to NULL it also means 'mem' would
be NULL, but thats too hard to model so make it obvious.
|
|
|
|
| |
New daemons were missing in generated lcov output.
|
|
|
|
|
|
|
| |
Correct name is lvm2-lvmdbusd.service not lvmdbusd.service.
This makes the bus-activation (auto-activation) work.
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Make the data_alignment variable 64 bits so it
can hold the invalid command line arg used in
pvreate-usage.sh pvcreate --dataalignment 1e.
On 32 bit arches, the smaller variable wouldn't
hold the invalid value so the error would not
trigger as expected by the test.
|
|
|
|
| |
Signed-off-by: Tony Asleson <tasleson@redhat.com>
|
|
|
|
|
|
|
|
|
| |
This simple tool calls the Manager.Refresh method on the dbus service
to check and see if the dbus service has the most up to date state.
This is to be used for testing to ensure that event driven updates are
working as planned.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
|
|
|
|
|
|
| |
This will allow us to re-use in other client programs for testing.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
When we use udev or have lvm call back into the dbus service when a
change occurs, even if that change originated from the dbus service
we end up refreshing the state of the system twice which is not
needed or wanted. This change handles this case by removing any
pending refreshes in the worker queue if the state of the system
was just updated.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
|
|
|
|
| |
After a pv_write() failure, the PV wasn't being skipped.
|
| |
|
|
|
|
| |
dmfree tests for NULL
|
|
|
|
| |
Last update missed to indent params.
|
| |
|
|
|
|
| |
Set variable for repair testing.
|
| |
|
|
|
|
|
|
| |
Easier code for handler init.
Drop release of pool mem - not needed, as command pool get dropped just
later.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since we want to read env LVM_VG_NAME vg names,
we cannot just check LV names which do contain '/'.
So before the patch commands like:
> lvconvert --repair vg
Before:
Please provide a valid volume group name
After:
Path required for Logical Volume "vg".
Please provide a valid volume group name
> LVM_VG_NAME=vg lvconvert --repair vg
Before:
Please provide a valid volume group name
After:
Can't find LV vg in VG vg
|
|
|
|
|
|
|
|
| |
Commit ca878a3426197b629c76e98cfc049948da470cd7 introduced an issue
that zero sized extesion suddenly started to be accepted and
missed to return error.
Properly check invalid input values for sizes.
|
|
|
|
|
|
|
| |
Change some inconsistent messages and adopt
the new wording "PV %s is used by" in place
of "PV %s is marked as belonging to"
or "PV %s belongs to".
|
|
|
|
|
| |
Commit 4de6caf5 ("redefine pvcreate structs") left
out setting the "idp" pointer to the "id" arg.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add tests for the "dmstats report" command:
* report
* report --count
* report --histogram
So far the tests just check the command runs as expected when a
correctly configured stats region exists: validation of output
can be added later.
|
|
|
|
|
|
|
|
|
|
| |
Add tests for the "dmstats create" command:
* simple whole-device region
* region using --start/--len options
* region using --segments option
* region with precise timestamps (--precise)
* region with histogram bounds (--bounds)
|
| |
|
|
|
|
|
|
| |
The install target already depends on .tests-stamp - since this
in turn depends on lib/version-expected there is no need to have
this as a dependency of install.
|
|
|
|
| |
Add a template for testing 'dmstats create' operations.
|
|
|
|
|
| |
Add a function to test whether the running device-mapper driver
version is at least equal to some given version.
|
|
|
|
|
|
|
| |
Add initial dmstats tests to 000-basic.sh. These tests ensure that
the dmsetup binary is built and linked correctly when called as
'dmstats' and that the version of the binary matches the expected
library version used for the build.
|
|
|
|
|
| |
Create a symbolic link in test/lib for 'dmstats', pointing to the
dmsetup binary in the tools/ build directory.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
"pvcreate_each_params" was a temporary name used
to transition from the old "pvcreate_params".
Remove the old pvcreate_params struct and rename the
new pvcreate_each_params struct to pvcreate_params.
Rename various pvcreate_each_params terms to simply
pvcreate_params.
|
|
|
|
|
|
| |
New pv_create_args struct contains all the specific
parameters for creating a PV, independent of the
command.
|
| |
|
|
|
|
|
| |
Use the new pvcreate_each_device() function from
toollib.
|
|
|
|
|
| |
which has been replaced by an equivalent pvcreate_each params
function.
|