1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

FIXMEs for case where dm itself has device open

This commit is contained in:
Alasdair Kergon 2007-11-22 01:25:06 +00:00
parent edffc52927
commit f2fab0677b
2 changed files with 2 additions and 0 deletions

View File

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

View File

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