Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1236400imm; Fri, 27 Jul 2018 13:35:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeGc59zCN7yNdP094nLgvuvhWJ+Hq0719+GVcWuUoLyQZvho6rNGxXEiGouKTFI3lPDmWr9 X-Received: by 2002:a17:902:20e3:: with SMTP id v32-v6mr7442493plg.232.1532723735435; Fri, 27 Jul 2018 13:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532723735; cv=none; d=google.com; s=arc-20160816; b=yyzR/WTw6fwiVTq+PObqY7NYcKKd13rL/Gk4DQffQPe5VXhWdDl7doFuyEQXKzhL7e WvvgH11HcucjHlhdhL8MbiKXnTHyjeJKnHLPwC0IHCS58mrQgabXn71jO7YT/E8dQ3Wj dPJwagavkdAuPCwUj1ut1rKAxrYFvc+cqmaw/STEVQajG5EC00lgbNrKtznAX0qSdlBa To+KDxygY9RJCB+2+GJpvUB9FVlnGkH5bn1Uru6roAJpYxHnQqFcEaUcUuCeb4TfT8ay BhjCUBhA5WwdMJk/SxAiRUWXHI6W4JvCXdvtlvkKdM6ivVi1xtFXWnkEzjChQb3NYz3Q xygw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=fLjPLZliVAmnafdo4sIFrNpO3ixC4lrkBsb9+Twtr2U=; b=LfzqTWM4AV6BIXNJCOYLte7G9Wio1bqAgUvIFKR6WBEmmzlf7j1/no7mR5e9q0ccSk ysMffoNgXknP1h3ghSMGvH6j2K5/gIAcIAQgeW2SMdBeBJ42hI7am9O6JDnkgqWDQJPS 5KNg6kGEvsNSckfxPxoem8bsKzGecinrIYOfcYLDB4X/8fAVV+XkSQ9dPfjdSzlSK6SA ujnYBJxL7HjTD95n6ewwyALVeOXaipo3IoVgaIX8m6QjqlIbRJRrvuCyQHzigfo/0Iol B2iI29ZazG30lJABcCezbq6iMyxk9jfbnZzIzHNz+XlMI8rqxYoUJZYt3VnHriUyEy4S 4TgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sz8MrX+m; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sz8MrX+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64-v6si5335470pfb.314.2018.07.27.13.35.20; Fri, 27 Jul 2018 13:35:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sz8MrX+m; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sz8MrX+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389627AbeG0V6F (ORCPT + 99 others); Fri, 27 Jul 2018 17:58:05 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51822 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389206AbeG0V6F (ORCPT ); Fri, 27 Jul 2018 17:58:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DFC75602A7; Fri, 27 Jul 2018 20:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532723671; bh=zBmH5RgIjOohg8x30slGTkxRUyt/7omIs1Ni0BBjn4c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Sz8MrX+mL+ZeXG4AIgI2PKNjg48C65RP+CdMGu39Dzhq3MAsgFg9wff2fJT4hb1eq mqgFDZQ0Trn0ivmjAu+ibMK1CffkXknJjPpf/8ZVceZ91AC1xz2fvlrE0k0M/M9S1E 2E5io+FlPo8lTxHYVyIe0h2QzEQrcxedtWW+n5Jg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 3F2E260241; Fri, 27 Jul 2018 20:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532723671; bh=zBmH5RgIjOohg8x30slGTkxRUyt/7omIs1Ni0BBjn4c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Sz8MrX+mL+ZeXG4AIgI2PKNjg48C65RP+CdMGu39Dzhq3MAsgFg9wff2fJT4hb1eq mqgFDZQ0Trn0ivmjAu+ibMK1CffkXknJjPpf/8ZVceZ91AC1xz2fvlrE0k0M/M9S1E 2E5io+FlPo8lTxHYVyIe0h2QzEQrcxedtWW+n5Jg= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 27 Jul 2018 13:34:31 -0700 From: Sodagudi Prasad To: Sodagudi Prasad 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 In-Reply-To: <20180727195213.GE13922@thunk.org> References: <366cf3ac534bbadaaa61714a43006ac7@codeaurora.org> <20180727195213.GE13922@thunk.org> Message-ID: X-Sender: psodagud@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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