diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 004e0d8dd..07ab256f8 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -192,7 +192,8 @@ int lvcreate(int argc, char **argv) if (!archive(vg)) return ECMD_FAILED; - if (!(lv = lv_create(lv_name, status, stripes, stripesize, extents, + if (!(lv = lv_create(fid, lv_name, status, + stripes, stripesize, extents, vg, pvh))) return ECMD_FAILED; diff --git a/tools/lvresize.c b/tools/lvresize.c index b828f7a51..676c7556d 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -284,7 +284,7 @@ int lvresize(int argc, char **argv) if (!archive(vg)) return ECMD_FAILED; - if (!lv_reduce(lv, lv->le_count - extents)) + if (!lv_reduce(fid, lv, lv->le_count - extents)) return ECMD_FAILED; } @@ -307,8 +307,8 @@ int lvresize(int argc, char **argv) log_print("Extending logical volume %s to %s", lv_name, dummy); dbg_free(dummy); - if (!lv_extend(lv, stripes, stripesize, extents - lv->le_count, - pvh)) + if (!lv_extend(fid, lv, stripes, stripesize, + extents - lv->le_count, pvh)) return ECMD_FAILED; }