summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Handle metadata with unknown segment types more gracefully.Petr Rockai2009-10-161-0/+34
|
* Add --pvmetadatacopies as a synonym for --metadatacopies in various commands.Dave Wysochanski2009-10-053-11/+14
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add --pvmetadatacopies as a synonym for --metadatacopies in various commands.Dave Wysochanski2009-10-051-0/+77
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add implicit tests for implicit pvcreate during vgcreate and vgextend.Dave Wysochanski2009-10-051-0/+57
| | | | Update tests and WHATS_NEW for implicit pvcreate support.
* Allow for a build directory separate from the source.Alasdair Kergon2009-10-021-1/+2
|
* Update nightly tests to deal with unit changes.Dave Wysochanski2009-09-306-64/+64
| | | | | | | | | 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.
* Fix lvm2app test to run under test/api subdirectory only when configured.Dave Wysochanski2009-09-151-1/+4
|
* Fix build failure when enabling dmeventd and applib.Dave Wysochanski2009-09-141-0/+5
| | | | | This patch fixes a build with options similar to the following: ./configure --enable-debug --enable-applib --enable-dmeventd --enable-cmdlib
* Do not run mdadm tests if MD module is not loaded.Milan Broz2009-09-131-0/+1
|
* Update lvm2app unit test vgtest - fix remove bug.Dave Wysochanski2009-09-041-3/+3
| | | | We now must commit to disk after lvm_vg_remove().
* Fix path to test/api/vgtest in nightly testsuite.Dave Wysochanski2009-09-041-1/+1
|
* Add lvm2app.sh to nightly testsuite.Dave Wysochanski2009-09-041-1/+1
| | | | | More tests to come but for now just call into vgtest. Fix warning in vgtest.c
* Fix path to test/api/vgtest in nightly testsuite.Dave Wysochanski2009-09-041-1/+1
|
* Remove 'test' interative api unit tests from 'TARGET' line.Dave Wysochanski2009-09-041-1/+1
| | | | | | 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.
* Add lvm2app.sh to nightly testsuite.Dave Wysochanski2009-09-043-2/+29
| | | | | More tests to come but for now just call into vgtest. Fix warning in vgtest.c
* Update lvm2app vgtest to take vgname and devices as parameters.Dave Wysochanski2009-09-031-9/+27
|
* Fix vgsplit test to require -M on ordering of vgnames.Dave Wysochanski2009-09-021-2/+3
|
* Add alphabetical vgname ordering tests for vgsplit, vgmerge, vgrename.Dave Wysochanski2009-09-023-5/+20
|
* Make lvm2app lv_t handle definition consistent with lvm_t.Dave Wysochanski2009-08-131-6/+6
| | | | | | | 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>
* Make lvm2app vg_t handle definition consistent with lvm_t.Dave Wysochanski2009-08-132-16/+16
| | | | | | | 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>
* Update test/api/test.c to call lvm_vg_create and lvm_vg_remove.Dave Wysochanski2009-08-071-5/+59
| | | | Also fix a couple bugs.
* Added basic pvcreate --dataalignmentoffset testing to t-pvcreate-usage.shMike Snitzer2009-08-042-0/+124
| | | | | Added topology testing via new test/t-pvcreate-operation-md.sh - requires mdadm and rawhide kernel for full test coverage
* Make lvconvert honour log mirror options combined with downconversion.Petr Rockai2009-08-021-0/+6
| | | | (RHBZ 463272)
* Add test for RHBZ 481793 (passing, thanks to vg_read changes checked inPetr Rockai2009-08-022-1/+22
| | | | previously).
* renamed include filesAlasdair Kergon2009-07-292-2/+4
|
* Update interactive unit test - fix silly vg_close error.Dave Wysochanski2009-07-281-2/+2
|
* Update interactive unit test for liblvm - add vg_write, general cleanup.Dave Wysochanski2009-07-281-27/+52
|
* Add lvm_vg_get_seqno, updating lvm.h and unit test.Dave Wysochanski2009-07-281-2/+3
| | | | | | 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.
* Add lvm_library_get_version() and update unit tests to display version.Dave Wysochanski2009-07-282-0/+2
|
* Rename lvm_create to lvm_init and lvm_destroy to lvm_quit.Dave Wysochanski2009-07-282-6/+6
|
* Add config_reload and config_override to test.c, change prompt.Dave Wysochanski2009-07-271-1/+38
| | | | | | | | | | | | | | | | | | | | | 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>
* Update test/api/test.c to include lvm_vg_reduce and lvm_vg_extend.Dave Wysochanski2009-07-271-0/+82
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/vgtest.c to include lvm_vg_reduce.Dave Wysochanski2009-07-271-44/+76
| | | | | | | | Signed-off-by: Thomas Woerner <twoerner@redhat.com> Acked-by: Dave Wysochanski <dwysocha@redhat.com> Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c to display lvm_lv_is_active and lvm_lv_is_suspended.Dave Wysochanski2009-07-261-2/+5
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c to call lv_deactivate and lv_activate.Dave Wysochanski2009-07-261-0/+44
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/*.c to use consistent liblvm error returns.Dave Wysochanski2009-07-262-7/+7
| | | | | | | | | 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>
* Rename lvm_scan_vgs to lvm_scan.Dave Wysochanski2009-07-261-1/+1
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Rename lvm_vg_get_free to lvm_vg_get_free_size.Dave Wysochanski2009-07-261-1/+1
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Rename lvm_list_vg_ids to lvm_list_vg_uuids.Dave Wysochanski2009-07-261-1/+1
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c to call lvm_lv_remove.Dave Wysochanski2009-07-261-2/+46
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c - correct list_vg_names and list_vg_ids.Dave Wysochanski2009-07-261-8/+8
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c for liblvm 'get' functions.Dave Wysochanski2009-07-261-7/+10
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c to call lvm_vg_create_lv_linear.Dave Wysochanski2009-07-261-0/+24
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c to handle read/write open modes.Dave Wysochanski2009-07-261-2/+4
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Add tests for lvm_vg_name_list, lvm_vg_id_list and lvm_scan_vgs.Dave Wysochanski2009-07-241-0/+46
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c to not segfault if null lists of pvs/lvs returned.Dave Wysochanski2009-07-241-9/+20
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>
* Update test/api/test.c for simple tests involving pv/vg/lv name/uuid attributes.Dave Wysochanski2009-07-231-8/+212
| | | | | | | | | | | | | | | | | | | | 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>
* Add a couple lvm_vg_open() calls to vgtest.c.Dave Wysochanski2009-07-221-0/+14
|
* Update api/test/vgtest.c error handling.Dave Wysochanski2009-07-221-9/+6
| | | | | | | | | 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>
* Update test/api/vgtest.c to use lvm_errno and lvm_errmsg.Dave Wysochanski2009-07-221-5/+10
| | | | Author: Dave Wysochanski <dwysocha@redhat.com>