Date: Sun, 23 May 1999 11:32:27 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: Bruce Evans <bde@zeta.org.au>, luoqi@watermarkgroup.com, current@FreeBSD.ORG, Jos.Backus@nl.origin-it.com Subject: Re: MFS still hosed Message-ID: <8132.927451947@critter.freebsd.dk> In-Reply-To: Your message of "Wed, 19 May 1999 09:32:18 %2B0200." <432.927099138@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 phk@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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8132.927451947>