Bug 12766 - /bin/stat reports wrong device id
Summary: /bin/stat reports wrong device id
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-09 11:00 UTC by rino4work
Modified: 2020-04-09 13:18 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rino4work 2020-04-09 11:00:53 UTC
stat utility should report combined device id containing major and minor device version bytes.

I see it reports a single byte id instead:
# stat /
  File: /
  Size: 1376      	Blocks: 0          IO Block: 4096   directory
Device: ch/12d	Inode: 1           Links: 20
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-11-27 17:24:51.000000000
Modify: 2019-11-27 17:12:38.000000000
Change: 2019-11-27 17:24:56.000000000

I've failed to find if that's a special number that could be matched to real device id.
Assuming that may be a bug in busybox stat implementation.