All of lore.kernel.org
 help / color / mirror / Atom feed
* master - test: check data_percent is equal to snap_percent
@ 2012-10-05  8:38 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2012-10-05  8:38 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=39f3c9de0babbe54cecb4cee5b163bf72eab61f4
Commit:        39f3c9de0babbe54cecb4cee5b163bf72eab61f4
Parent:        1da6c1495aea539ccd869b157162aaff9f96b385
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Fri Oct 5 10:32:49 2012 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Fri Oct 5 10:37:41 2012 +0200

test: check data_percent is equal to snap_percent

---
 test/api/percent.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/api/percent.c b/test/api/percent.c
index db686d7..c5fa434 100644
--- a/test/api/percent.c
+++ b/test/api/percent.c
@@ -23,6 +23,7 @@ int main(int argc, char *argv[])
 	vg_t vg = NULL;
 	lv_t lv;
 	struct lvm_property_value v;
+	struct lvm_property_value d;
 
 	handle = lvm_init(NULL);
         assert(handle);
@@ -51,6 +52,10 @@ int main(int argc, char *argv[])
         assert(v.is_valid);
         assert(v.value.integer == 50 * PERCENT_1);
 
+	d = lvm_lv_get_property(lv, "data_percent");
+	assert(d.is_valid);
+	assert(d.value.integer == v.value.integer);
+
         lvm_vg_close(vg);
 
 	lvm_quit(handle);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-05  8:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05  8:38 master - test: check data_percent is equal to snap_percent Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.