* Thaw in the reverse order of freeze
*/
for (i = sync->fdCnt; i > 0; i--) {
+ Debug(LGPFX "Thawing fd=%d.\n", sync->fds[i-1]);
if (ioctl(sync->fds[i-1], FITHAW) == -1) {
+ Debug(LGPFX "Thaw failed for fd=%d.\n", sync->fds[i-1]);
err = SD_ERROR;
}
}
* Close in the reverse order of open
*/
for (i = sync->fdCnt; i > 0; i--) {
+ Debug(LGPFX "Closing fd=%d.\n", sync->fds[i-1]);
close(sync->fds[i-1]);
}
free(sync->fds);
}
}
- Debug(LGPFX "freezing path '%s'.\n", path);
+ Debug(LGPFX "freezing path '%s' (fd=%d).\n", path, fd);
if (ioctl(fd, FIFREEZE) == -1) {
int ioctlerr = errno;
/*
break;
}
} else {
- Debug(LGPFX "successfully froze '%s'.\n", path);
+ Debug(LGPFX "successfully froze '%s' (fd=%d).\n", path, fd);
if (!DynBuf_Append(&fds, &fd, sizeof fd)) {
if (ioctl(fd, FITHAW) == -1) {
Warning(LGPFX "failed to thaw '%s': %d (%s)\n",
*/
additionalError = VixTools_GetAdditionalError(requestMsg->opCode, err);
if (additionalError) {
- g_message("%s: additionalError = %u\n", __FUNCTION__, additionalError);
+ g_message("%s: command %u, additionalError = %u\n",
+ __FUNCTION__, requestMsg->opCode, additionalError);
} else {
- g_debug("%s: additionalError = %u\n", __FUNCTION__, additionalError);
+ g_debug("%s: command %u, additionalError = %u\n",
+ __FUNCTION__, requestMsg->opCode, additionalError);
}
abort: