Re: Wrong define for dev_t
Pascal Terjan <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Organization | Mandriva |
| Message-ID | <1274422191.32428.4.camel@plop> |
Le vendredi 21 mai 2010 à 03:01 +0200, Felix von Leitner a écrit : > > I had a bug here where sda16 was created as 3:0 instead of 259:0 > > > I found that this is because on x86 dev_t is wrong, it is uint16_t > > instead of uint32_t > > The dev_t declaration comes from the kernel and is correct. > > > Also, on my system: > > # mknod foo b 2 259; ls -l foo > brw-r--r-- 1 root root 2, 259 May 21 03:00 foo > # file =mknod =ls > /opt/diet/bin/mknod: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped > /opt/diet/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped > # > > Felix > Yes on x86-64 it works fine, not on i386