From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: dev-next - segtypes: macros for error and zero segtypes
Date: Mon, 22 Mar 2021 15:39:18 +0000 (GMT) [thread overview]
Message-ID: <20210322153918.8DB45385781A@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b35ef9d67cabd23f65e2ee2113af46bea095138c
Commit: b35ef9d67cabd23f65e2ee2113af46bea095138c
Parent: 22554c3ff0807f62f8fa71faab153958c475028b
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Thu Mar 18 13:13:38 2021 +0100
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Thu Mar 18 18:34:57 2021 +0100
segtypes: macros for error and zero segtypes
---
lib/metadata/segtype.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/metadata/segtype.h b/lib/metadata/segtype.h
index 676f37e3c..d7cfc2b72 100644
--- a/lib/metadata/segtype.h
+++ b/lib/metadata/segtype.h
@@ -115,6 +115,8 @@ struct dev_manager;
#define SEG_TYPE_NAME_RAID6_N_6 "raid6_n_6"
#define segtype_is_linear(segtype) (!strcmp((segtype)->name, SEG_TYPE_NAME_LINEAR))
+#define segtype_is_error(segtype) (!strcmp((segtype)->name, SEG_TYPE_NAME_ERROR))
+#define segtype_is_zero(segtype) (!strcmp((segtype)->name, SEG_TYPE_NAME_ZERO))
#define segtype_is_striped_target(segtype) ((segtype)->flags & SEG_STRIPED_TARGET ? 1 : 0)
#define segtype_is_cache(segtype) ((segtype)->flags & SEG_CACHE ? 1 : 0)
#define segtype_is_cache_pool(segtype) ((segtype)->flags & SEG_CACHE_POOL ? 1 : 0)
reply other threads:[~2021-03-22 15:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210322153918.8DB45385781A@sourceware.org \
--to=teigland@sourceware.org \
--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.