From: Milan Broz <mbroz@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] fix debugging version of dm_pool_grow_object to properly use delta=0
Date: Thu, 02 Apr 2009 16:19:41 +0200 [thread overview]
Message-ID: <49D4C97D.5020304@redhat.com> (raw)
Fix debug poll grow object to properly support delta=0
(It prints garbage for some reports)
Signed-off-by: Milan Broz <mbroz@redhat.com>
---
libdm/mm/pool-debug.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libdm/mm/pool-debug.c b/libdm/mm/pool-debug.c
index 911f8e2..fd13c1b 100644
--- a/libdm/mm/pool-debug.c
+++ b/libdm/mm/pool-debug.c
@@ -220,6 +220,9 @@ int dm_pool_grow_object(struct dm_pool *p, const void *extra, size_t delta)
struct block *new;
size_t size = delta ? : strlen(extra);
+ if (!delta)
+ delta = size;
+
assert(p->begun);
if (p->object)
next reply other threads:[~2009-04-02 14:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 14:19 Milan Broz [this message]
2009-04-02 14:37 ` [PATCH] fix debugging version of dm_pool_grow_object to properly use delta=0 Alasdair G Kergon
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=49D4C97D.5020304@redhat.com \
--to=mbroz@redhat.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.