mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
pvremove without -f now fails if there's no PV label.
This commit is contained in:
parent
1c8b86c7d5
commit
7810d55dfc
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.03 -
|
Version 2.02.03 -
|
||||||
===================================
|
===================================
|
||||||
|
pvremove without -f now fails if there's no PV label.
|
||||||
Support lvconvert -s.
|
Support lvconvert -s.
|
||||||
Suppress locking library load failure message if --ignorelockingfailure.
|
Suppress locking library load failure message if --ignorelockingfailure.
|
||||||
Propagate partial mode around cluster.
|
Propagate partial mode around cluster.
|
||||||
|
@ -33,9 +33,14 @@ static int pvremove_check(struct cmd_context *cmd, const char *name)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* is there a pv here already */
|
/* Is there a pv here already? */
|
||||||
if (!(pv = pv_read(cmd, name, NULL, NULL, 1)))
|
/* If not, this is an error unless you used -f. */
|
||||||
return 1;
|
if (!(pv = pv_read(cmd, name, NULL, NULL, 1))) {
|
||||||
|
if (arg_count(cmd, force_ARG))
|
||||||
|
return 1;
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* orphan ? */
|
/* orphan ? */
|
||||||
if (!pv->vg_name[0])
|
if (!pv->vg_name[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user