some patches

Nickolai Zeldovich kolya at mit.edu
Mon Dec 25 08:42:16 CET 2000


Just a couple of patches I've applied here -- first one adds "df"
as an alias for "diskfree" to fs, which emulates the behavior of
Transarc's fs. The second ensures that all mandatory arguments are
actually filled (otherwise "pts createu" creates a user using some
random stack garbage).

The third patch fixes configuration on FreeBSD 4.2-RELEASE; since
vnode_if.h is auto-generated, there is no sys/vnode_if.h, and
sys/vnode.h has an #include "vnode_if.h". This shouldn't break
NetBSD either, which has an #include <sys/vnode_if.h> in
sys/vnode.h.

-- kolya

--- appl/fs/fs.c	2000/10/03 00:07:34	1.88
+++ appl/fs/fs.c	2000/12/25 07:41:41
@@ -100,6 +100,7 @@
     {"cleanacl",       empty_cmd,	"clear out numeric acl-entries"},
     {"copyacl",        copyacl_cmd,	"copy acl"},
     {"diskfree",       diskfree_cmd,	"show free partition space"},
+    {"df"},
     {"examine",        examine_cmd,	"examine volume status"},
     {"flush",          flush_cmd,	"remove file from cache"},
     {"flushvolume",    flushvolume_cmd,	"remove volumedata (and files in volume) from cache"},

--- lib/ko/agetarg.c	2000/10/02 22:42:26	1.4
+++ lib/ko/agetarg.c	2000/12/25 07:41:42
@@ -519,6 +519,14 @@
 	}
     }
     *optind = i;
+
+    for(i = swcount; args[i].type != aarg_end; i++) {
+	if (args[i].mandatoryp == aarg_mandatory) {
+	    *optind = i;
+	    return AARG_ERR_NO_ARG;
+	}
+    }
+
     return 0;
 }
 

--- configure.in	2000/12/21 22:14:44	1.460
+++ configure.in	2000/12/25 07:41:12
@@ -1301,7 +1301,6 @@
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/vnode.h>
-#include <sys/vnode_if.h>
 ],
 vop_fsync_args,
 int,
@@ -1311,7 +1310,6 @@
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/vnode.h>
-#include <sys/vnode_if.h>
 ],
 vop_putpages_args,
 int,





More information about the Arla-drinkers mailing list