GNU bug report logs - #28766
stat: don't display non-platform fields

Previous Next

Package: coreutils;

Reported by: L A Walsh <coreutils <at> tlinx.org>

Date: Mon, 9 Oct 2017 19:43:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 28766 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#28766; Package coreutils. (Mon, 09 Oct 2017 19:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to L A Walsh <coreutils <at> tlinx.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 09 Oct 2017 19:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: L A Walsh <coreutils <at> tlinx.org>
To: bug-coreutils <at> gnu.org
Subject: Req. for correction: don't display non-platform fields in "stat".
 & block number derivation?
Date: Mon, 09 Oct 2017 12:41:49 -0700
when I display 'stat', it displays fields my platform doesn't know
about.

Utilities "shouldn't" display fields that are specific to other platforms.

Specifically, I'm not aware of a linux (or, for that matter, a POSIX)
"Birth time".  Things are confusing enough w/o adding in other platform
info, like I used "." for input to stat and got:
 File: .
 Size: 8192        Blocks: 24         IO Block: 4096   directory
Device: 821h/2081d  Inode: 33394       Links: 7
Access: (0775/drwxrwxr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-10-09 10:56:22.969487183 -0700
...
--------------
Where Size/Blocks & IO Block are a bit confusing --

I.e. -- where does the "24" blocks come from?  It looks like
it is only 2 (x4096) blocks long from the ls output:

 Ishtar:/etc/sysconfig> ll -d .
 drwxrwxr-x 7 8192 Oct  9 10:53 ./

This is verified by looking at output from xfs_bmap.

So .. where does the "24" blocks come from?

Thanks...
-linda










Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 01:30:02 GMT) Full text and rfc822 format available.

Changed bug title to 'stat: don't display non-platform fields' from 'Req. for correction: don't display non-platform fields in "stat". & block number derivation?' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 01:30:03 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.