diff --git a/libdm/ioctl/libdevmapper.c b/libdm/ioctl/libdevmapper.c index 17f23c583..20b70585a 100644 --- a/libdm/ioctl/libdevmapper.c +++ b/libdm/ioctl/libdevmapper.c @@ -25,6 +25,19 @@ #define ALIGNMENT sizeof(int) +static char *dm_cmd_list[] = { + "create", + "reload", + "remove", + "remove_all", + "suspend", + "resume", + "info", + "deps", + "rename", + "version" +}; + void dm_task_destroy(struct dm_task *dmt) { struct target *t, *n; @@ -325,6 +338,8 @@ int dm_task_run(struct dm_task *dmt) goto bad; } + log_debug("dm %s %s %s %s", dm_cmd_list[dmt->type], dmi->name, + dmi->uuid, dmt->newname ? dmt->newname : ""); if (ioctl(fd, command, dmi) < 0) { log_error("device-mapper ioctl cmd %d failed: %s", dmt->type, strerror(errno)); diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index e2676b1da..2a43e831c 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -119,8 +119,6 @@ int dm_task_set_name(struct dm_task *dmt, const char *name) return 0; } - log_debug("Setting name: %s", dmt->dev_name); - return 1; } @@ -136,8 +134,6 @@ int dm_task_set_uuid(struct dm_task *dmt, const char *uuid) return 0; } - log_debug("Setting uuid: %s", dmt->uuid); - return 1; }