Fix a goof in the #ifdef DEVFS case which was found by inspection,
it may have made things very difficult for people if they tried to used DEVFS.
This commit is contained in:
parent
c4444aeb08
commit
e994c55884
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46633
@ -43,7 +43,7 @@
|
||||
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
|
||||
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
|
||||
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
|
||||
* $Id: subr_diskslice.c,v 1.60 1998/12/04 22:54:51 archie Exp $
|
||||
* $Id: subr_diskslice.c,v 1.61 1998/12/10 19:57:00 eivind Exp $
|
||||
*/
|
||||
|
||||
#include "opt_devfs.h"
|
||||
@ -811,7 +811,7 @@ dsopen(dname, dev, mode, flags, sspp, lp, strat, setgeom, cdevsw)
|
||||
&& sp->ds_size != 0) {
|
||||
mynor = minor(dev1);
|
||||
sp->ds_bdev =
|
||||
devfs_add_devswf(bdevsw, mynor, DV_BLK,
|
||||
devfs_add_devswf(cdevsw, mynor, DV_BLK,
|
||||
UID_ROOT, GID_OPERATOR, 0640,
|
||||
"%s", sname);
|
||||
sp->ds_cdev =
|
||||
|
Loading…
Reference in New Issue
Block a user