diff options
author | julian <julian@FreeBSD.org> | 1999-08-25 22:50:12 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-08-25 22:50:12 +0000 |
commit | dfe1d4fd901ddd183cf53def5de6ba8080b889a3 (patch) | |
tree | 1976e8011cace108124c12694db7fc0352144954 /sys/miscfs | |
parent | 101808e3412aee965771632de19acdfdee0d8794 (diff) | |
download | FreeBSD-src-dfe1d4fd901ddd183cf53def5de6ba8080b889a3.zip FreeBSD-src-dfe1d4fd901ddd183cf53def5de6ba8080b889a3.tar.gz |
Make a place to store the devfs hook for the block device, as the same
specinfo is used to identify both raw and block version sof a device.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_tree.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index 53cce84..1e0eed4 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: devfs_tree.c,v 1.60 1999/08/24 20:30:15 julian Exp $ + * $Id: devfs_tree.c,v 1.61 1999/08/25 04:55:18 julian Exp $ */ @@ -1058,11 +1058,10 @@ devfs_add_to_tree(dev_t dev, uid_t uid, gid_t gid, int perms) uid, gid, perms, "%s", dev->si_name ); /* XXX HACK .. name may not start in 'r' */ - /* Also Hack.. no place to store Block cookie */ if ((devsw->d_bmaj != -1) && (dev->si_name[0] == 'r') && ((devsw->d_flags & D_TYPEMASK) == D_DISK)) { - /* dev->si_devfs =*/ devfs_add_devswf(devsw, minor(dev), DV_BLK, + dev->si_bdevfs = devfs_add_devswf(devsw, minor(dev), DV_BLK, uid, gid, perms, dev->si_name + 1); } } |