diff options
author | sr | 2012-08-27 21:02:49 +0200 |
---|---|---|
committer | sr | 2012-08-27 21:02:49 +0200 |
commit | de01183aa40dbbd274e18f681d8a255a886f493e (patch) | |
tree | f614e764704aec26df15df68c633178064c60a41 /src/client | |
parent | [KERNEL] Make rtt threshold relative (diff) | |
download | dnbd3-de01183aa40dbbd274e18f681d8a255a886f493e.tar.gz dnbd3-de01183aa40dbbd274e18f681d8a255a886f493e.tar.xz dnbd3-de01183aa40dbbd274e18f681d8a255a886f493e.zip |
[KERNEL] Refactor and extend sysfs (add data the server will need in proxy mode)
[SERVER] Use MSG_MORE instead of cork/uncork to save two syscalls
[KERNEL] Fail-Counter for alt servers, ignore servers that fail too often
[KERNEL] Add new alt servers to list, instead of replacing the old list
[*] Add CMD_LATEST_RID to tell client about new revisions
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/client.c b/src/client/client.c index 57762cc..93aaeb7 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -170,7 +170,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_CLOSE, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (close, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (close, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } @@ -187,7 +187,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_SWITCH, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (switch, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (switch, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } @@ -205,7 +205,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_OPEN, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (connect, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (connect, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } @@ -242,7 +242,7 @@ int main(int argc, char *argv[]) const int ret = ioctl(fd, IOCTL_OPEN, &msg); if (ret < 0) { - printf("ERROR: ioctl not successful (config file, %s (%d))\n", strerror(ret), ret); + printf("ERROR: ioctl not successful (config file, %s (%d))\n", strerror(-ret), ret); exit(EXIT_FAILURE); } |