1
0
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:
Alasdair Kergon 2008-07-24 15:25:09 +00:00
parent 06e459df4b
commit 08c1745893
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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))) {