[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux device number bug report
From: |
Yoshinori K. Okuji |
Subject: |
Re: Linux device number bug report |
Date: |
Wed, 14 Jan 2004 12:43:35 +0100 |
User-agent: |
KMail/1.5 |
On Tuesday 13 January 2004 04:38, Shen Feng wrote:
> I think the following code in lib/device.c
>
> 60 # ifndef MAJOR
> 61 # ifndef MINORBITS
> 62 # define MINORBITS 8
> 63 # endif /* ! MINORBITS */
> 64 # define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
> 65 # endif /* ! MAJOR */
>
> should be changed as following:
>
> 60 # ifndef MAJOR
> 61 # define MAJOR(dev) ((dev >> 8) & 0xfff) | ((unsigned
> int) (dev >> 32) & ~0xfff) 62 # endif /* ! MAJOR */
It seems not to change anything. Did you try the code?
> The code "((dev >> 8) & 0xfff) | ((unsigned int) (dev >> 32) &
> ~0xfff)" is from glibc. I think this will fix the Linux device number
> extention bug. Is it OK?
I guess it is in an old version of glibc.
Okuji