]> sourceware.org Git - dm.git/commitdiff
Fix strncmps.
authorAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 18:17:36 +0000 (18:17 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 18:17:36 +0000 (18:17 +0000)
lib/ioctl/libdm-iface.c

index f94ceca5ef0716a0eecd5d4688d13ac49f1562ca..1766ffd8cc9f6b5342bc243dec91f13ea34c94a8 100644 (file)
@@ -1361,15 +1361,15 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
        if (dmt->no_open_count)
                dmi->flags |= DM_SKIP_BDGET_FLAG;
 
-       log_debug("dm %s %s %s%s%s %s%0.0d%s%0.0d"
+       log_debug("dm %s %s %s%s%s %s%0" PRIu32 "%s%0" PRIu32
                  "%s%c %.0llu %s [%u]",
                  _cmd_data_v4[dmt->type].name,
                  dmi->name, dmi->uuid, dmt->newname ? " " : "",
                  dmt->newname ? dmt->newname : "",
                  dmt->major > 0 ? "(" : "",
-                 dmt->major > 0 ? dmt->major : 0,
+                 dmt->major,
                  dmt->major > 0 ? ":" : "",
-                 dmt->minor > 0 ? dmt->minor : 0,
+                 dmt->minor,
                  dmt->major > 0 ? ") " : "",
                  dmt->no_open_count ? 'N' : 'O',
                  dmt->sector, dmt->message ? dmt->message : "",
@@ -1377,8 +1377,7 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
 #ifdef DM_IOCTLS
        if (ioctl(_control_fd, command, dmi) < 0) {
                if (errno == ENXIO && ((dmt->type == DM_DEVICE_INFO) ||
-                                      (dmt->type == DM_DEVICE_MKNODES) ||
-                                      (dmt->type == DM_DEVICE_STATUS)))
+                                      (dmt->type == DM_DEVICE_MKNODES)))
                        dmi->flags &= ~DM_EXISTS_FLAG;  /* FIXME */
                else {
                        if (_log_suppress)
@@ -1408,6 +1407,8 @@ int dm_task_run(struct dm_task *dmt)
                return _dm_task_run_v1(dmt);
 #endif
 
+dm_task_skip_lockfs(dmt); // AGK TEMP
+
        if ((unsigned) dmt->type >=
            (sizeof(_cmd_data_v4) / sizeof(*_cmd_data_v4))) {
                log_error("Internal error: unknown device-mapper task %d",
This page took 0.02876 seconds and 5 git commands to generate.