public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Daniel Schultz <d.schultz@phytec.de>
Cc: linux-ext4@vger.kernel.org, Teresa Remmet <t.remmet@phytec.de>
Subject: Re: Corrupt ext4 fs after creation
Date: Wed, 15 Mar 2017 01:11:30 -0400	[thread overview]
Message-ID: <20170315051130.fy7j3o24z5pmbyll@thunk.org> (raw)
In-Reply-To: <532e8151-ecc8-6411-9471-b7a74b4e0ab9@phytec.de>

On Tue, Mar 14, 2017 at 11:34:32AM +0100, Daniel Schultz wrote:
> 
> I figured out that when I run fsck.ext4 it will perform a directory
> optimizing which leads to a non-zero error code of 1 (File system errors
> corrected). Also, I figured out that this optimizing only occurres on the
> first boot and not after creating a lot of new files and dirs. After
> checking the fs it contains more blocks than before.

So the error code was one because the file system was modified.  It's
true that the formal definition of error code of one is "file system
errors corrected", and so this will be changed in the next release of
e2fsprogs:

commit bf9f3b6d5b10d19218b4ed904c12b22e36ec57dd
Author: Theodore Ts'o <tytso@mit.edu>
Date:   Thu Feb 16 22:02:35 2017 -0500

    e2fsck: exit with exit status 0 if no errors were fixed

    Previously, e2fsck would exit with a status code of 1 even though the
    only changes that it made to the file system were various
    optimziations and not fixing file system corruption.  Since the man
    page states that an exit status of 1 means "file system errors
    corrupted", fix e2fsck to return an exit status of 0.

    Signed-off-by: Theodore Ts'o <tytso@mit.edu>

Cheers,

					- Ted

      parent reply	other threads:[~2017-03-15  5:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <153de314-38ff-ad68-65d9-a292213b47f6@phytec.de>
2017-03-14 10:34 ` Corrupt ext4 fs after creation Daniel Schultz
2017-03-14 17:54   ` Darrick J. Wong
2017-03-14 20:05   ` Andreas Dilger
2017-03-15  5:11   ` Theodore Ts'o [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170315051130.fy7j3o24z5pmbyll@thunk.org \
    --to=tytso@mit.edu \
    --cc=d.schultz@phytec.de \
    --cc=linux-ext4@vger.kernel.org \
    --cc=t.remmet@phytec.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox