summaryrefslogtreecommitdiff
path: root/lib/format_text
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format_text')
-rw-r--r--lib/format_text/archiver.c2
-rw-r--r--lib/format_text/format-text.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c
index 9aa803b04..c736727ec 100644
--- a/lib/format_text/archiver.c
+++ b/lib/format_text/archiver.c
@@ -305,7 +305,7 @@ int backup_restore_vg(struct cmd_context *cmd, struct volume_group *vg)
/* Add any metadata areas on the PVs */
list_iterate_items(pvl, &vg->pvs) {
pv = pvl->pv;
- if (!(info = info_from_pvid(pv->dev->pvid))) {
+ if (!(info = info_from_pvid(pv->dev->pvid, 0))) {
log_error("PV %s missing from cache",
pv_dev_name(pv));
return 0;
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c
index c83d7a821..0783c1416 100644
--- a/lib/format_text/format-text.c
+++ b/lib/format_text/format-text.c
@@ -391,7 +391,7 @@ static struct raw_locn *_find_vg_rlocn(struct device_area *dev_area,
}
error:
- if ((info = info_from_pvid(dev_area->dev->pvid)))
+ if ((info = info_from_pvid(dev_area->dev->pvid, 0)))
lvmcache_update_vgname_and_id(info, ORPHAN, ORPHAN, 0, NULL);
return NULL;
@@ -1610,7 +1610,7 @@ static int _text_pv_setup(const struct format_type *fmt,
/* If new vg, add any further mdas on this PV to the fid's mda list */
if (vg) {
/* Iterate through all mdas on this PV */
- if ((info = info_from_pvid(pv->dev->pvid))) {
+ if ((info = info_from_pvid(pv->dev->pvid, 0))) {
pvmdas = &info->mdas;
list_iterate_items(mda, pvmdas) {
mda_count++;