[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gluster-devel] how to reinstall a peer?
From: |
Emmanuel Dreyfus |
Subject: |
Re: [Gluster-devel] how to reinstall a peer? |
Date: |
Tue, 26 Feb 2013 18:01:27 +0100 |
User-agent: |
MacSOUP/2.7 (unregistered for 2229 days) |
Emmanuel Dreyfus <address@hidden> wrote:
> glusterd1-xdr.c:
> if (!xdr_string (xdrs, &objp->op_errstr, ~0))
> return FALSE;
How is this supposed to work? Here is below the NetBSD xdr_string()
implementation from libc. Even if objp->op_errstr is not NULL, the
maxsize argument set to 0 will cause it to always retrurn false. Does it
has another semantic in Linux?
bool_t
xdr_string(xdrs, cpp, maxsize)
XDR *xdrs;
char **cpp;
u_int maxsize;
{
(...)
sp = *cpp;
(...)
switch (xdrs->x_op) {
(...)
case XDR_ENCODE:
size = strlen(sp);
break;
(...)
if (size > maxsize) {
return (FALSE);
}
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
address@hidden
- [Gluster-devel] how to reinstall a peer?, Emmanuel Dreyfus, 2013/02/25
- Re: [Gluster-devel] how to reinstall a peer?, Vijay Bellur, 2013/02/25
- Re: [Gluster-devel] how to reinstall a peer?, Emmanuel Dreyfus, 2013/02/25
- Re: [Gluster-devel] how to reinstall a peer?, Vijay Bellur, 2013/02/25
- Re: [Gluster-devel] how to reinstall a peer?, Emmanuel Dreyfus, 2013/02/25
- Re: [Gluster-devel] how to reinstall a peer?,
Emmanuel Dreyfus <=
- Re: [Gluster-devel] how to reinstall a peer?, Emmanuel Dreyfus, 2013/02/27
- Re: [Gluster-devel] how to reinstall a peer?, krish, 2013/02/27
- Re: [Gluster-devel] how to reinstall a peer?, Emmanuel Dreyfus, 2013/02/27
- Re: [Gluster-devel] how to reinstall a peer?, Krishnan Parthasarathi, 2013/02/27