Exemplo n.º 1
0
bool_t
xdr_diropargs (XDR *xdrs, diropargs *objp)
{
	 if (!xdr_nfs_fh (xdrs, &objp->dir))
		 return FALSE;
	 if (!xdr_filename (xdrs, &objp->name))
		 return FALSE;
	return TRUE;
}
Exemplo n.º 2
0
bool_t
xdr_diropargs (XDR *xdrs, diropargs *objp)
{
	 register long *buf;

	 if (!xdr_nfsfhandle (xdrs, objp->dir))
		 return FALSE;
	 if (!xdr_filename (xdrs, &objp->name))
		 return FALSE;
	return TRUE;
}
Exemplo n.º 3
0
bool_t
xdr_request (XDR *xdrs, request *objp)
{
	register int32_t *buf;

	 if (!xdr_filename (xdrs, &objp->name))
		 return FALSE;
	 if (!xdr_int (xdrs, &objp->seek_bytes))
		 return FALSE;
	return TRUE;
}
Exemplo n.º 4
0
static bool
xdr_putentry3 (XDR *x, afsnode *n, filename name, u_int32_t cookie)
{
  return
    // entry * (non-null):
    xdr_putint (x, 1)
    // uint64 fileid:
    && xdr_puthyper (x, n->ino)
    // filename name:
    && xdr_filename (x, &name)
    // uint64 cookie:
    && xdr_puthyper (x, cookie);
}
Exemplo n.º 5
0
bool_t
xdr_entry (XDR *xdrs, entry *objp)
{
	 if (!xdr_u_int (xdrs, &objp->fileid))
		 return FALSE;
	 if (!xdr_filename (xdrs, &objp->name))
		 return FALSE;
	 if (!xdr_nfscookie (xdrs, objp->cookie))
		 return FALSE;
	 if (!xdr_pointer (xdrs, (char **)&objp->nextentry, sizeof (entry), (xdrproc_t) xdr_entry))
		 return FALSE;
	return TRUE;
}
Exemplo n.º 6
0
bool_t
xdr_diropargs(XDR *xdrs, nfsdiropargs *objp)
{
  if (amuDebug(D_XDRTRACE))
    plog(XLOG_DEBUG, "xdr_diropargs:");

  if (!xdr_nfs_fh(xdrs, &objp->da_fhandle)) {
    return (FALSE);
  }
  if (!xdr_filename(xdrs, &objp->da_name)) {
    return (FALSE);
  }
  return (TRUE);
}
Exemplo n.º 7
0
bool_t
xdr_diropargs(XDR *xdrs, diropargs *objp)
{

	 register long *buf;

	 if (!xdr_nfs_fh(xdrs, &objp->dir)) {
		 return (FALSE);
	 }
	 if (!xdr_filename(xdrs, &objp->name)) {
		 return (FALSE);
	 }
	return (TRUE);
}
Exemplo n.º 8
0
/* For correctness, this must *NOT* return attributes (since we are
 * trying to defeat all kernel attribute and name caching).  Note also
 * that the revocation/redirect mechanism also relies on readdirplus
 * not returning file handles or attributes. */
static bool
xdr_putentryplus3 (XDR *x, afsnode *n, filename name, u_int32_t cookie)
{
  return
    // entry * (non-null):
    xdr_putint (x, 1)
    // uint64 fileid:
    && xdr_puthyper (x, n->ino)
    // filename name:
    && xdr_filename (x, &name)
    // nfscookie cookie:
    && xdr_puthyper (x, cookie)
    // post_op_attr name_attributes;
    && xdr_putint (x, 0)
    // post_op_fh3 name_handle;
    && xdr_putint (x, 0);
}
Exemplo n.º 9
0
bool_t
xdr_entry(XDR *xdrs, entry *objp)
{

	if (!xdr_u_int(xdrs, &objp->fileid))
		return (FALSE);
	if (!xdr_filename(xdrs, &objp->name))
		return (FALSE);
	if (!xdr_nfscookie(xdrs, objp->cookie))
		return (FALSE);
	{
	entry **pp = &objp->nextentry;
	if (!xdr_pointer(xdrs, (char **)pp, sizeof (entry), (xdrproc_t) xdr_entry))
		return (FALSE);
	}
	return (TRUE);
}
Exemplo n.º 10
0
bool_t
xdr_entry(XDR *xdrs, nfsentry *objp)
{
  if (amuDebug(D_XDRTRACE))
    plog(XLOG_DEBUG, "xdr_entry:");

  if (!xdr_u_int(xdrs, &objp->ne_fileid)) {
    return (FALSE);
  }
  if (!xdr_filename(xdrs, &objp->ne_name)) {
    return (FALSE);
  }
  if (!xdr_nfscookie(xdrs, objp->ne_cookie)) {
    return (FALSE);
  }
  if (!xdr_pointer(xdrs, (char **) &objp->ne_nextentry, sizeof(nfsentry), (XDRPROC_T_TYPE) xdr_entry)) {
    return (FALSE);
  }
  return (TRUE);
}
Exemplo n.º 11
0
bool_t
xdr_entry(XDR *xdrs, entry *objp)
{

	 register long *buf;

	 if (!xdr_u_int(xdrs, &objp->fileid)) {
		 return (FALSE);
	 }
	 if (!xdr_filename(xdrs, &objp->name)) {
		 return (FALSE);
	 }
	 if (!xdr_nfscookie(xdrs, objp->cookie)) {
		 return (FALSE);
	 }
	 if (!xdr_pointer(xdrs, (char **)&objp->nextentry, sizeof(entry), (xdrproc_t)xdr_entry)) {
		 return (FALSE);
	 }
	return (TRUE);
}