summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* lvmcache: prefer duplicate device in use by lvmdev-dct-lvm-using-devDavid Teigland2016-03-013-2/+123
|
* WHATS_NEW: [unknown] replaces 'unknown device'David Teigland2016-03-011-0/+1
|
* pvs: replace 'unknown device' with [unknown]David Teigland2016-03-016-1/+23
| | | | A config setting can restore the old string.
* cleanup: missplaced .Zdenek Kabelac2016-03-011-2/+3
| | | | | Remove misplaced '.' after '?' Drop extra 'stack;' after log_debug().
* makefile: handle dm-version-expectedZdenek Kabelac2016-03-011-2/+5
|
* man: fix mising bracesZdenek Kabelac2016-03-012-19/+24
| | | | | | | Fixing some reported issued found by: http://catb.org/~esr/doclifter/bugs.html Reported-by: Eric S. Raymond <esr at thyrsus.com>
* cleanup: indent and dotsZdenek Kabelac2016-03-011-56/+51
|
* coverity: eliminate DEADCODEZdenek Kabelac2016-03-011-4/+2
| | | | | Coverity notice this cannot be NULL: cur = &dms->regions[*cur_r] so avoid NULL checking and simplify form.
* coverity: missing error pathZdenek Kabelac2016-03-012-0/+2
|
* update WHATS_NEWDavid Teigland2016-02-291-0/+4
| | | | including changes not recorded for the previous release.
* tests: check [unknown] in lvmetad-pvscan-cacheDavid Teigland2016-02-291-1/+1
| | | | | Update test for new [unknown] VG name from commit 250b9153.
* pvs: display VG name [unknown] for used PV without metadataDavid Teigland2016-02-291-5/+20
| | | | Rather than displaying a blank field for VG name.
* post-releaseAlasdair G Kergon2016-02-264-2/+8
|
* pre-releasev2_02_144Alasdair G Kergon2016-02-264-8/+8
|
* report: Shift (u)sed pv_attr under (a)llocatable.Alasdair G Kergon2016-02-264-9/+12
| | | | | | | | | | | | | | 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.)
* tests: skip on older versionZdenek Kabelac2016-02-262-6/+7
| | | | | Skip with older driver version. Update address.
* coverity: helping coverity with NULL pointerZdenek Kabelac2016-02-261-2/+2
| | | | | | 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.
* makefiles: add more dirs for lcov outputZdenek Kabelac2016-02-262-2/+6
| | | | New daemons were missing in generated lcov output.
* dbus: fix the systemd service providing the DBus serviceVratislav Podzimek2016-02-262-1/+2
| | | | | | | 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>
* pvcreate: fix data alignment error checkDavid Teigland2016-02-251-2/+2
| | | | | | | | | | 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.
* lvmdbusd: Do only 1 refresh for Vg.Change()Tony Asleson2016-02-251-4/+1
| | | | Signed-off-by: Tony Asleson <tasleson@redhat.com>
* lvmdbusd testing: Add validatestate.py utilityTony Asleson2016-02-251-0/+32
| | | | | | | | | 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>
* lvmdbustest.py: Move helper code to testlib.pyTony Asleson2016-02-252-178/+195
| | | | | | This will allow us to re-use in other client programs for testing. Signed-off-by: Tony Asleson <tasleson@redhat.com>
* lvmdbusd: Reduce unnecessary state refreshesTony Asleson2016-02-252-9/+37
| | | | | | | | | | | 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>
* pvcreate: fix error from pv_writeDavid Teigland2016-02-251-0/+1
| | | | After a pv_write() failure, the PV wasn't being skipped.
* tests: lvresize with zero argZdenek Kabelac2016-02-251-1/+3
|
* cleanup: drop unneeded testZdenek Kabelac2016-02-251-3/+1
| | | | dmfree tests for NULL
* cleanup: indentZdenek Kabelac2016-02-251-4/+4
| | | | Last update missed to indent params.
* cleanup: poll better check for internal errorsZdenek Kabelac2016-02-253-65/+49
|
* lvconvert: use lp->repairZdenek Kabelac2016-02-251-21/+22
| | | | Set variable for repair testing.
* lvconvert: use more display_lvnameZdenek Kabelac2016-02-251-21/+27
|
* lvconvert: simplify handler processingZdenek Kabelac2016-02-251-8/+6
| | | | | | Easier code for handler init. Drop release of pool mem - not needed, as command pool get dropped just later.
* lvconvert: fix vg parameterZdenek Kabelac2016-02-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* lvresize: fix regression with zero size argZdenek Kabelac2016-02-252-0/+11
| | | | | | | | 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.
* Use a common message for a used PVDavid Teigland2016-02-256-18/+15
| | | | | | | 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".
* pvcreate: fix setting uuid argDavid Teigland2016-02-251-0/+1
| | | | | Commit 4de6caf5 ("redefine pvcreate structs") left out setting the "idp" pointer to the "id" arg.
* tests: add simple dmstats report testsdev-bmr-dmstats-testsBryn M. Reeves2016-02-251-0/+24
| | | | | | | | | | | | 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.
* tests: add dmstats create testsBryn M. Reeves2016-02-251-2/+9
| | | | | | | | | | 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)
* tests: make lib/expected-version-dm a dependency of .tests-stampBryn M. Reeves2016-02-251-1/+1
|
* tests: install does not depend on lib/version-expectedBryn M. Reeves2016-02-251-1/+1
| | | | | | 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.
* tests: add template tests/shell/dmstats-create.shBryn M. Reeves2016-02-251-0/+20
| | | | Add a template for testing 'dmstats create' operations.
* tests: add driver_at_least() to aux.shBryn M. Reeves2016-02-251-0/+15
| | | | | Add a function to test whether the running device-mapper driver version is at least equal to some given version.
* tests: add basic dmstats testsBryn M. Reeves2016-02-252-0/+8
| | | | | | | 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.
* dmstats: create dmstats symlink in test/libBryn M. Reeves2016-02-251-0/+1
| | | | | Create a symbolic link in test/lib for 'dmstats', pointing to the dmsetup binary in the tools/ build directory.
* lvmcache: fix missing free of vginfo->system_id causing mem leakPeter Rajnoha2016-02-251-0/+3
|
* replace pvcreate_params with pvcreate_each_paramsDavid Teigland2016-02-258-99/+64
| | | | | | | | | | "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.
* redefine pvcreate structsDavid Teigland2016-02-2513-250/+168
| | | | | | New pv_create_args struct contains all the specific parameters for creating a PV, independent of the command.
* metadata: add fixme about code used only by liblvmDavid Teigland2016-02-251-0/+18
|
* pvremove: use common toollib processing codeDavid Teigland2016-02-254-58/+276
| | | | | Use the new pvcreate_each_device() function from toollib.
* toollib: remove unsed pvcreate params functionDavid Teigland2016-02-252-117/+0
| | | | | which has been replaced by an equivalent pvcreate_each params function.