[BusyBox-cvs] busybox/util-linux nfsmount.c,1.23,1.24
Erik Andersen
andersen at codepoet.org
Wed Dec 11 04:04:29 UTC 2002
Update of /var/cvs/busybox/util-linux
In directory winder:/tmp/cvs-serv9769/util-linux
Modified Files:
nfsmount.c
Log Message:
Eliminate dependancy on kernel header files. Naughty naughty.
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
-Erik
Index: nfsmount.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/nfsmount.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- nfsmount.c 26 Jul 2001 14:26:53 -0000 1.23
+++ nfsmount.c 11 Dec 2002 04:04:26 -0000 1.24
@@ -50,8 +50,55 @@
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
-#include <linux/nfs.h> /* For the kernels nfs stuff */
#include "nfsmount.h"
+
+
+/*
+ * NFS stats. The good thing with these values is that NFSv3 errors are
+ * a superset of NFSv2 errors (with the exception of NFSERR_WFLUSH which
+ * no-one uses anyway), so we can happily mix code as long as we make sure
[...25 lines suppressed...]
+ NFSERR_DQUOT = 69, /* v2 v3 */
+ NFSERR_STALE = 70, /* v2 v3 */
+ NFSERR_REMOTE = 71, /* v2 v3 */
+ NFSERR_WFLUSH = 99, /* v2 */
+ NFSERR_BADHANDLE = 10001, /* v3 */
+ NFSERR_NOT_SYNC = 10002, /* v3 */
+ NFSERR_BAD_COOKIE = 10003, /* v3 */
+ NFSERR_NOTSUPP = 10004, /* v3 */
+ NFSERR_TOOSMALL = 10005, /* v3 */
+ NFSERR_SERVERFAULT = 10006, /* v3 */
+ NFSERR_BADTYPE = 10007, /* v3 */
+ NFSERR_JUKEBOX = 10008 /* v3 */
+};
+
+#define NFS_PROGRAM 100003
+
+
#ifndef NFS_FHSIZE
static const int NFS_FHSIZE = 32;
More information about the busybox-cvs
mailing list