1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Remove unused 'cmd' from vg_change_pesize().

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-07-09 10:03:37 +00:00
parent de5dfec56b
commit b1278ba1b8
3 changed files with 3 additions and 5 deletions

View File

@ -434,8 +434,7 @@ int vg_remove_single(struct cmd_context *cmd, const char *vg_name,
int vg_rename(struct cmd_context *cmd, struct volume_group *vg, int vg_rename(struct cmd_context *cmd, struct volume_group *vg,
const char *new_name); const char *new_name);
int vg_extend(struct volume_group *vg, int pv_count, char **pv_names); int vg_extend(struct volume_group *vg, int pv_count, char **pv_names);
int vg_change_pesize(struct cmd_context *cmd, struct volume_group *vg, int vg_change_pesize(struct volume_group *vg, uint32_t new_extent_size);
uint32_t new_extent_size);
int vg_split_mdas(struct cmd_context *cmd, struct volume_group *vg_from, int vg_split_mdas(struct cmd_context *cmd, struct volume_group *vg_from,
struct volume_group *vg_to); struct volume_group *vg_to);

View File

@ -624,8 +624,7 @@ static int _recalc_extents(uint32_t *extents, const char *desc1,
return 1; return 1;
} }
int vg_change_pesize(struct cmd_context *cmd __attribute((unused)), int vg_change_pesize(struct volume_group *vg, uint32_t new_size)
struct volume_group *vg, uint32_t new_size)
{ {
uint32_t old_size = vg->extent_size; uint32_t old_size = vg->extent_size;
struct pv_list *pvl; struct pv_list *pvl;

View File

@ -397,7 +397,7 @@ static int _vgchange_pesize(struct cmd_context *cmd, struct volume_group *vg)
if (!archive(vg)) if (!archive(vg))
return ECMD_FAILED; return ECMD_FAILED;
if (!vg_change_pesize(cmd, vg, extent_size)) { if (!vg_change_pesize(vg, extent_size)) {
stack; stack;
return EINVALID_CMD_LINE; return EINVALID_CMD_LINE;
} }