| Submitter | ZhangJieJing |
|---|---|
| Date | April 29, 2010, 6:38 a.m. |
| Message ID | <j2ycf7b913c1004282338n64902b64g453442bdcb69d8f5@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/51268/ |
| State | New |
| Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B6D32B7D5D for <incoming@patchwork.ozlabs.org>; Thu, 29 Apr 2010 16:40:38 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O7NOC-0007pX-Cc; Thu, 29 Apr 2010 06:38:24 +0000 Received: from mail-yw0-f190.google.com ([209.85.211.190]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O7NO9-0007oD-LP for linux-mtd@lists.infradead.org; Thu, 29 Apr 2010 06:38:22 +0000 Received: by ywh28 with SMTP id 28so7570694ywh.28 for <linux-mtd@lists.infradead.org>; Wed, 28 Apr 2010 23:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=zijOiPzf8I/JtrtyMy+epg5HsydeR1jBT1QLEJlPZg8=; b=nVJwutguQXtsvoT2ZFGba0DqADulmTTEegADzO7hlgSNTTLhWWHH4zoEvKEkSxBpqz fkFABYzMBgiiCdXaQA4geB2/S4juWX4xoQFFTPC5+YXF/tOJRn1s7O9HVI7CNSDS/rnW alaXKSBYXV5vEs/IfsdKwno9NaRLCxyth1Uu0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=l/WbjQganXrUd4V3h/WrNyCvGQ9T/k2g67XeOWrj73VKGotD5432qaABiP9G/kSRO8 UicoE7EZfZIA9iktWrrOk/1ffKZ05jOgnT/YjWszQwO0nVm/OwVVKghLTw3zCrLn9XZM T5r1sK/oACqPEXzQGn3GvDGBXTajQuEMHxEaI= MIME-Version: 1.0 Received: by 10.150.47.33 with SMTP id u33mr446498ybu.49.1272523100228; Wed, 28 Apr 2010 23:38:20 -0700 (PDT) Received: by 10.151.13.11 with HTTP; Wed, 28 Apr 2010 23:38:20 -0700 (PDT) In-Reply-To: <1272512811.2593.2.camel@localhost.localdomain> References: <i2ncf7b913c1004152036t3b23af53h339b16092ecdd812@mail.gmail.com> <1272439453.7750.20.camel@localhost> <i2rcf7b913c1004281914kbe0c0c18xeee2e1bbcc375012@mail.gmail.com> <1272512811.2593.2.camel@localhost.localdomain> Date: Thu, 29 Apr 2010 14:38:20 +0800 Message-ID: <j2ycf7b913c1004282338n64902b64g453442bdcb69d8f5@mail.gmail.com> Subject: Re: [PATCH] ubifs: add update vfs super block infomation when remount to ro mode From: Zhang JieJing <kzjeef@gmail.com> To: dedekind1@gmail.com X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100429_023821_828267_DD99A60F X-CRM114-Status: GOOD ( 10.44 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (kzjeef[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.211.190 listed in list.dnswl.org] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Comments
Patch
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c index 0168271..d33c233 100644 --- a/fs/ubifs/io.c +++ b/fs/ubifs/io.c @@ -63,6 +63,7 @@ void ubifs_ro_mode(struct ubifs_info *c, int err) if (!c->ro_media) { c->ro_media = 1; c->no_chk_data_crc = 0; + c->vfs_sb->s_flags |= MS_RDONLY; ubifs_warn("switched to read-only mode, error %d", err); dbg_dump_stack(); }
If some read/write error happens, ubifs make self a read only mode, but the vfs infomation still not update. This patch add this also make /proc/mounts update. Signed-off-by: zhangjiejing <kzjeef@gmail.com> Change-Id: I709ada21d1f6168d2e785eac389510e2b5edb2a4 --- fs/ubifs/io.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)