From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhang JieJing Subject: Re: [PATCH] ubifs: add update vfs super block infomation when remount to ro mode Date: Thu, 29 Apr 2010 10:14:29 +0800 Message-ID: References: <1272439453.7750.20.camel@localhost> 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: dedekind1@gmail.com Return-path: Received: from mail-qy0-f179.google.com ([209.85.221.179]:61910 "EHLO mail-qy0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755927Ab0D2COa convert rfc822-to-8bit (ORCPT ); Wed, 28 Apr 2010 22:14:30 -0400 Received: by qyk9 with SMTP id 9so22291271qyk.1 for ; Wed, 28 Apr 2010 19:14:29 -0700 (PDT) In-Reply-To: <1272439453.7750.20.camel@localhost> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: (resend since HTML mail rejected by linux-fsdevel.) Hi Artem, I just clone the git://git.infradead.org/ubifs-2.6.git, and git am my patch, It is very clean patched, so, maybe your git repo code is very new, so the patch can't cleaned apply. This is my first patch give back to upstream, even I read the kernel document 'how-to send patch' but still something leaked. If I did something wrong, Please show me the right way or something lik= e that, Thanks for your time. --- Best regards, Zhang Jiejing 2010/4/28 Artem Bityutskiy : > On Fri, 2010-04-16 at 11:36 +0800, ZhangJieJing wrote: >> If some read/write error happens(eg.CRC error), ubifs make self a re= ad >> only mode, >> but the vfs infomation still not update. >> This patch add this also make /proc/mounts update. >> >> Signed-off-by: Zhang Jiejing >> --- >> =C2=A0fs/ubifs/io.c | =C2=A0 =C2=A01 + >> =C2=A01 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) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0if (!c->ro_media) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c->ro_media =3D= 1; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c->no_chk_dat= a_crc =3D 0; >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0c->vfs_sb->s_flags= |=3D MS_RDONLY; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ubifs_warn("s= witched to read-only mode, error %d", err); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dbg_dump_stac= k(); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0} >> -- >> 1.6.3.3 > > Your patch is not applicable. Try to save your own e-mail and apply t= he > 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 > 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. > > -- > 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