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

bugs at busybox.net bugs at busybox.net
Wed Nov 12 22:16:22 UTC 2008


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             11-11-2008 13:20 PST
Last Modified:              11-12-2008 14:16 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.

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

---------------------------------------------------------------------- 
 vda - 11-11-08 14:26  
---------------------------------------------------------------------- 
Please try attached 8.patch 

---------------------------------------------------------------------- 
 vda - 11-12-08 14:16  
---------------------------------------------------------------------- 
Fixed in svn. 

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         
11-11-08 14:25  vda            File Added: 8.patch                          
11-11-08 14:26  vda            Note Added: 0015464                          
11-12-08 14:16  vda            Status                   assigned => closed  
11-12-08 14:16  vda            Note Added: 0015584                          
======================================================================




More information about the busybox-cvs mailing list