From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib/thin thin.c
Date: 6 Sep 2011 22:35:45 -0000 [thread overview]
Message-ID: <20110906223545.14191.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-09-06 22:35:45
Modified files:
lib/thin : thin.c
Log message:
Convert data->pool
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/thin/thin.c.diff?cvsroot=lvm2&r1=1.9&r2=1.10
--- LVM2/lib/thin/thin.c 2011/09/06 19:25:44 1.9
+++ LVM2/lib/thin/thin.c 2011/09/06 22:35:44 1.10
@@ -48,19 +48,19 @@
{
const char *lv_name;
- if (!dm_config_get_str(sn, "data", &lv_name))
- return SEG_LOG_ERROR("Thin pool data must be a string in");
+ if (!dm_config_get_str(sn, "pool", &lv_name))
+ return SEG_LOG_ERROR("Pool must be a string in");
// Use attach_pool_lv
if (!(seg->pool_lv = find_lv(seg->lv->vg, lv_name)))
- return SEG_LOG_ERROR("Unknown pool data %s in", lv_name);
+ return SEG_LOG_ERROR("Unknown pool %s in", lv_name);
if (!dm_config_get_str(sn, "metadata", &lv_name))
- return SEG_LOG_ERROR("Thin pool metadata must be a string in");
+ return SEG_LOG_ERROR("Metadata must be a string in");
// Use attach_pool_metadata()
if (!(seg->metadata_lv = find_lv(seg->lv->vg, lv_name)))
- return SEG_LOG_ERROR("Unknown pool metadata %s in", lv_name);
+ return SEG_LOG_ERROR("Unknown metadata %s in", lv_name);
if (!dm_config_get_uint64(sn, "transaction_id", &seg->transaction_id))
return SEG_LOG_ERROR("Could not read transaction_id for");
@@ -74,7 +74,7 @@
static int _thin_pool_text_export(const struct lv_segment *seg, struct formatter *f)
{
- outf(f, "data = \"%s\"", seg->pool_lv->name);
+ outf(f, "pool = \"%s\"", seg->pool_lv->name);
outf(f, "metadata = \"%s\"", seg->metadata_lv->name);
outf(f, "transaction_id = %" PRIu64, seg->transaction_id);
if (seg->zero_new_blocks)
@@ -101,7 +101,7 @@
if (dm_config_has_node(sn, "origin")) {
if (!dm_config_get_str(sn, "origin", &lv_name))
- return SEG_LOG_ERROR("Thin pool origin must be a string in");
+ return SEG_LOG_ERROR("Origin must be a string in");
if (!(seg->origin = find_lv(seg->lv->vg, lv_name)))
return SEG_LOG_ERROR("Unknown origin %s in", lv_name);
next reply other threads:[~2011-09-06 22:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-06 22:35 zkabelac [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-19 15:42 LVM2/lib/thin thin.c zkabelac
2011-12-21 12:56 zkabelac
2011-11-03 14:37 zkabelac
2011-10-28 20:25 zkabelac
2011-10-22 16:45 zkabelac
2011-10-20 10:32 zkabelac
2011-10-20 10:30 zkabelac
2011-10-17 14:17 zkabelac
2011-10-11 8:51 zkabelac
2011-10-06 11:06 zkabelac
2011-09-01 10:16 zkabelac
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=20110906223545.14191.qmail@sourceware.org \
--to=zkabelac@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.