Subject: Executing block devices
To: None <tech-kern@netbsd.org>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 09/20/1999 16:07:04
Hi,

triggered by a discussion on alt.sysadmin.recovery, I've implemented
executing block disk devices. Works fine with (i386) wd0b, didn't 
work with fd0a:

Index: kern_exec.c
===================================================================
RCS file: /cvsroot/syssrc/sys/kern/kern_exec.c,v
retrieving revision 1.102
diff -u -r1.102 kern_exec.c
--- kern_exec.c 1999/08/09 02:42:20     1.102
+++ kern_exec.c 1999/09/20 13:51:41
@@ -107,7 +107,7 @@
        epp->ep_vp = vp = ndp->ni_vp;
 
        /* check access and type */
-       if (vp->v_type != VREG) {
+       if (vp->v_type != VREG && vp->v_type != VBLK) {
                error = EACCES;
                goto bad1;
        }

- do we want this?
- why doesn't it work with the floppy driver?

Regards,
	-is
-- 
 * Progress (n.): The process through which Usenet has evolved from
   smart people in front of dumb terminals to dumb people in front of
   smart terminals.  -- obs@burnout.demon.co.uk (obscurity)