mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
o extra fid parameter to lv_manip fns
This commit is contained in:
parent
9b88d8b78d
commit
168b7bf9e2
@ -192,7 +192,8 @@ int lvcreate(int argc, char **argv)
|
|||||||
if (!archive(vg))
|
if (!archive(vg))
|
||||||
return ECMD_FAILED;
|
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)))
|
vg, pvh)))
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ int lvresize(int argc, char **argv)
|
|||||||
if (!archive(vg))
|
if (!archive(vg))
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
|
|
||||||
if (!lv_reduce(lv, lv->le_count - extents))
|
if (!lv_reduce(fid, lv, lv->le_count - extents))
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -307,8 +307,8 @@ int lvresize(int argc, char **argv)
|
|||||||
log_print("Extending logical volume %s to %s", lv_name, dummy);
|
log_print("Extending logical volume %s to %s", lv_name, dummy);
|
||||||
dbg_free(dummy);
|
dbg_free(dummy);
|
||||||
|
|
||||||
if (!lv_extend(lv, stripes, stripesize, extents - lv->le_count,
|
if (!lv_extend(fid, lv, stripes, stripesize,
|
||||||
pvh))
|
extents - lv->le_count, pvh))
|
||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user