| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Going forward, we would like to allow users to specify the total
number of metadatacopies in a VG rather than on a per-PV basis. In
order to facilitate that, introduce --pvmetadatacopes to replace
--metadatacopies everywhere. We still allow --metadatacopies for
pv commands, but require --pvmetadatacopies for vg commands.
Eventually we will introduce --vgmetadatacopies. Once we do that,
we should either deprecate --metadatacopies or make it a synonym based
on the command (pvmetadatacopies for pv commands, and vgmetadatacopies
for vg commands). The latter option would likely just require a simple
'strncpy' check against cmd->command->name to qualify the merge_synonym
call.
Update nightly tests to cover the pvmetadatacopies synonym.
Note that this patch is the result of an eariler review comment for
the implicit pvcreate patches. Should apply cleanly on top of the
implicit pvcreate patches (I applied after patch 10/10 in that series).
NOTE: This patch will require --pvmetadatacopies for vgconvert as
--metadatacopies is no longer accepted.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Going forward, we would like to allow users to specify the total
number of metadatacopies in a VG rather than on a per-PV basis. In
order to facilitate that, introduce --pvmetadatacopes to replace
--metadatacopies everywhere. We still allow --metadatacopies for
pv commands, but require --pvmetadatacopies for vg commands.
Eventually we will introduce --vgmetadatacopies. Once we do that,
we should either deprecate --metadatacopies or make it a synonym based
on the command (pvmetadatacopies for pv commands, and vgmetadatacopies
for vg commands). The latter option would likely just require a simple
'strncpy' check against cmd->command->name to qualify the merge_synonym
call.
Update nightly tests to cover the pvmetadatacopies synonym.
Note that this patch is the result of an eariler review comment for
the implicit pvcreate patches. Should apply cleanly on top of the
implicit pvcreate patches (I applied after patch 10/10 in that series).
NOTE: This patch will require --pvmetadatacopies for vgconvert as
--metadatacopies is no longer accepted.
|
|
|
|
| |
Update tests and WHATS_NEW for implicit pvcreate support.
|
| |
|
|
|
|
|
|
|
|
|
| |
Now uppercase letters imply Si units, so use lowercase everywhere.
We could stay with uppercase, but then we'd have to deal with rounding, etc.
Also, some output / error messages change slightly (instead of "GB" we're
now saying "GiB").
One test enhancement might be to add some new tests for the units changes
but for now let's just get the test back to passing.
|
| |
|
|
|
|
|
| |
This patch fixes a build with options similar to the following:
./configure --enable-debug --enable-applib --enable-dmeventd --enable-cmdlib
|
| |
|
|
|
|
| |
We now must commit to disk after lvm_vg_remove().
|
| |
|
|
|
|
|
| |
More tests to come but for now just call into vgtest.
Fix warning in vgtest.c
|
| |
|
|
|
|
|
|
| |
The test/api directory TARGET line will be reserved for non-interactive
unit tests. Building the interactive test can still be done with "make test"
from the test/api dir.
|
|
|
|
|
| |
More tests to come but for now just call into vgtest.
Fix warning in vgtest.c
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This patch update lv_t handle to be consistent with lvm_t - define as a pointer
to internal struct logical_volume.
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
|
|
|
| |
This patch update vg_t handle to be consistent with lvm_t - define as a pointer
to internal struct volume_group.
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Also fix a couple bugs.
|
|
|
|
|
| |
Added topology testing via new test/t-pvcreate-operation-md.sh
- requires mdadm and rawhide kernel for full test coverage
|
|
|
|
| |
(RHBZ 463272)
|
|
|
|
| |
previously).
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Adding the ability to get the seqno is important for an application to
determine if something has changed in a VG. Otherwise, the only way to
know is to open the VG with write permission and hold the handle.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PV PV UUID VG
/dev/loop1 A95EvV-iqmb-ZFuJ-u8MV-Npwn-wlc2-Ul1Mnn vg1
/dev/loop0 R16FDG-OmoS-HNGt-LSZY-OAlC-7qeU-t2gztp vg1
lvm> config_override loop0
Success overriding LVM configuration
lvm> config_reload
Success reloading LVM configuration
lvm> vg_open vg1
Couldn't find device with uuid 'A95EvV-iqmb-ZFuJ-u8MV-Npwn-wlc2-Ul1Mnn'.
Success opening vg vg1
lvm> vg_close vg1
lvm> quit
Maybe a bug in lvm_vg_open for missing pvs but the filter seems to work.
Change prompt from "lvm>" to "liblvm>".
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
|
|
|
|
| |
Signed-off-by: Thomas Woerner <twoerner@redhat.com>
Acked-by: Dave Wysochanski <dwysocha@redhat.com>
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
|
|
|
|
|
| |
For now, liblvm will return -1 (fail) / 0 (success) or
NULL (fail) / non-NULL (success). Upon failure, lvm_errno and
lvm_errmsg should be used to determine the precise error.
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tests the following APIs:
- lvm_{pv|vg|lv}_get_{name|uuid}()
- lvm_{lvs|pvs}_in_vg()
Example:
lvm> vg_open VolGroup00
Success opening vg VolGroup00
lvm> vg_list_lvs VolGroup00
LVs in VG VolGroup00:
VolGroup00/LogVol00 (bFO4EU-UaDu-iuMm-N6BA-xcZc-nm3u-J5K5lu)
VolGroup00/LogVol01 (BHGsPK-PwzY-kye0-MEWa-a67z-BiYE-03ZjwM)
lvm> vg_list_pvs VolGroup00
PVs in VG VolGroup00:
/dev/sda2 (Be91pt-CqT0-4YJE-nGI6-Oisz-hy0N-l9CHgn)
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Acked-by: Thomas Woerner <twoerner@redhat.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Reverts some of my 'cleanup' from last night. For now we will use pass/fail
on API calls (either 'int' return or NULL/non-NULL handle), then use
lvm_errno() to get more specific errors.
Author: Dave Wysochanski <dwysocha@redhat.com>
|
|
|
|
| |
Author: Dave Wysochanski <dwysocha@redhat.com>
|