From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - dm: add debugging to include table differences
Date: Wed, 3 Feb 2021 19:45:51 +0000 (GMT) [thread overview]
Message-ID: <20210203194551.78EC03890437@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=67d8fb1e83002f702f9c995ec96ffc723ea0d6ce
Commit: 67d8fb1e83002f702f9c995ec96ffc723ea0d6ce
Parent: 834cba000a68675909844865f56e77ab62c1943b
Author: David Teigland <teigland@redhat.com>
AuthorDate: Wed Feb 3 13:44:10 2021 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Wed Feb 3 13:44:10 2021 -0600
dm: add debugging to include table differences
When dm tables are reloaded, include log_debug info
that will show the details of why the reload is needed.
---
device_mapper/ioctl/libdm-iface.c | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/device_mapper/ioctl/libdm-iface.c b/device_mapper/ioctl/libdm-iface.c
index 8e7240673..1140798e6 100644
--- a/device_mapper/ioctl/libdm-iface.c
+++ b/device_mapper/ioctl/libdm-iface.c
@@ -1582,23 +1582,30 @@ static int _reload_with_suppression_v4(struct dm_task *dmt)
t2->params[len] = '\0';
if (t1->start != t2->start) {
- log_debug("reload %u:%u start diff", task->major, task->minor);
+ log_debug("reload %u:%u diff start %llu %llu type %s %s", task->major, task->minor,
+ (unsigned long long)t1->start, (unsigned long long)t2->start, t1->type, t2->type);
goto no_match;
}
if (t1->length != t2->length) {
- log_debug("reload %u:%u length diff", task->major, task->minor);
+ log_debug("reload %u:%u diff length %llu %llu type %s %s", task->major, task->minor,
+ (unsigned long long)t1->length, (unsigned long long)t2->length, t1->type, t2->type);
goto no_match;
}
if (strcmp(t1->type, t2->type)) {
- log_debug("reload %u:%u type diff %s %s", task->major, task->minor, t1->type, t2->type);
+ log_debug("reload %u:%u diff type %s %s", task->major, task->minor, t1->type, t2->type);
goto no_match;
}
if (strcmp(t1->params, t2->params)) {
- if (dmt->skip_reload_params_compare)
- log_debug("reload %u:%u skip params ignore %s %s",
- task->major, task->minor, t1->params, t2->params);
- else {
- log_debug("reload %u:%u params diff", task->major, task->minor);
+ if (dmt->skip_reload_params_compare) {
+ log_debug("reload %u:%u diff params ignore for type %s",
+ task->major, task->minor, t1->type);
+ log_debug("reload params1 %s", t1->params);
+ log_debug("reload params2 %s", t2->params);
+ } else {
+ log_debug("reload %u:%u diff params for type %s",
+ task->major, task->minor, t1->type);
+ log_debug("reload params1 %s", t1->params);
+ log_debug("reload params2 %s", t2->params);
goto no_match;
}
}
reply other threads:[~2021-02-03 19:45 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=20210203194551.78EC03890437@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.