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

lvmpolld-client.c: use lvmpolld debug class where appropriate

This commit is contained in:
Ondrej Kozina 2015-05-12 16:28:42 +02:00
parent 2ec51e6185
commit 8da7915222

View File

@ -263,18 +263,22 @@ int lvmpolld_poll_init(const struct cmd_context *cmd, const struct poll_operatio
} }
if (parms->lv_type & PVMOVE) { if (parms->lv_type & PVMOVE) {
log_verbose("lvmpolld: Requesting pvmove%s", parms->aborting ? " abort." : "."); log_debug_lvmpolld("Asking lvmpolld for pvmove%s on %s/%s.",
parms->aborting ? " abort" : "", id->vg_name, id->lv_name);
r = _process_poll_init(cmd, LVMPD_REQ_PVMOVE, id, parms); r = _process_poll_init(cmd, LVMPD_REQ_PVMOVE, id, parms);
} else if (parms->lv_type & CONVERTING) { } else if (parms->lv_type & CONVERTING) {
log_verbose("lvmpolld: Requesting convert mirror."); log_debug_lvmpolld("Asking lvmpolld for mirror conversion on %s/%s.",
id->vg_name, id->lv_name);
r = _process_poll_init(cmd, LVMPD_REQ_CONVERT, id, parms); r = _process_poll_init(cmd, LVMPD_REQ_CONVERT, id, parms);
} else if (parms->lv_type & MERGING) { } else if (parms->lv_type & MERGING) {
if (parms->lv_type & SNAPSHOT) { if (parms->lv_type & SNAPSHOT) {
log_verbose("lvmpolld: Requesting snapshot merge."); log_debug_lvmpolld("Asking lvmpolld for snapshot merge on %s/%s.",
id->vg_name, id->lv_name);
r = _process_poll_init(cmd, LVMPD_REQ_MERGE, id, parms); r = _process_poll_init(cmd, LVMPD_REQ_MERGE, id, parms);
} }
else if (parms->lv_type & THIN_VOLUME) { else if (parms->lv_type & THIN_VOLUME) {
log_verbose("lvmpolld: Thin snapshot merge."); log_debug_lvmpolld("Asking lvmpolld for thin snapshot merge on %s/%s.",
id->vg_name, id->lv_name);
r = _process_poll_init(cmd, LVMPD_REQ_MERGE_THIN, id, parms); r = _process_poll_init(cmd, LVMPD_REQ_MERGE_THIN, id, parms);
} }
else { else {