diff options
author | Tony Asleson <tasleson@redhat.com> | 2013-04-11 16:48:40 -0400 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2013-07-02 14:24:34 -0500 |
commit | a7f3dbf904f369338657785e845ebc8a6f479983 (patch) | |
tree | ff604ee067982f7aed3ea789300753a3e9baca4a /liblvm/lvm2app.h | |
parent | 9e0260c2e34f1b7150fb2fac3e780c3e75cd411e (diff) | |
download | lvm2-a7f3dbf904f369338657785e845ebc8a6f479983.tar.gz |
lvm2app: Add function to retrieve the origin.
Signed-off-by: Tony Asleson <tasleson@redhat.com>
Diffstat (limited to 'liblvm/lvm2app.h')
-rw-r--r-- | liblvm/lvm2app.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/liblvm/lvm2app.h b/liblvm/lvm2app.h index 4a0844ee8..65dc340e3 100644 --- a/liblvm/lvm2app.h +++ b/liblvm/lvm2app.h @@ -1232,6 +1232,22 @@ const char *lvm_lv_get_name(const lv_t lv); const char *lvm_lv_get_attr(const lv_t lv); /** + * Get the origin of a snapshot. + * + * \memberof lv_t + * + * The memory allocated for the name is tied to the vg_t handle and will be + * released when lvm_vg_close() is called. + * + * \param lv + * Logical volume handle. + * + * \return + * Null if the logical volume is not a snapshot, else origin name. + */ +const char *lvm_lv_get_origin(const lv_t lv); + +/** * Get the current size in bytes of a logical volume. * * \memberof lv_t |