[BusyBox 0006234]: stat reports different ID for directory (mismatch with coreutils)

bugs at busybox.net bugs at busybox.net
Tue Nov 11 21:20:19 UTC 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=6234 
====================================================================== 
Reported By:                pgbovine
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   6234
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             11-11-2008 13:20 PST
Last Modified:              11-11-2008 13:20 PST
====================================================================== 
Summary:                    stat reports different ID for directory (mismatch
with coreutils)
Description: 
The ID fields print out differently when given the -f option to "display
file system status instead of file status" (man stat) of the root
directory.

Coreutils:
$ stat / -f
  File: "/"
    ID: 4831f37ff3dc34e6 Namelen: 255     Type: ext2/ext3
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 1499773    Free: 549093     Available: 472908
Inodes: Total: 381264     Free: 220759

Busybox:
$ ./busybox stat / -f
  File: "/"
    ID: f3dc34e64831f37f Namelen: 255     Type: ext2/ext3
Block size: 4096      
Blocks: Total: 1499773    Free: 549093     Available: 472908
Inodes: Total: 381264     Free: 220759

Note the difference in ID fields.

In fact, IDs seem to mismatch with other directories as well.

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-11-08 13:20  pgbovine       New Issue                                    
11-11-08 13:20  pgbovine       Status                   new => assigned     
11-11-08 13:20  pgbovine       Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list