Exemplo n.º 1
0
bool
nfs3_transres (fh3trans &fht, void *objp, u_int32_t proc)
{
  switch (proc) {
    NFS_PROGRAM_3_APPLY_NONULL (transres);
  default:
    panic ("nfs3_transres: bad proc %d\n", proc);
  }
}
Exemplo n.º 2
0
void
nfs3_err (svccb *sbp, nfsstat3 status)
{
  assert (status);
  /* After JUKEBOX errors, FreeBSD resends requests with the same xid. */
  bool nocache = status == NFS3ERR_JUKEBOX;

  switch (sbp->proc ()) {
    NFS_PROGRAM_3_APPLY_NONULL (mkerr);
  default:
    panic ("nfs3_err: invalid proc %d\n", sbp->proc ());
  }
}
Exemplo n.º 3
0
bool
uvfs_transarg (uvfstrans &fht, void *objp, u_int32_t proc)
{
  bool ret = false;
  switch (proc) {
    UVFSPROG_1_APPLY_NONULL (transarg);
  default:
    panic ("uvfs_transarg: bad proc %d\n", proc);
  }
  switch (proc) {
    NFS_PROGRAM_3_APPLY_NONULL(stomparg);
  }
  return ret;
}
Exemplo n.º 4
0
bool
nfs3_transarg (fh3trans &fht, void *objp, u_int32_t proc)
{
  switch (proc) {
    NFS_PROGRAM_3_APPLY_NONULL (transarg);
  case NFSPROC_CLOSE:
    if (rpc_traverse (fht, *static_cast<nfs_fh3 *>(objp)))
      return true;
    if (!fht.err)
      fht.err = NFS3ERR_INVAL;
    return false;
    break;
  default:
    panic ("nfs3_transarg: bad proc %d\n", proc);
  }
}