bug#48960: stat v8.30 - device number in decimal shown as 16bit number instead of to converted 8bit

2021-06-11 Thread L A Walsh
On 2021/06/11 00:37, Wolfgang Rohm wrote: Hello. Stat prints the device number, major and minor, in hex and decimal. They are both 8bit numbers clamped together. While the hex number is perfectly fine, the decimal doesn't respect how this number has come to existence. There is no meaning in t

bug#48960: stat v8.30 - device number in decimal shown as 16bit number instead of to converted 8bit

2021-06-11 Thread Paul Eggert
The stat output is confusing in other ways. For example: 507-day $ ls -ld .; stat . | grep Device drwxr-xr-x 4 eggert eggert 12288 May 5 14:48 . Device: 10300h/66304d Inode: 70388429Links: 4 508-day $ ls -ld /dev/ptp0; stat /dev/ptp0 | grep Device crw--- 1 root root 246, 0 Jun 3 13:09

bug#48960: stat v8.30 - device number in decimal shown as 16bit number instead of to converted 8bit

2021-06-11 Thread Wolfgang Rohm
Hello. Stat prints the device number, major and minor, in hex and decimal. They are both 8bit numbers clamped together. While the hex number is perfectly fine, the decimal doesn't respect how this number has come to existence. There is no meaning in the decimal value, if the the hex value is