All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] liblvm2app improvement suggestions
@ 2011-09-13  0:30 ben
  2011-09-19  3:03 ` [linux-lvm] (bump) " ben
  0 siblings, 1 reply; 2+ messages in thread
From: ben @ 2011-09-13  0:30 UTC (permalink / raw)
  To: linux-lvm

When reading the list of logical volumes using the library it can be really 
difficult to determine just what type of volume each one really is. The problem 
is that the attributes field doesn't cover all the possiblities. A volume can 
be an origin and a mirror or it may be a mirror log that is also a mirror. I 
have had to resort to parsing the name string for things like "_mlog" to 
determine what I am dealing with.

It would be really helpful to have some functions like:

lvm_lv_is_snapshot(const lv_t lv)
lvm_lv_is_mirror(const lv_t lv)
lvm_lv_is_origin(const lv_t lv)
lvm_lv_is_mirror_log(const lv_t lv)
lvm_lv_is_mirror_leg(const lv_t lv)

and you get the idea.

Thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] (bump) liblvm2app improvement suggestions
  2011-09-13  0:30 [linux-lvm] liblvm2app improvement suggestions ben
@ 2011-09-19  3:03 ` ben
  0 siblings, 0 replies; 2+ messages in thread
From: ben @ 2011-09-19  3:03 UTC (permalink / raw)
  To: LVM general discussion and development

bump

No comments?

On September 12 05:30:58 PM ben wrote:
> When reading the list of logical volumes using the library it can be really
> difficult to determine just what type of volume each one really is. The
> problem is that the attributes field doesn't cover all the possiblities. A
> volume can be an origin and a mirror or it may be a mirror log that is also
> a mirror. I have had to resort to parsing the name string for things like
> "_mlog" to determine what I am dealing with.
> 
> It would be really helpful to have some functions like:
> 
> lvm_lv_is_snapshot(const lv_t lv)
> lvm_lv_is_mirror(const lv_t lv)
> lvm_lv_is_origin(const lv_t lv)
> lvm_lv_is_mirror_log(const lv_t lv)
> lvm_lv_is_mirror_leg(const lv_t lv)
> 
> and you get the idea.
> 
> Thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-19  3:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13  0:30 [linux-lvm] liblvm2app improvement suggestions ben
2011-09-19  3:03 ` [linux-lvm] (bump) " ben

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.