mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix incorrect checkin
This commit is contained in:
parent
1a44c009b0
commit
268e8dd406
@ -1361,15 +1361,15 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
|
|||||||
if (dmt->no_open_count)
|
if (dmt->no_open_count)
|
||||||
dmi->flags |= DM_SKIP_BDGET_FLAG;
|
dmi->flags |= DM_SKIP_BDGET_FLAG;
|
||||||
|
|
||||||
log_debug("dm %s %s %s%s%s %s%0" PRIu32 "%s%0" PRIu32
|
log_debug("dm %s %s %s%s%s %s%0.0d%s%0.0d"
|
||||||
"%s%c %.0llu %s [%u]",
|
"%s%c %.0llu %s [%u]",
|
||||||
_cmd_data_v4[dmt->type].name,
|
_cmd_data_v4[dmt->type].name,
|
||||||
dmi->name, dmi->uuid, dmt->newname ? " " : "",
|
dmi->name, dmi->uuid, dmt->newname ? " " : "",
|
||||||
dmt->newname ? dmt->newname : "",
|
dmt->newname ? dmt->newname : "",
|
||||||
dmt->major > 0 ? "(" : "",
|
dmt->major > 0 ? "(" : "",
|
||||||
dmt->major,
|
dmt->major > 0 ? dmt->major : 0,
|
||||||
dmt->major > 0 ? ":" : "",
|
dmt->major > 0 ? ":" : "",
|
||||||
dmt->minor,
|
dmt->minor > 0 ? dmt->minor : 0,
|
||||||
dmt->major > 0 ? ") " : "",
|
dmt->major > 0 ? ") " : "",
|
||||||
dmt->no_open_count ? 'N' : 'O',
|
dmt->no_open_count ? 'N' : 'O',
|
||||||
dmt->sector, dmt->message ? dmt->message : "",
|
dmt->sector, dmt->message ? dmt->message : "",
|
||||||
@ -1377,7 +1377,8 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
|
|||||||
#ifdef DM_IOCTLS
|
#ifdef DM_IOCTLS
|
||||||
if (ioctl(_control_fd, command, dmi) < 0) {
|
if (ioctl(_control_fd, command, dmi) < 0) {
|
||||||
if (errno == ENXIO && ((dmt->type == DM_DEVICE_INFO) ||
|
if (errno == ENXIO && ((dmt->type == DM_DEVICE_INFO) ||
|
||||||
(dmt->type == DM_DEVICE_MKNODES)))
|
(dmt->type == DM_DEVICE_MKNODES) ||
|
||||||
|
(dmt->type == DM_DEVICE_STATUS)))
|
||||||
dmi->flags &= ~DM_EXISTS_FLAG; /* FIXME */
|
dmi->flags &= ~DM_EXISTS_FLAG; /* FIXME */
|
||||||
else {
|
else {
|
||||||
if (_log_suppress)
|
if (_log_suppress)
|
||||||
|
Loading…
Reference in New Issue
Block a user