Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Sep 1995 03:06:52 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        CVS-commiters@freefall.freebsd.org, ats@freefall.freebsd.org, cvs-sys@freefall.freebsd.org
Subject:   Re: cvs commit: src/sys/i386/isa wcd.c
Message-ID:  <199509151706.DAA19915@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified:    sys/i386/isa  wcd.c
>  Log:
>  Correct the calculation of the unit number. it is not minor(x) & 3. It need
>  to be shifted >> 3. The last bits are the partition info.

The dkunit() macro gives the correct formula.  The partition bits should
be decoded to avoid aliasing bugs.  This is most easily done by calling
dsopen() and dsclose().  There should be a new flag to dsopen() to tell
it not to look for an MBR.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509151706.DAA19915>