From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [PATCH] ubifs: add update vfs super block infomation when remount to ro mode Date: Wed, 28 Apr 2010 10:24:13 +0300 Message-ID: <1272439453.7750.20.camel@localhost> References: Reply-To: dedekind1@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org To: ZhangJieJing Return-path: Received: from smtp.nokia.com ([192.100.105.134]:51282 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033Ab0D1H2x (ORCPT ); Wed, 28 Apr 2010 03:28:53 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 2010-04-16 at 11:36 +0800, ZhangJieJing wrote: > If some read/write error happens(eg.CRC error), ubifs make self a rea= d > only mode, > but the vfs infomation still not update. > This patch add this also make /proc/mounts update. >=20 > Signed-off-by: Zhang Jiejing > --- > fs/ubifs/io.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > 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 =3D 1; > c->no_chk_data_crc =3D 0; > + c->vfs_sb->s_flags |=3D MS_RDONLY; > ubifs_warn("switched to read-only mode, error %d", err= ); > dbg_dump_stack(); > } > -- > 1.6.3.3 Your patch is not applicable. Try to save your own e-mail and apply the patch with 'git am'. Applying: UBIFS: mark VFS SB RO too fatal: corrupt patch at line 9 Patch failed at 0001 UBIFS: mark VFS SB RO too When you have resolved this problem run "git am -i --resolved". If you would prefer to skip this patch, instead run "git am -i --skip". To restore the original branch and stop patching run "git am -i --abort". [dedekind@sauron ubifs-2.6]\$ patch -p1 < .git/rebase-apply/patch=20 patching file fs/ubifs/io.c patch: **** malformed patch at line 9: =EF=BF=BD=EF=BF=BD =EF=BF=BD =EF= =BF=BD if (!c->ro_media) { But I've fixed this up and applied manually. It is now in the ubifs-2.6.git tree, thanks. --=20 Best Regards, Artem Bityutskiy (=D0=90=D1=80=D1=82=D1=91=D0=BC =D0=91=D0=B8=D1=82=D1=8E= =D1=86=D0=BA=D0=B8=D0=B9) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html