bug-gnu-utils
[Top][All Lists]
Advanced

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

[findutils]Linux device number bug report


From: Zhang Jun
Subject: [findutils]Linux device number bug report
Date: Mon, 19 Jan 2004 10:29:37 +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 “findutils-4.1.7” uses structure dev_t and operates the device number as 16-bit.
------------------------------------------------------------------------------------------
1. lib/listfile.c line 160:

#ifdef major   /* Might be defined in sys/types.h.  */
#define HAVE_MAJOR
#endif
#ifndef HAVE_MAJOR
#define major(dev)  (((dev) >> 8) & 0xff)
#define minor(dev)  ((dev) & 0xff)
#endif

This is a backup for lost of system defined macro major and minor, but all of these operations
look dev_t as 16 bits instead of 32 bits, so they will call problem when actually use them.
------------------------------------------------------------------------------------------

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.


Regards,
Zhang Jun
 
--------------------------------------------------
Zhang Jun
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: address@hidden
--------------------------------------------------

reply via email to

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