Bug 10604 - stat truncates inode numbers to 32 bits
stat truncates inode numbers to 32 bits
Product: Red Hat Linux
Classification: Retired
Component: stat (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2000-04-05 15:41 EDT by Phil Schwan
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-04-06 15:13:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Phil Schwan 2000-04-05 15:41:37 EDT
Filesystems (XFS, for example) are starting to use 64 bit inodes.  The
userspace tools should correctly report these.

--- stat-1.5/stat.c	Wed Apr  5 10:55:53 2000
+++ stat-1.5/stat.c	Wed Apr  5 10:50:42 2000
@@ -314,9 +314,9 @@
 		(void) printf("\n");
-		(void) printf("Inode: %-10ld\n", Sbuf.st_ino);
+		(void) printf("Inode: %-15lld\n", Sbuf.st_ino);
-		(void) printf("  Inode: %-10ld", Sbuf.st_ino);
+		(void) printf("  Inode: %-15lld", Sbuf.st_ino);
 	(void) printf("Links: %-5d", Sbuf.st_nlink);

 	/* Only meaningful if file is device */

(In unrelated news, is there a 'stat' maintainer that all distributions
feed from?)
Comment 1 Nalin Dahyabhai 2000-04-06 15:13:59 EDT
It looks like stat(1) is no longer maintained.  Someone did a from-scratch
rewrite, called it 2.2, and uploaded it to metalab, though.
Comment 2 Jeff Johnson 2000-07-27 17:40:55 EDT
Fixed by upgrading to stat-2.2-1.

Note You need to log in before you can comment on or make changes to this bug.