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.
This commit is contained in:
parent
03a9df25d1
commit
9af3551d46
|
@ -36,7 +36,7 @@
|
|||
#include <i386/isa/atapi.h>
|
||||
|
||||
#define NUNIT (NWDC*2) /* Max. number of devices */
|
||||
#define UNIT(d) (minor(d) & 3) /* Unit part of minor device number */
|
||||
#define UNIT(d) ((minor(d) >> 3) & 3) /* Unit part of minor device number */
|
||||
#define SECSIZE 2048 /* CD-ROM sector size in bytes */
|
||||
|
||||
#define F_OPEN 0x0001 /* The drive os opened */
|
||||
|
|
Loading…
Reference in New Issue