diff options
-rw-r--r-- | tools/pvcreate.c | 1 | ||||
-rw-r--r-- | tools/pvremove.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c index 766c9d37..20fcdfda 100644 --- a/tools/pvcreate.c +++ b/tools/pvcreate.c @@ -86,6 +86,7 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name) } if (!dev_test_excl(dev)) { + /* FIXME Detect whether device-mapper itself is still using it */ log_error("Can't open %s exclusively. Mounted filesystem?", name); return 0; diff --git a/tools/pvremove.c b/tools/pvremove.c index 5029fa33..e28eec48 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -93,6 +93,7 @@ static int pvremove_single(struct cmd_context *cmd, const char *pv_name, } if (!dev_test_excl(dev)) { + /* FIXME Detect whether device-mapper is still using the device */ log_error("Can't open %s exclusively - not removing. " "Mounted filesystem?", dev_name(dev)); goto error; |