diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2010-09-30 13:52:55 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2010-09-30 13:52:55 +0000 |
commit | 14663348d03bdb8b6f30e9a30f0b65b2f0a659d9 (patch) | |
tree | 85053068f1f2d9cbb0a329dda5ae6699ad048b41 /lib/metadata/lv.h | |
parent | e32e2eb01130623281d79d64c08bcadb6736f043 (diff) | |
download | lvm2-14663348d03bdb8b6f30e9a30f0b65b2f0a659d9.tar.gz lvm2-14663348d03bdb8b6f30e9a30f0b65b2f0a659d9.tar.xz lvm2-14663348d03bdb8b6f30e9a30f0b65b2f0a659d9.zip |
Add {pv|vg|lv}_attr_dup() functions and refactor 'disp' functions.
Move the creating of the 'attr' strings into a common function so
they can be called from the 'disp' functions as well as the new
'get' property functions.
Add "_dup" suffix to indicate memory is allocated.
Refactor pvstatus_disp to take pv argument and call pv_attr_dup().
Diffstat (limited to 'lib/metadata/lv.h')
-rw-r--r-- | lib/metadata/lv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/metadata/lv.h b/lib/metadata/lv.h index d3b0d82b..4cf06b22 100644 --- a/lib/metadata/lv.h +++ b/lib/metadata/lv.h @@ -48,5 +48,6 @@ struct logical_volume { }; uint64_t lv_size(const struct logical_volume *lv); +char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv); #endif |