Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O6DL2-0003BZ-8r for mharc-grub-devel@gnu.org; Sun, 25 Apr 2010 21:42:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6DKz-0003BT-Q8 for grub-devel@gnu.org; Sun, 25 Apr 2010 21:42:17 -0400 Received: from [140.186.70.92] (port=42227 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6DKx-0003B8-7d for grub-devel@gnu.org; Sun, 25 Apr 2010 21:42:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6DKv-0006Ag-JY for grub-devel@gnu.org; Sun, 25 Apr 2010 21:42:15 -0400 Received: from mail1.asahi-net.or.jp ([202.224.39.197]:13435) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6DKv-0006AN-Au for grub-devel@gnu.org; Sun, 25 Apr 2010 21:42:13 -0400 Received: from rabbit.sekiba.org (x238029.ppp.asahi-net.or.jp [122.249.238.29]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id 0977AA22A3 for ; Mon, 26 Apr 2010 10:42:08 +0900 (JST) Date: Mon, 26 Apr 2010 10:42:08 +0900 Message-ID: <87eii3ouq7.wl%jir@sekiba.com> From: Jiro SEKIBA To: The development of GNU GRUB In-Reply-To: <4BD350C4.60501@gmail.com> References: <87iq7wk74w.wl%jir@sekiba.com> <4BC73D44.6020307@gmail.com> <87ochh83jw.wl%jir@sekiba.com> <4BD350C4.60501@gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCHv3] a new filesystem module for nilfs2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2010 01:42:18 -0000 Hi, At Sat, 24 Apr 2010 22:12:52 +0200, Vladimir '=F6-coder/phcoder' Serbinenko wrote: >=20 > Committed. One question: Thank you! > + .reserved_first_sector =3D 1, >=20 > This line claims that overwriting first sector of nilfs won't destroy any= data or metadata. Is it so? >=20 Oh, that is the one I copied from fs/ext2.c without any doubt. But I think it's ok, since nilfs2 super block resides at 1K from begining of the parition. So any data within 1K will ignored. I believe sector is assumed 512bytes, so first sector would be within 1K which is not used in nilfs2. I checked with loop back device and write random data in first 1K, partion is healthy and mountable. And the range 0-1K is unchanged. thanks regards, > Jiro SEKIBA wrote: > > Hi, > > > > Thank you very much for the comments! > > I revised the patch to reflect the comments. > > > > =20 > >> + { > >> + grub_error(GRUB_ERR_BAD_FS,"btree corruption\n"); > >> + return -1; > >> + } > >> What do you think about possible fallback to iterate over all nodes in= case of fs corruption? > >> =20 > > > > The case that btree is corrupted, it's very hard to take any action to = recover > > because it is not possible to distinguish which block has meta data > > or which block has data without btree information. > > > > nilfs2 has ability to mount old checkpoint by specifying checkpoint num= ber. > > So using old checkpoint is one of the possible fallback if all the bloc= ks > > belonging to the old checkpoint is healthy. But it requires some more w= ork. > > > > thanks, > > > > regards > > =20 > > ------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/grub-devel >=20 >=20 > --=20 > Regards > Vladimir '=F6-coder/phcoder' Serbinenko >=20 >=20 --=20 Jiro SEKIBA