From: Milan Broz <mbroz@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH 1/2] Always query device by uuid only.
Date: Wed, 24 Feb 2010 12:46:51 +0100 [thread overview]
Message-ID: <4B8511AB.3080305@redhat.com> (raw)
In-Reply-To: <20100223203902.GA31973@redhat.com>
On 02/23/2010 09:39 PM, Mike Snitzer wrote:
> Also, _add_dev_to_dtree() is the only remaining caller of _info() that
> passes 'name'. Passing a NULL 'name' to _info() from _add_dev_to_dtree()
> still allows the testsuite to pass. What are the benefit(s) of
> preserving _info()'s info-by-name fallback for _add_dev_to_dtree()?
user for name paramater is lv_mknodes() and my patch was wrong here,
name must be still passed into that function.
_add_dev_to_dtree() should use NULL for name...
Thanks.
Milan
---
lib/activate/dev_manager.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index 84f94ff..2ec9b6f 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -254,8 +254,8 @@ int dev_manager_info(struct dm_pool *mem, const struct logical_volume *lv,
return 0;
}
- log_debug("Getting device info for %s", name);
- r = _info(NULL, dlid, with_mknodes, with_open_count,
+ log_debug("Getting device info for %s [%s]", name, dlid);
+ r = _info(name, dlid, with_mknodes, with_open_count,
with_read_ahead, info, read_ahead);
dm_pool_free(mem, (char*)name);
@@ -785,7 +785,7 @@ static int _add_dev_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
return_0;
log_debug("Getting device info for %s [%s]", name, dlid);
- if (!_info(name, dlid, 0, 1, 0, &info, NULL)) {
+ if (!_info(NULL, dlid, 0, 1, 0, &info, NULL)) {
log_error("Failed to get info for %s [%s].", name, dlid);
return 0;
}
next prev parent reply other threads:[~2010-02-24 11:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 13:46 [PATCH 1/2] Always query device by uuid only Milan Broz
2010-02-23 13:46 ` [PATCH 2/2] Remove lvs_in_vg_activated_by_uuid_only call Milan Broz
2010-02-23 20:39 ` [PATCH 1/2] Always query device by uuid only Mike Snitzer
2010-02-24 11:46 ` Milan Broz [this message]
2010-02-24 11:56 ` Milan Broz
2010-02-24 12:55 ` Milan Broz
2010-02-24 14:02 ` Mike Snitzer
2010-02-24 15:41 ` Petr Rockai
2010-02-24 15:39 ` Petr Rockai
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=4B8511AB.3080305@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.