patch for fixed raidtools device number bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have some questions about device number extension.

In Linux kernel 2.6, device number will be extended from 16-bit to 32-bit. All utilities and libraries should make corresponding extension for this new feature in kernel 2.6. 

I find that "raidtools-1.00.3-7" uses structure dev_t and operates the device number as 16-bit.
------------------------------------------------------------------------------------------
lsraid.c line 59:

#define MAJORBITS 8
#define MINORBITS 8
#define MAJORS (1 << MAJORBITS)
#define MINORS (1 << MINORBITS)

It defined major device number and minor device number as 8 bit, but now major device number is 12 bit and minor device is 20 bit.
------------------------------------------------------------------------------------------
Attached file is our patch for fixed this bug, please check it and give us your advice, thank you.

Looking forward to answering.

Best Regards
--------------------------------------------------
Zhou Wei
Dept. of Technology and Development 
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No. 16-5, Guanzhou Rd., Nanjing, P.R.China 
PHONE: +86+25-6630523-633
FUJITSU INTERNAL: 79955-633
FAX: +86+25-3317685 
Mail: zhouwei@nanjing-fnst.com 
--------------------------------------------------

Attachment: lsraid.c.patch
Description: Binary data


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux