mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-01 18:50:41 +03:00
reinstate lost FIXME
- only if kernel gives the info, not to be worked out in userspace - with lvm.conf option to enable/disable the check
This commit is contained in:
parent
06e459df4b
commit
08c1745893
@ -37,6 +37,8 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name)
|
||||
struct device *dev;
|
||||
uint64_t md_superblock;
|
||||
|
||||
/* FIXME Check partition type is LVM unless --force is given */
|
||||
|
||||
/* Is there a pv here already? */
|
||||
/* FIXME Use partial mode here? */
|
||||
pv = pv_read(cmd, name, NULL, NULL, 0);
|
||||
|
@ -26,6 +26,8 @@ static int pvremove_check(struct cmd_context *cmd, const char *name)
|
||||
{
|
||||
struct physical_volume *pv;
|
||||
|
||||
/* FIXME Check partition type is LVM unless --force is given */
|
||||
|
||||
/* Is there a pv here already? */
|
||||
/* If not, this is an error unless you used -f. */
|
||||
if (!(pv = pv_read(cmd, name, NULL, NULL, 1))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user