Can somebody please try if this fixes MFS ? Poul-Henning
Index: ufs/mfs/mfs_vfsops.c =================================================================== RCS file: /home/ncvs/src/sys/ufs/mfs/mfs_vfsops.c,v retrieving revision 1.63 diff -u -r1.63 mfs_vfsops.c --- mfs_vfsops.c 1999/05/14 20:40:23 1.63 +++ mfs_vfsops.c 1999/05/23 09:22:20 @@ -62,6 +62,10 @@ MALLOC_DEFINE(M_MFSNODE, "MFS node", "MFS vnode private part"); +/* XXX: this is bogus, should be (NUMCDEV-1) or use dynamic allocation */ +#define CDEV_MAJOR 255 +#define BDEV_MAJOR 255 + #ifdef MFS_ROOT static caddr_t mfs_rootbase; /* address of mini-root in kernel virtual memory */ static u_long mfs_rootsize; /* size of mini-root in bytes */ @@ -462,8 +466,6 @@ mfs_init(vfsp) struct vfsconf *vfsp; { - dev_t dev = NODEV; - cdevsw_add(&dev, &mfs_cdevsw, NULL); - cdevsw_add_generic(255, major(dev), &mfs_cdevsw); + cdevsw_add_generic(BDEV_MAJOR, CDEV_MAJOR, &mfs_cdevsw); return (0); } -- Poul-Henning Kamp FreeBSD coreteam member p...@freebsd.org "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message