mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue