1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add defines for default vgcreate parameters.

This commit is contained in:
Dave Wysochanski 2009-07-09 10:00:36 +00:00
parent 4a86bafbcc
commit 9af5a142d0
3 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
@ -66,6 +66,10 @@
#define DEFAULT_LABELSECTOR UINT64_C(1)
#define DEFAULT_READ_AHEAD "auto"
#define DEFAULT_EXTENT_SIZE 4096 /* In KB */
#define DEFAULT_MAX_PV 0
#define DEFAULT_MAX_LV 0
#define DEFAULT_ALLOC_POLICY ALLOC_NORMAL
#define DEFAULT_CLUSTERED 0
#define DEFAULT_MSG_PREFIX " "
#define DEFAULT_CMD_NAME 0

View File

@ -36,10 +36,10 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv)
vp_def.vg_name = NULL;
vp_def.extent_size = DEFAULT_EXTENT_SIZE * 2;
vp_def.max_pv = 0;
vp_def.max_lv = 0;
vp_def.alloc = ALLOC_NORMAL;
vp_def.clustered = 0;
vp_def.max_pv = DEFAULT_MAX_PV;
vp_def.max_lv = DEFAULT_MAX_LV;
vp_def.alloc = DEFAULT_ALLOC_POLICY;
vp_def.clustered = DEFAULT_CLUSTERED;
if (fill_vg_create_params(cmd, argv[0], &vp_new, &vp_def))
return EINVALID_CMD_LINE;

View File

@ -368,7 +368,7 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
vp_def.max_pv = vg_from->max_pv;
vp_def.max_lv = vg_from->max_lv;
vp_def.alloc = vg_from->alloc;
vp_def.clustered = 0;
vp_def.clustered = DEFAULT_CLUSTERED;
if (fill_vg_create_params(cmd, vg_name_to, &vp_new, &vp_def)) {
r = EINVALID_CMD_LINE;