g_gate_log
g_gate_log(LOG_NOTICE, "%s: started!", __func__);
g_gate_log(LOG_ERR, "%s: Cannot alloc buffer.", __func__);
g_gate_log(LOG_DEBUG, "buffer too small. new size: %u",
g_gate_log(LOG_NOTICE, "Unknown gctl_cmd: %i",
g_gate_log(LOG_DEBUG, "Sent hdr packet.");
g_gate_log(LOG_ERR, "Lost connection 1.");
g_gate_log(LOG_ERR, "Lost connection 2 (%zd != %zd).",
g_gate_log(LOG_DEBUG, "Sent %zd bytes (offset=%"
g_gate_log(LOG_DEBUG, "%s: Died.", __func__);
g_gate_log(LOG_NOTICE, "%s: started!", __func__);
g_gate_log(LOG_ERR, "%s: Cannot alloc buffer.", __func__);
g_gate_log(LOG_ERR, "Lost connection 3.");
g_gate_log(LOG_DEBUG, "Received hdr packet.");
g_gate_log(LOG_ERR, "Received too big response: %zd",
g_gate_log(LOG_DEBUG, "Received data packet.");
g_gate_log(LOG_ERR, "Lost connection 4.");
g_gate_log(LOG_DEBUG, "Received %d bytes (offset=%"
g_gate_log(LOG_DEBUG, "%s: Died.", __func__);
g_gate_log(LOG_DEBUG, "Invalid IP/host name: %s.", host);
g_gate_log(LOG_DEBUG, "Cannot open socket: %s.",
g_gate_log(LOG_DEBUG, "Cannot connect to server: %s.",
g_gate_log(LOG_INFO, "Connected to the server: %s:%d.", host, port);
g_gate_log(LOG_DEBUG, "Sending version packet.");
g_gate_log(LOG_DEBUG, "Error while sending version packet: %s.",
g_gate_log(LOG_DEBUG, "Error while receiving data: %s.",
g_gate_log(LOG_DEBUG, "Version verification problem: %s.",
g_gate_log(LOG_DEBUG, "Sending initial packet.");
g_gate_log(LOG_DEBUG, "Path name too long.");
g_gate_log(LOG_DEBUG, "Error while sending initial packet: %s.",
g_gate_log(LOG_DEBUG, "Receiving initial packet.");
g_gate_log(LOG_DEBUG, "Error while receiving data: %s.",
g_gate_log(LOG_DEBUG, "Error from server: %s.",
g_gate_log(LOG_DEBUG, "Received initial packet.");
g_gate_log(LOG_NOTICE, "Disconnected [%s %s]. Connecting...",
g_gate_log(LOG_NOTICE, "Connecting [%s %s]...", host,
g_gate_log(LOG_DEBUG, "Sending initial packet.");
g_gate_log(LOG_INFO, "Listen on port: %d.", port);
g_gate_log(LOG_DEBUG, "Added %s/%u %s %s to exports list.",
g_gate_log(LOG_INFO, "Reading exports file (%s).", exports_file);
g_gate_log(LOG_INFO, "Exporting %u object(s).", objs);
g_gate_log(LOG_WARNING, "Read-only access requested, "
g_gate_log(LOG_WARNING, "Write-only access requested, "
g_gate_log(LOG_WARNING, "Read-write access requested, "
g_gate_log(LOG_WARNING, "Read-write access requested, "
g_gate_log(LOG_WARNING, "Direct IO requested, "
g_gate_log(LOG_ERR, "old %s and new %s: "
g_gate_log(LOG_ERR, "Cannot open %s: %s.", ex->e_path,
g_gate_log(LOG_DEBUG, "exports[%s]: IP mismatch.",
g_gate_log(LOG_DEBUG, "exports[%s]: Path mismatch.",
g_gate_log(LOG_WARNING, "Unauthorized connection from: %s.",
g_gate_log(LOG_NOTICE,
g_gate_log(LOG_DEBUG, "Connection created [%s, %s].", ip2str(ip),
g_gate_log(LOG_WARNING,
g_gate_log(LOG_WARNING,
g_gate_log(LOG_DEBUG, "Connection added [%s, %s].", ip2str(ip),
g_gate_log(LOG_DEBUG, "Connection removed [%s %s].",
g_gate_log(LOG_ERR, "Cannot fork: %s.", strerror(errno));
g_gate_log(LOG_DEBUG, "Process created [%s].", conn->c_path);
g_gate_log(LOG_WARNING, "Cannot send initial packet: %s.",
g_gate_log(LOG_DEBUG, "Cannot allocate %zu bytes.", size);
g_gate_log(LOG_NOTICE, "%s: started [%s]!", __func__, conn->c_path);
g_gate_log(LOG_DEBUG, "Process %u exiting.", getpid());
g_gate_log(LOG_DEBUG, "Received hdr packet.");
g_gate_log(LOG_DEBUG, "%s: offset=%" PRIu64 " length=%" PRIu32,
g_gate_log(LOG_DEBUG, "Waiting for %u bytes of data...",
g_gate_log(LOG_NOTICE, "%s: started [%s]!", __func__, conn->c_path);
g_gate_log(LOG_DEBUG, "%s: offset=%" PRIu64 " length=%" PRIu32,
g_gate_log(LOG_DEBUG, "Unsupported request: %i", req->r_cmd);
g_gate_log(LOG_ERR, "Disk error: %s", strerror(errno));
g_gate_log(LOG_NOTICE, "%s: started [%s]!", __func__, conn->c_path);
g_gate_log(LOG_DEBUG, "%s: offset=%" PRIu64 " length=%" PRIu32,
g_gate_log(LOG_DEBUG, "Sent hdr packet.");
g_gate_log(LOG_DEBUG,
g_gate_log(LOG_INFO, "Connection from: %s.", ip2str(ip));
g_gate_log(LOG_DEBUG, "Receiving version packet.");
g_gate_log(LOG_WARNING, "Malformed version packet.");
g_gate_log(LOG_DEBUG, "Version packet received.");
g_gate_log(LOG_WARNING, "Invalid magic field.");
g_gate_log(LOG_WARNING, "Version %u is not supported.",
g_gate_log(LOG_DEBUG, "Receiving initial packet.");
g_gate_log(LOG_WARNING, "Malformed initial packet.");
g_gate_log(LOG_DEBUG, "Initial packet received.");
g_gate_log(LOG_DEBUG, "Found existing connection (token=%lu).",
g_gate_log(LOG_DEBUG, "New connection created (token=%lu).",
g_gate_log(LOG_DEBUG, "Worker created: %u.", getpid());
g_gate_log(LOG_ERR, "setsockopt(SO_SNDTIMEO) error: %s.",
g_gate_log(LOG_ERR, "setsockopt(SO_RCVTIMEO) error: %s.",
void g_gate_log(int priority, const char *message, ...);