Don't modify the device number; let the driver do it.

This commit is contained in:
mycroft 1994-07-26 19:37:00 +00:00
parent b5ce4d0cdd
commit 1e24ff6b3b

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* $Id: disksubr.c,v 1.7 1994/06/16 01:07:30 mycroft Exp $
* $Id: disksubr.c,v 1.8 1994/07/26 19:37:00 mycroft Exp $
*/
#include "param.h"
@ -95,7 +95,7 @@ readdisklabel(dev, strat, lp, osdep)
bp = geteblk((int)lp->d_secsize);
/* request no partition relocation by driver on I/O operations */
bp->b_dev = makedev(major(dev), dkminor((dkunit(dev)), 3));
bp->b_dev = dev;
/* do dos partitions in the process of getting disklabel? */
dospartoff = 0;
@ -300,7 +300,7 @@ writedisklabel(dev, strat, lp, osdep)
bp = geteblk((int)lp->d_secsize);
/* request no partition relocation by driver on I/O operations */
bp->b_dev = makedev(major(dev), dkminor((dkunit(dev)), 3));
bp->b_dev = dev;
/* do dos partitions in the process of getting disklabel? */
dospartoff = 0;