diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2013-06-25 12:32:09 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2013-07-02 15:19:09 +0200 |
commit | e21e38cf740b5b174e59fe400663bf6847f2f547 (patch) | |
tree | 26c4c156fa5bdf1ca3c34c70e53c4d9ae795d448 /tools/vgcreate.c | |
parent | d6a91da4be08aa59bfabd626bdb599030db6e8f1 (diff) | |
download | lvm2-e21e38cf740b5b174e59fe400663bf6847f2f547.tar.gz |
metadata: add support for storing profile name in metadata (during vgcreate/lvcreate)
If "vgcreate/lvcreate --profile <profile_name>" is used, the profile
name is automatically stored in metadata for making it possible to
load it automatically next time the VG/LV is used.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r-- | tools/vgcreate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c index 9be9416d2..45f4c04fb 100644 --- a/tools/vgcreate.c +++ b/tools/vgcreate.c @@ -62,6 +62,9 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv) return ECMD_FAILED; } + if (vg->fid->fmt->features & FMT_CONFIG_PROFILE) + vg->profile = vg->cmd->profile_params->global_profile; + if (!vg_set_extent_size(vg, vp_new.extent_size) || !vg_set_max_lv(vg, vp_new.max_lv) || !vg_set_max_pv(vg, vp_new.max_pv) || |