[lvm-devel] master - test: check snap_percent returns invalid

Zdenek Kabelac zkabelac at fedoraproject.org
Mon Oct 8 10:17:11 UTC 2012


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=40182cbd82430a127bfeac5d93f98e642c94e06b
Commit:        40182cbd82430a127bfeac5d93f98e642c94e06b
Parent:        ff13206c7e6f8a4246afb562338aaba879d579ad
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Mon Oct 8 12:07:35 2012 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Oct 8 12:16:54 2012 +0200

test: check snap_percent returns invalid

For thin_volumes snap_percent is meaningless.
---
 test/api/thin_percent.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/api/thin_percent.c b/test/api/thin_percent.c
index 952346f..5338164 100644
--- a/test/api/thin_percent.c
+++ b/test/api/thin_percent.c
@@ -53,6 +53,10 @@ int main(int argc, char *argv[])
 	assert(v.is_valid);
 	assert(v.value.integer == 75 * PERCENT_1);
 
+	v = lvm_lv_get_property(lv, "snap_percent");
+	assert(v.is_valid);
+	assert(v.value.integer == PERCENT_INVALID);
+
 	lvm_vg_close(vg);
 	lvm_quit(handle);
 




More information about the lvm-devel mailing list