linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sodagudi Prasad <psodagud@codeaurora.org>
To: Sodagudi Prasad <psodagud@codeaurora.org>
Cc: adilger.kernel@dilger.ca, wen.xu@gatech.edu,
	linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Remounting filesystem read-only
Date: Fri, 27 Jul 2018 13:34:31 -0700	[thread overview]
Message-ID: <c121825198eba667c09fc53fa9b4fd3a@codeaurora.org> (raw)
In-Reply-To: <20180727195213.GE13922@thunk.org>

On 2018-07-27 12:52, Theodore Y. Ts'o wrote:
> On Fri, Jul 27, 2018 at 12:26:25PM -0700, Sodagudi Prasad wrote:
>> On 2018-07-26 18:04, Sodagudi Prasad wrote:
>> > Hi All,
>> >
>> 
>> +linux-kernel@vger.kernel.org list.
>> 
>> Hi All,
>> 
>> Observing the following issue with one of the partition on android 
>> device
>> with 4.14.56 kernel.  When I try to remount this partition using the 
>> command
>> - mount -o rw,remount /vendor/dsp, it is remounting as read-only.
>> 
>> [  191.364358] EXT4-fs error (device sde9): 
>> ext4_has_uninit_itable:3108:
>> comm mount: Inode table for bg 0 marked as needing zeroing
>> [  191.364762] Aborting journal on device sde9-8.
>> [  191.365226] EXT4-fs (sde9): Remounting filesystem read-only
>> [  191.365232] EXT4-fs (sde9): re-mounted. Opts: data=ordere
>> 
>> If I revert this commit [1] -"ext4: only look at the bg_flags field if 
>> it is
>> valid", the issue is not observed. It is just giving following warning
>> message.
>> [1] - https://patchwork.ozlabs.org/patch/929239/.
>> 
>> [  123.373456] EXT4-fs (sde9): warning: mounting fs with errors, 
>> running
>> e2fsck is recommendedt
>> [  123.389649] EXT4-fs (sde9): re-mounted. Opts: data=ordered
>> 
>> Can you provide some inputs what could be the issue with this 
>> partition?
> 
> The error should be pretty clear: "Inode table for bg 0 marked as
> needing zeroing".  That should never happen.

Hi Ted,

Can you provide any debug patch to detect when this corruption is 
happening?
Source of this corruption and how this is partition getting corrupted?
Or which file system operation lead to this corruption?

I am digging code a bit around this warning to understand more.

Thanks in advance for your help.

-Thanks, Prasad

> The warning "mounting fs
> with errors" means the file system was corrupted.  The commit is now
> telling more about how the file system was corrupted, and is
> protecting you from further data loss.  (You shoud never, ever, ever,
> allow a file system to be mounted read/write with corruptions.  The
> file system should have been checked using fsck.ext4, aka e2fsck,
> before the file system was allowed to be mounted.)
> 
>        	   	       	   	      - Ted

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora 
Forum,
Linux Foundation Collaborative Project

  reply	other threads:[~2018-07-27 20:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <366cf3ac534bbadaaa61714a43006ac7@codeaurora.org>
2018-07-27 19:26 ` Remounting filesystem read-only Sodagudi Prasad
2018-07-27 19:52   ` Theodore Y. Ts'o
2018-07-27 20:34     ` Sodagudi Prasad [this message]
2018-07-28  0:18       ` Theodore Y. Ts'o
2018-07-28  7:47         ` Darrick J. Wong
2018-08-02  2:23           ` Sodagudi Prasad

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=c121825198eba667c09fc53fa9b4fd3a@codeaurora.org \
    --to=psodagud@codeaurora.org \
    --cc=adilger.kernel@dilger.ca \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wen.xu@gatech.edu \
    /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).