slice_device.c: permissions changes for SLICE devices
vn.c: change time of SYSINIT scheduling. wd.c don't revert to fully closed state. ( may require more) all in SLICE mode only.
This commit is contained in:
parent
bcdc5b19bf
commit
3f6622d982
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: slice_device.c,v 1.2 1998/04/22 10:25:10 julian Exp $
|
||||
* $Id: slice_device.c,v 1.3 1998/04/22 19:27:52 julian Exp $
|
||||
*/
|
||||
#define DIAGNOSTIC 1
|
||||
|
||||
@ -115,9 +115,9 @@ RR;
|
||||
* Add an entry in the devfs for it. Possibly should happen later.
|
||||
*/
|
||||
slice->devfs_ctoken = devfs_add_devswf(&slice_cdevsw, unit, DV_CHR,
|
||||
UID_ROOT, GID_KMEM, 0600, "r%s", name ? name : "-");
|
||||
UID_ROOT, GID_OPERATOR, 0600, "r%s", name ? name : "-");
|
||||
slice->devfs_btoken = devfs_add_devswf(&slice_bdevsw, unit, DV_BLK,
|
||||
UID_ROOT, GID_KMEM, 0600, "%s", name ? name : "-");
|
||||
UID_ROOT, GID_OPERATOR, 0600, "%s", name ? name : "-");
|
||||
/* XXX link this node into upper list of caller */
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
* from: Utah Hdr: vn.c 1.13 94/04/02
|
||||
*
|
||||
* from: @(#)vn.c 8.6 (Berkeley) 4/1/94
|
||||
* $Id: vn.c,v 1.56 1998/04/19 23:31:21 julian Exp $
|
||||
* $Id: vn.c,v 1.57 1998/04/22 10:25:12 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -892,11 +892,10 @@ vn_drvinit(void *unused)
|
||||
vn->slice->probeinfo.typespecific = NULL;
|
||||
vn->slice->probeinfo.type = NULL;
|
||||
}
|
||||
#define CDEV_MAJOR 20 /* not really needed */
|
||||
#endif /* SLICE */
|
||||
}
|
||||
|
||||
SYSINIT(vndev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,vn_drvinit,NULL)
|
||||
SYSINIT(vndev, SI_SUB_DRIVERS, SI_ORDER_ANY, vn_drvinit, NULL)
|
||||
|
||||
#ifdef SLICE
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.161 1998/04/22 19:27:53 julian Exp $
|
||||
* $Id: wd.c,v 1.162 1998/04/23 22:09:55 julian Exp $
|
||||
*/
|
||||
|
||||
/* TODO:
|
||||
@ -2716,7 +2716,9 @@ wdsopen(void *private, int flags, int mode, struct proc *p)
|
||||
du->dk_state = OPEN;
|
||||
du->dk_flags &= ~DKFL_BADSCAN;
|
||||
} else {
|
||||
du->dk_state = CLOSED;
|
||||
/* <luoqi@watermarkgroup.com> suggests I remove this */
|
||||
/* du->dk_state = CLOSED;*/
|
||||
/* du->dk_state = WANTOPEN; */ /* maybe this? */
|
||||
}
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user