]> sourceware.org Git - lvm2.git/commitdiff
test: check data_percent is equal to snap_percent
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 5 Oct 2012 08:32:49 +0000 (10:32 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 5 Oct 2012 08:37:41 +0000 (10:37 +0200)
test/api/percent.c

index db686d7d845a97f3fc073a7075dfac235aa59199..c5fa434bdf83afe8a72399fb92df4f9e3940c473 100644 (file)
@@ -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);
This page took 0.038328 seconds and 5 git commands to generate.