All of lore.kernel.org
 help / color / mirror / Atom feed
From: ben <benscott@nwlink.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] liblvm2app improvement suggestions
Date: Mon, 12 Sep 2011 17:30:58 -0700	[thread overview]
Message-ID: <2097280.qh0eFtcjbt@laptop> (raw)

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.

             reply	other threads:[~2011-09-13  0:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-13  0:30 ben [this message]
2011-09-19  3:03 ` [linux-lvm] (bump) liblvm2app improvement suggestions ben

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2097280.qh0eFtcjbt@laptop \
    --to=benscott@nwlink.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.