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
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
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