Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/lkm nuke vfs examples - we have enough examples in ker...
details: https://anonhg.NetBSD.org/src/rev/1c3de9e73dd3
branches: trunk
changeset: 500385:1c3de9e73dd3
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Mon Dec 11 09:14:28 2000 +0000
description:
nuke vfs examples - we have enough examples in kernel sources
diffstat:
share/lkm/Makefile | 4 +-
share/lkm/vfs/Makefile | 49 -----------------
share/lkm/vfs/README | 98 -----------------------------------
share/lkm/vfs/module/Makefile | 75 ---------------------------
share/lkm/vfs/module/kernfsmod.c | 107 ---------------------------------------
5 files changed, 2 insertions(+), 331 deletions(-)
diffs (truncated from 361 to 300 lines):
diff -r 78c3f6a4c22b -r 1c3de9e73dd3 share/lkm/Makefile
--- a/share/lkm/Makefile Mon Dec 11 09:11:22 2000 +0000
+++ b/share/lkm/Makefile Mon Dec 11 09:14:28 2000 +0000
@@ -1,10 +1,10 @@
#
-# $NetBSD: Makefile,v 1.17 1999/08/21 06:30:12 simonb Exp $
+# $NetBSD: Makefile,v 1.18 2000/12/11 09:14:28 jdolecek Exp $
#
.include <bsd.own.mk> # for UNPRIVILEGED
-STUFF= README syscall vfs misc
+STUFF= README syscall misc
MKOBJ= no
install:
diff -r 78c3f6a4c22b -r 1c3de9e73dd3 share/lkm/vfs/Makefile
--- a/share/lkm/vfs/Makefile Mon Dec 11 09:11:22 2000 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-#
-# Makefile for sample loadable file system
-#
-# 25 May 93 Terry Lambert Original
-#
-# Copyright (c) 1993 Terrence R. Lambert.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by Terrence R. Lambert.
-# 4. The name Terrence R. Lambert may not be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY
-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# $NetBSD: Makefile,v 1.2 1997/10/13 11:20:58 lukem Exp $
-#
-
-SUBDIR= module
-
-load: _SUBDIRUSE
-
-unload: _SUBDIRUSE
-
-.include <bsd.subdir.mk>
-
-#
-# EOF -- This file has not been truncated.
-#
diff -r 78c3f6a4c22b -r 1c3de9e73dd3 share/lkm/vfs/README
--- a/share/lkm/vfs/README Mon Dec 11 09:11:22 2000 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,98 +0,0 @@
-#
-# Copyright (c) 1993 Terrence R. Lambert.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by Terrence R. Lambert.
-# 4. The name Terrence R. Lambert may not be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY
-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# $NetBSD: README,v 1.3 1997/10/13 11:21:02 lukem Exp $
-#
-
-1.0 Overview
-
- This is the README file for the sample loaded file system.
-
-
-2.0 Preparation
-
- To use this module, you must have a kernel the does *NOT*
- have an existing "kernfs" file system in it. To determine
- if your system has the "kernfs" file system in it, check
- the build file for your kernel (usually this file is named
- "/sys/i386/conf/GENERICISA") for the following:
-
- options KERNFS
-
- By default, NetBSD has this file system compiled as part
- of the kernel; if you wish to use this example with NetBSD
- you will have to remove this "options" line and rebuild
- your kernel.
-
-
-3.0 Directions
-
- To test the module, do the following:
-
- cd module
- make load
-
- A load message (the copyright) will be printed on the console.
-
- You must then add the following line to the "/etc/fstab" file:
-
- kernfs /kern kernfs rw 1 1
-
- At the root prompt, type the following:
-
- mkdir /kern
-
- Ignore the following error if it occurs:
-
- mkdir: /kern: File exists
-
- Again at the root prompt, type the following command:
-
- mount /kern
- cd /kern
- cat version
-
- This will verify that the module is working correctly.
-
-
-4.0 Recovering resources
-
- The file system consumes 8 pages of memory when loaded; it
- can be freed up by unloading it. To unload it, type the
- following from the directory this file is in:
-
- cd module
- make unload
-
- The file system will be unloaded by name.
-
-
-5.0 END OF DOCUMENT
diff -r 78c3f6a4c22b -r 1c3de9e73dd3 share/lkm/vfs/module/Makefile
--- a/share/lkm/vfs/module/Makefile Mon Dec 11 09:11:22 2000 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-#
-# Makefile for newsyscall
-#
-# 05 Jun 93 Terry Lambert Original
-#
-# Copyright (c) 1993 Terrence R. Lambert.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed by Terrence R. Lambert.
-# 4. The name Terrence R. Lambert may not be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY
-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# $NetBSD: Makefile,v 1.10 1999/11/10 00:44:22 wrstuden Exp $
-#
-
-SRCS=kernfsmod.c
-OBJS=$(SRCS:.c=.o)
-
-KSRCS=/sys/miscfs/kernfs/kernfs_vfsops.c /sys/miscfs/kernfs/kernfs_vnops.c
-KOBJS=kernfs_vfsops.o kernfs_vnops.o
-
-MODOBJ=combined.o
-
-KMOD=kernfsmod
-CFLAGS= -D_LKM -D_KERNEL -I/sys -I.
-
-all: $(MODOBJ)
-
-clean:
- rm -f vnode_if.[ch] $(OBJS) $(KOBJS) $(MODOBJ) $(KMOD)
-
-load:
- modload -o $(KMOD) -e$(KMOD) $(MODOBJ)
-
-unload:
- modunload -n $(KMOD)
-
-kernfs_vfsops.o: /sys/miscfs/kernfs/kernfs_vfsops.c vnode_if.h
- $(CC) $(CFLAGS) -c -o $@ $<
-
-kernfs_vnops.o: /sys/miscfs/kernfs/kernfs_vnops.c vnode_if.h
- $(CC) $(CFLAGS) -c -o $@ $<
-
-vnode_if.h: /sys/kern/vnode_if.sh /sys/kern/vnode_if.src
- sh /sys/kern/vnode_if.sh /sys/kern/vnode_if.src
-
-$(MODOBJ): $(OBJS) $(KOBJS)
- $(LD) -r -o $(MODOBJ) $(OBJS) $(KOBJS)
-
-#
-# EOF -- This file has not been truncated
-#
diff -r 78c3f6a4c22b -r 1c3de9e73dd3 share/lkm/vfs/module/kernfsmod.c
--- a/share/lkm/vfs/module/kernfsmod.c Mon Dec 11 09:11:22 2000 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,107 +0,0 @@
-/*
- * kernfsmod.c
- *
- * 05 Jun 93 Terry Lambert Original
- *
- * Copyright (c) 1993 Terrence R. Lambert.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Terrence R. Lambert.
- * 4. The name Terrence R. Lambert may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
- *
- * THIS SOFTWARE IS PROVIDED BY TERRENCE R. LAMBERT ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE TERRENCE R. LAMBERT BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $NetBSD: kernfsmod.c,v 1.5 1997/10/13 11:21:12 lukem Exp $
- */
-#define printf I_HATE_ANSI
-#include <stdio.h>
-#undef printf
-#include <sys/param.h>
-#include <sys/ioctl.h>
-#include <sys/systm.h>
-#include <sys/conf.h>
-#include <sys/mount.h>
-#include <sys/exec.h>
Home |
Main Index |
Thread Index |
Old Index