bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug 485507] RFE: add ext4 to "stat -f" output


From: Jim Meyering
Subject: Re: [Bug 485507] RFE: add ext4 to "stat -f" output
Date: Mon, 16 Feb 2009 17:27:00 +0100

In http://bugzilla.redhat.com/485507

Eric Sandeen proposed to add ext4 to the list of names
currently reported for that type of file system ("ext2/ext3").

I'm reluctant to change that string, because doing so might
well break scripts that rely on them:

    case $(stat -f --format %T .) in
      ext2/ext3) ;;
      *) destroy_partition ;;
    esac

Sure, script writers might well anticipate this and
prefer to use the %t directive to get the type in hexadecimal,
but that's far less readable.

How much code (and how ugly) would be required to distinguish ext4
from ext[23]?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]