From: Zdenek Kabelac <zkabelac@fedoraproject.org>
To: lvm-devel@redhat.com
Subject: master - libdm: cache status reports passthrough cache mode
Date: Thu, 19 May 2016 16:41:29 +0000 (UTC) [thread overview]
Message-ID: <20160519164129.C552B602F5@fedorahosted.org> (raw)
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e8ba5c9bd4f8a1ff5d67b597c10eea3d176b27e1
Commit: e8ba5c9bd4f8a1ff5d67b597c10eea3d176b27e1
Parent: e694e0896bd4d320f5d5017411763583698b28dc
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Thu May 19 18:20:11 2016 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Thu May 19 18:26:07 2016 +0200
libdm: cache status reports passthrough cache mode
Report passthrough mode instead of 'Unknown feature'.
---
WHATS_NEW_DM | 1 +
libdm/libdm-targets.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index b6703c7..d446997 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
Version 1.02.126 -
================================
+ Report passthrough caching mode when parsing cache mode.
Version 1.02.125 - 14th May 2016
================================
diff --git a/libdm/libdm-targets.c b/libdm/libdm-targets.c
index b91c7e9..c94e057 100644
--- a/libdm/libdm-targets.c
+++ b/libdm/libdm-targets.c
@@ -256,6 +256,8 @@ int dm_get_status_cache(struct dm_pool *mem, const char *params,
s->feature_flags |= DM_CACHE_FEATURE_WRITETHROUGH;
else if (!strncmp(p, "writeback ", 10))
s->feature_flags |= DM_CACHE_FEATURE_WRITEBACK;
+ else if (!strncmp(p, "passthrough ", 11))
+ s->feature_flags |= DM_CACHE_FEATURE_PASSTHROUGH;
else
log_error("Unknown feature in status: %s", params);
reply other threads:[~2016-05-19 16:41 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=20160519164129.C552B602F5@fedorahosted.org \
--to=zkabelac@fedoraproject.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.