+2003-08-27 Ion Badulescu <ion@guppy.limebrokerage.com>
+
+ * amd/ops_nfs.c (got_nfs_fh): make the error EACCES if we are
+ denied a filehandle by the server (used to be EIO)
+
2003-08-27 Erez Zadok <ezk@a-bsdi42.fsl.cs.sunysb.edu>
* conf/nfs_prot/nfs_prot_bsdi3.h: support na_uid and na_gid.
* SUCH DAMAGE.
*
*
- * $Id: ops_nfs.c,v 1.28 2003/08/25 23:49:49 ib42 Exp $
+ * $Id: ops_nfs.c,v 1.29 2003/08/27 15:24:32 ib42 Exp $
*
*/
dlog("got filehandle for %s:%s", fp->fh_fs->fs_host, fp->fh_path);
} else {
plog(XLOG_USER, "filehandle denied for %s:%s", fp->fh_fs->fs_host, fp->fh_path);
+ /*
+ * Force the error to be EACCES. It's debatable whether it should be
+ * ENOENT instead, but the server really doesn't give us any clues, and
+ * EACCES is more in line with the "filehandle denied" message.
+ */
+ fp->fh_error = EACCES;
}
/*
static int
-call_mountd(fh_cache *fp, u_long proc, fwd_fun f, wchan_t wchan)
+call_mountd(fh_cache *fp, u_long proc, fwd_fun fun, wchan_t wchan)
{
struct rpc_msg mnt_msg;
int len;
&fp->fh_sin,
&fp->fh_sin,
(opaque_t) ((long) fp->fh_id), /* cast to long needed for 64-bit archs */
- f);
+ fun);
} else {
error = -len;
}