/*
- * Copyright (C) 1997-2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 1997-2008 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
#include "net.h"
#include "server.cmdline.h"
#include "vss.h"
+#include "list.h"
#include "send.h"
#include "ipc.h"
#include "fd.h"
return -ERRNO_TO_PARA_ERROR(errno);
afsss = AFS_SOCKET_READY;
if (iov.iov_len != sizeof(buf))
- return -E_SHORT_AFS_READ;
+ return -E_AFS_SHORT_READ;
*code = *(uint32_t*)buf;
*data = *(uint32_t*)(buf + 4);
for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
struct stat statbuf;
struct timeval now;
+ mmd->afd.afhi.chunk_table = NULL;
ret = recv_afs_msg(&passed_fd, &afs_code, &afs_data);
if (ret < 0)
goto err;
tv_add(&now, &announce_tv, &data_send_barrier);
return;
err:
+ free(mmd->afd.afhi.chunk_table);
if (passed_fd >= 0)
close(passed_fd);
- PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
+ PARA_ERROR_LOG("%s\n", para_strerror(-ret));
mmd->new_vss_status_flags = VSS_NEXT;
}
}
/*
* We call the send function also in case of empty chunks as they
- * might have still some data queued which can be sent in this case.
- */
+ * might have still some data queued which can be sent in this case.
+ */
if (!mmd->chunks_sent) {
struct timeval tmp;
gettimeofday(&mmd->stream_start, NULL);