1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

debug: add debug message

Since we leave error printing on the called of deactivation,
at least put in debug log for this case.
This commit is contained in:
Zdenek Kabelac 2014-09-24 10:03:55 +02:00
parent edb3902c25
commit bc5031c283

View File

@ -2160,8 +2160,12 @@ int lv_deactivate(struct cmd_context *cmd, const char *lvid_s, const struct logi
r = _lv_deactivate(lv);
critical_section_dec(cmd, "deactivated");
if (!lv_info(cmd, lv, 0, &info, 0, 0) || info.exists)
if (!lv_info(cmd, lv, 0, &info, 0, 0) || info.exists) {
/* Turn into log_error, but we do not log error */
log_debug_activation("Deactivated volume is still %s present.",
display_lvname(lv));
r = 0;
}
out:
if (lv_to_free) {
lv_release_replicator_vgs(lv_to_free);