GNU bug report logs - #22435
stat: report 'ext4' instead of 'ext2/ext3' filesystem type

Previous Next

Package: coreutils;

Reported by: "D.P.Pandya" <pandya <at> openmailbox.org>

Date: Fri, 22 Jan 2016 15:54:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 22435 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#22435; Package coreutils. (Fri, 22 Jan 2016 15:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "D.P.Pandya" <pandya <at> openmailbox.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 22 Jan 2016 15:54:02 GMT) Full text and rfc822 format available.

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

From: "D.P.Pandya" <pandya <at> openmailbox.org>
To: bug-coreutils <at> gnu.org
Subject: Need improvement in `stat` command's file-system type output
Date: Fri, 22 Jan 2016 14:33:57 +0530
If I tries to check filesystem type by `stat -f` command on my Ext4 
partition, it gives output: ext2/ext3 which is wrong.

Example:

$ df -T /
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/sda8      ext4  25672796 10813104  13532596  45% /

But `stat` shows incorrectly ext2/ext3

$ stat -f -c %T /
ext2/ext3

So, the output for filesystem type by `stat` command should be 
improved/fixed.

Thanks





Information forwarded to bug-coreutils <at> gnu.org:
bug#22435; Package coreutils. (Sun, 24 Jan 2016 14:04:01 GMT) Full text and rfc822 format available.

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

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: "D.P.Pandya" <pandya <at> openmailbox.org>, 22435 <at> debbugs.gnu.org
Subject: Re: bug#22435: Need improvement in `stat` command's file-system type
 output
Date: Sun, 24 Jan 2016 15:03:22 +0100
On 01/22/2016 10:03 AM, D.P.Pandya wrote:
> If I tries to check filesystem type by `stat -f` command on my Ext4 
> partition, it gives output: ext2/ext3 which is wrong.
> 
> Example:
> 
> $ df -T /
> Filesystem     Type 1K-blocks     Used Available Use% Mounted on
> /dev/sda8      ext4  25672796 10813104  13532596  45% /
> 
> But `stat` shows incorrectly ext2/ext3
> 
> $ stat -f -c %T /
> ext2/ext3
> 
> So, the output for filesystem type by `stat` command should be 
> improved/fixed.

This has been discussed before:
http://lists.gnu.org/archive/html/bug-coreutils/2013-01/msg00172.html

I'm not sure if the arguments have changed enough for the patch
to be applied.  Well, ext3 support has been removed from the kernel
a few months ago, so this may warrant a new discussion.

Have a nice day,
Berny




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

Changed bug title to 'stat: report 'ext4' instead of 'ext2/ext3' filesystem type' from 'Need improvement in `stat` command's file-system type output' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 24 Oct 2018 21:48:01 GMT) Full text and rfc822 format available.

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

Previous Next


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