1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

cleanup: remove unused sizearg variable

It's not used for anything now.
This commit is contained in:
Zdenek Kabelac 2016-06-17 13:25:56 +02:00
parent 4de15aa58d
commit 5a919e4805
5 changed files with 0 additions and 5 deletions

View File

@ -373,7 +373,6 @@ static int _extend_sanlock_lv(struct cmd_context *cmd, struct volume_group *vg,
.percent = PERCENT_NONE, .percent = PERCENT_NONE,
.resize = LV_EXTEND, .resize = LV_EXTEND,
.force = 1, .force = 1,
.sizeargs = 1,
}; };
if (!lv_resize(lv, &lp, &vg->pvs)) { if (!lv_resize(lv, &lp, &vg->pvs)) {

View File

@ -5004,7 +5004,6 @@ static int _lvresize_adjust_extents(struct logical_volume *lv,
seg_size = lp->extents - existing_logical_extents; // Recalculate seg_size = lp->extents - existing_logical_extents; // Recalculate
if (lp->extents == existing_logical_extents) { if (lp->extents == existing_logical_extents) {
/* Signal that normal resizing is not required */ /* Signal that normal resizing is not required */
lp->sizeargs = 0;
return 1; return 1;
} }
} }

View File

@ -607,7 +607,6 @@ struct lvresize_params {
const struct segment_type *segtype; const struct segment_type *segtype;
int sizeargs;
uint64_t poolmetadata_size; uint64_t poolmetadata_size;
sign_t poolmetadata_sign; sign_t poolmetadata_sign;
uint32_t poolmetadataextents; uint32_t poolmetadataextents;

View File

@ -463,7 +463,6 @@ int lvm_lv_resize(const lv_t lv, uint64_t new_size)
.resize = LV_ANY, .resize = LV_ANY,
.size = new_size >> SECTOR_SHIFT, .size = new_size >> SECTOR_SHIFT,
.force = 1, /* Assume the user has a good backup? */ .force = 1, /* Assume the user has a good backup? */
.sizeargs = 1,
}; };
struct saved_env e = store_user_env(lv->vg->cmd); struct saved_env e = store_user_env(lv->vg->cmd);

View File

@ -55,7 +55,6 @@ static int _lvresize_params(struct cmd_context *cmd, int argc, char **argv,
* If only --poolmetadatasize is specified with list of PVs, * If only --poolmetadatasize is specified with list of PVs,
* then metadata will be extended there. * then metadata will be extended there.
*/ */
lp->sizeargs = arg_is_set(cmd, extents_ARG) + arg_is_set(cmd, size_ARG);
if ((lp->extents = arg_uint_value(cmd, extents_ARG, 0))) { if ((lp->extents = arg_uint_value(cmd, extents_ARG, 0))) {
lp->sign = arg_sign_value(cmd, extents_ARG, SIGN_NONE); lp->sign = arg_sign_value(cmd, extents_ARG, SIGN_NONE);
lp->percent = arg_percent_value(cmd, extents_ARG, PERCENT_NONE); lp->percent = arg_percent_value(cmd, extents_ARG, PERCENT_NONE);