1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Ignore open hidden LVs when checking if deactivation is OK.

This commit is contained in:
Alasdair Kergon 2004-03-26 19:13:39 +00:00
parent b65b777d2a
commit c1f5052199

View File

@ -592,7 +592,7 @@ int lv_deactivate(struct cmd_context *cmd, const char *lvid_s)
if (!info.exists)
return 1;
if (info.open_count) {
if (info.open_count && (lv->status & VISIBLE_LV)) {
log_error("LV %s/%s in use: not removing", lv->vg->name,
lv->name);
return 0;