Subject: Re: Executing block devices
To: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 09/20/1999 16:28:03
On Mon, Sep 20, 1999 at 04:07:04PM +0200, Ignatios Souvatzis wrote:
> 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?

I guess the purpose is to drop an executable with dd on a media, and then
just exec /dev/fd0a ?

> - why doesn't it work with the floppy driver?

What was the error ?

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--