From: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
To: lvm-devel@redhat.com
Subject: [LVM2 PATCH] Add lv_is_internal() to check internal LVs
Date: Thu, 09 Aug 2007 14:23:57 -0400 [thread overview]
Message-ID: <46BB5BBD.9080705@ce.jp.nec.com> (raw)
In-Reply-To: <46BB5526.5030706@ce.jp.nec.com>
Jun'ichi Nomura wrote:
> Attached patch adds lv_is_internal() to check internal LVs.
> lv_is_visible() returns true for "snapshotX" so it can't
> directly usable for this purpose.
Oops, sorry. I posted a wrong patch.
> +int lv_is_internal(const struct logical_volume *lv)
> +{
> + if (lv->status & SNAPSHOT)
> + return 0;
> +
> + return lv_is_visible(lv);
> +}
The return value is apparently inverted here.
Internal LVs are either:
- snapshot (i.e. "snapshotX")
- not visible
Resending the correct patch.
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-add-lv_is_internal.patch
Type: text/x-patch
Size: 3163 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070809/1c493535/attachment.bin>
prev parent reply other threads:[~2007-08-09 18:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-09 17:55 [LVM2 PATCH] Add lv_is_internal() to check internal LVs Jun'ichi Nomura
2007-08-09 18:23 ` Jun'ichi Nomura [this message]
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=46BB5BBD.9080705@ce.jp.nec.com \
--to=j-nomura@ce.jp.nec.com \
--cc=lvm-devel@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.