linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Theodore Y. Ts'o" <tytso@mit.edu>
To: Jan Kara <jack@suse.cz>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>,
	stable@vger.kernel.org
Subject: Re: [PATCH 5/7] ext4: pass -ESHUTDOWN code to jbd2 layer
Date: Thu, 22 Mar 2018 11:26:45 -0400	[thread overview]
Message-ID: <20180322152644.GE2852@thunk.org> (raw)
In-Reply-To: <20180306171041.mz7qlpeikih6mtlg@quack2.suse.cz>

On Tue, Mar 06, 2018 at 06:10:41PM +0100, Jan Kara wrote:
> Is it really correct that once the filesystem gets shutdown you clear the
> previous error from the journal? Because if we hit some real fs corruption,
> the journal gets aborted, and then someone calls ext4_shutdown(), we'd
> clear that error which looks like a bug to me because that shutdown hardly
> fixes the fs corruption...

That's not what the code does.  If journal->j_errno is set, then we
won't clear it, for precisely what concern you've articulated.

      	    	    	      	   	   - Ted

  reply	other threads:[~2018-03-22 15:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180220023038.19883-1-tytso@mit.edu>
     [not found] ` <20180220023038.19883-6-tytso@mit.edu>
2018-03-06 17:10   ` [PATCH 5/7] ext4: pass -ESHUTDOWN code to jbd2 layer Jan Kara
2018-03-22 15:26     ` Theodore Y. Ts'o [this message]
2018-05-17 15:18       ` Jan Kara
     [not found] ` <20180220023038.19883-7-tytso@mit.edu>
2018-03-07  8:55   ` [PATCH 6/7] jbd2: if the journal is aborted then don't allow update of the log tail Jan Kara
     [not found] ` <20180220023038.19883-8-tytso@mit.edu>
2018-03-07  9:06   ` [PATCH 7/7] ext4: don't update checksum of new initialized bitmaps Jan Kara
2018-03-22 15:29     ` Theodore Y. Ts'o
     [not found] ` <20180220023038.19883-5-tytso@mit.edu>
2018-03-07  9:07   ` [PATCH 4/7] ext4: eliminate sleep from shutdown ioctl Jan Kara
     [not found] ` <20180220023038.19883-4-tytso@mit.edu>
2018-03-07  9:42   ` [PATCH 3/7] ext4: shutdown should not prevent get_write_access Jan Kara
2018-03-22 15:38     ` Theodore Y. Ts'o

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=20180322152644.GE2852@thunk.org \
    --to=tytso@mit.edu \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).