mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
Also check in the pe_start API test that the disks have not been touched.
This commit is contained in:
parent
f7a80fd8e3
commit
f221800b25
@ -27,13 +27,13 @@ int main(int argc, char *argv[])
|
|||||||
handle = lvm_init(NULL);
|
handle = lvm_init(NULL);
|
||||||
assert(handle);
|
assert(handle);
|
||||||
|
|
||||||
vg = lvm_vg_create(handle, "test_vg");
|
vg = lvm_vg_create(handle, argv[1]);
|
||||||
assert(vg);
|
assert(vg);
|
||||||
|
|
||||||
if (lvm_vg_extend(vg, argv[1]))
|
if (lvm_vg_extend(vg, argv[2]))
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
pv = lvm_pv_from_name(vg, argv[1]);
|
pv = lvm_pv_from_name(vg, argv[2]);
|
||||||
assert(pv);
|
assert(pv);
|
||||||
|
|
||||||
v = lvm_pv_get_property(pv, "pe_start");
|
v = lvm_pv_get_property(pv, "pe_start");
|
||||||
|
@ -14,4 +14,6 @@
|
|||||||
. lib/test
|
. lib/test
|
||||||
|
|
||||||
aux prepare_devs 2
|
aux prepare_devs 2
|
||||||
aux apitest pe_start $dev1
|
aux apitest pe_start test_vg $dev1
|
||||||
|
not vgs test_vg
|
||||||
|
not pvs $dev1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user