summaryrefslogtreecommitdiffstats
path: root/tools/pvremove.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2007-11-22 01:25:06 +0000
committerAlasdair Kergon <agk@redhat.com>2007-11-22 01:25:06 +0000
commit94e33a6ca34e1dced011988c7a5f2d6201a5377b (patch)
tree28f8f9d7829ec8acbea9d74f4d27a10602fe9050 /tools/pvremove.c
parentcd1525ac51d1a9ea5b82e436f3c676942ae55282 (diff)
downloadlvm2-94e33a6ca34e1dced011988c7a5f2d6201a5377b.tar.gz
lvm2-94e33a6ca34e1dced011988c7a5f2d6201a5377b.tar.xz
lvm2-94e33a6ca34e1dced011988c7a5f2d6201a5377b.zip
FIXMEs for case where dm itself has device open
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r--tools/pvremove.c1
1 files changed, 1 insertions, 0 deletions
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;