diff options
author | Alasdair Kergon <agk@redhat.com> | 2012-03-02 20:46:36 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2012-03-02 20:46:36 +0000 |
commit | 9c159ea320a4cf9db8d48c4983ccb4088a980d55 (patch) | |
tree | 7638ded3f13c85562259e3bb915147a772e3b0b2 /lib/format_text/format-text.c | |
parent | 79c42c6600abb4b766d93fb9b95d553d059db011 (diff) | |
download | lvm2-9c159ea320a4cf9db8d48c4983ccb4088a980d55.tar.gz lvm2-9c159ea320a4cf9db8d48c4983ccb4088a980d55.tar.xz lvm2-9c159ea320a4cf9db8d48c4983ccb4088a980d55.zip |
Pass struct device around internally rather than dev_t.
Add 3rd daemon return state "unknown" for lookups that are carried out
successfully but don't find the item requested.
Avoid issuing error messages when it's expected that a device that's
being looked up in lvmetad might not be there.
Diffstat (limited to 'lib/format_text/format-text.c')
-rw-r--r-- | lib/format_text/format-text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index 841a090c..ef28539a 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -1445,7 +1445,7 @@ static int _text_pv_read(const struct format_type *fmt, const char *pv_name, if (lvmetad_active()) { info = lvmcache_info_from_pvid(dev->pvid, 0); - if (!info && !lvmetad_pv_lookup_by_devt(fmt->cmd, dev->dev)) + if (!info && !lvmetad_pv_lookup_by_dev(fmt->cmd, dev, NULL)) return 0; info = lvmcache_info_from_pvid(dev->pvid, 0); } else { |