bug-bash
[Top][All Lists]
Advanced

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

[BASH] Linux device number bug report


From: Wang Chen
Subject: [BASH] Linux device number bug report
Date: Sun, 18 Jan 2004 09:46:30 +0800

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 "bash-2.05b-29" uses structure dev_t and operates the device
number as 16-bit.
In file examples/loadables/finfo.c: 251
       printf("Device (major/minor): %d (%d/%d)\n", (int) (st->st_dev &
0xFF),
                                               (int) major (st->st_dev),
                                               (int) minor (st->st_dev));
The device number st->st-dev should be 32-bit. But this operation only
prints its lower 16-bit and it seems not to correspond to device number
extension.

Since I didn't find any information about this aspect in homepage of this
package, I wonder whether the latest version has completed the device number
extension? If not, will it be completed in the future? And when?

Looking forward to answering.


--------------------------------------------------
Wang Chen
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-86630523-636
FUJITSU INTERNAL: 79955-636
FAX  : +86+25-83317685
Mail  : wangchen@nanjing-fnst.com
--------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]