mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-28 02:50:41 +03:00
Rename internal library function vg_remove to vg_remove_mdas.
Later patches should consolidate the vgremove / vgreduce functions but for now let's clarify what vg_remove actually does by changing the name. Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
3de6df8410
commit
940077d030
@ -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.
|
||||
*
|
||||
@ -441,7 +441,7 @@ int pv_analyze(struct cmd_context *cmd, const char *pv_name,
|
||||
uint32_t pv_list_extents_free(const struct dm_list *pvh);
|
||||
|
||||
struct volume_group *vg_create(struct cmd_context *cmd, const char *vg_name);
|
||||
int vg_remove(struct volume_group *vg);
|
||||
int vg_remove_mdas(struct volume_group *vg);
|
||||
int vg_remove_single(struct volume_group *vg);
|
||||
int vg_rename(struct cmd_context *cmd, struct volume_group *vg,
|
||||
const char *new_name);
|
||||
|
@ -502,8 +502,8 @@ int vg_remove_single(struct volume_group *vg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!vg_remove(vg)) {
|
||||
log_error("vg_remove %s failed", vg->name);
|
||||
if (!vg_remove_mdas(vg)) {
|
||||
log_error("vg_remove_mdas %s failed", vg->name);
|
||||
unlock_vg(vg->cmd, VG_ORPHANS);
|
||||
return 0;
|
||||
}
|
||||
@ -1676,7 +1676,7 @@ struct pv_segment *find_peg_by_pe(const struct physical_volume *pv, uint32_t pe)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int vg_remove(struct volume_group *vg)
|
||||
int vg_remove_mdas(struct volume_group *vg)
|
||||
{
|
||||
struct metadata_area *mda;
|
||||
|
||||
|
@ -167,7 +167,7 @@ static int vgconvert_single(struct cmd_context *cmd, const char *vg_name,
|
||||
}
|
||||
|
||||
log_verbose("Deleting existing metadata for VG %s", vg_name);
|
||||
if (!vg_remove(vg)) {
|
||||
if (!vg_remove_mdas(vg)) {
|
||||
log_error("Removal of existing metadata for %s failed.",
|
||||
vg_name);
|
||||
log_error("Use pvcreate and vgcfgrestore to repair "
|
||||
|
Loading…
x
Reference in New Issue
Block a user