mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-23 21:35:29 +03:00
FIXMEs for case where dm itself has device open
This commit is contained in:
parent
edffc52927
commit
f2fab0677b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user