mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
test: check data_percent is equal to snap_percent
This commit is contained in:
parent
1da6c1495a
commit
39f3c9de0b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user