From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SNCh1-0002Y0-Cn for mharc-grub-devel@gnu.org; Wed, 25 Apr 2012 20:36:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNCgz-0002XZ-5h for grub-devel@gnu.org; Wed, 25 Apr 2012 20:36:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNCgx-0005at-8A for grub-devel@gnu.org; Wed, 25 Apr 2012 20:36:16 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:46304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNCgw-0005ac-Vi for grub-devel@gnu.org; Wed, 25 Apr 2012 20:36:15 -0400 Received: by wgbds1 with SMTP id ds1so513549wgb.30 for ; Wed, 25 Apr 2012 17:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=rtiawnRC1tCJ/vCJhfgYTG+vnq30Is5wurRa37Bg2to=; b=R0evzZ31N5E1K0Xy4OO96I3t9IfZd3R61182coM/W4bRgqRRgHzTPVJGmTJEBdOCvg Dkj0p9raeh4oWtl/vy9e7cxJHjXurKqRdJPpquOl+TsoLk13pjFOZzQE3+1uE9TwF8xO R7KuvVOoqEsYvLl+z8qqsA3gGN+9ZHUuiTnwnA67Dt3lON3V+lzfSLAkhDLTLwITyk2A gPi0kX2AKaeipP8cgAvQkiB80F404s5PmHWKSmzST7ZTseVJxG6iq0hV7Dpgc3jA4qt2 VhDHKXZ4bAeRELojl7zsAPv49r+oBc/quf70cW0do7t3byayQjrKCkhrllzb3dFRiVzk eI5w== Received: by 10.180.103.35 with SMTP id ft3mr11313719wib.0.1335400572872; Wed, 25 Apr 2012 17:36:12 -0700 (PDT) Received: from debian.x201.phnet (37-234.197-178.cust.bluewin.ch. [178.197.234.37]) by mx.google.com with ESMTPS id n20sm4862713wiw.5.2012.04.25.17.36.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Apr 2012 17:36:11 -0700 (PDT) Message-ID: <4F989876.2090600@gmail.com> Date: Thu, 26 Apr 2012 02:36:06 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3 MIME-Version: 1.0 To: Jiro SEKIBA , The development of GRUB 2 Subject: Re: NILFS2 in GRUB with blocksize=1024 References: <4F984C87.8050506@gmail.com> In-Reply-To: <4F984C87.8050506@gmail.com> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig3AB72EA8A751B394D09A127B" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Thu, 26 Apr 2012 00:36:18 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3AB72EA8A751B394D09A127B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 25.04.2012 21:12, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > Hello, with the attached script grub-fstest fails completely with > blocksize=3D1024 and partially with 2048. Do you have any idea why? I > tried to debug and my finding is that grub_nilfs2_read_checkpoint reads= > garbage. pptr makes sense but it points inside a file instead of to the= > metadata. If I load the other superblock I'm able to read empty disk > (what's there before script starts putting files). Easier way to reproduce and log: ~/compile/nilfs$ qemu-img create 1.img 500M Formatting '1.img', fmt=3Draw size=3D524288000 ~/compile/nilfs$ mkfs.nilfs2 -b 1024 1.img mkfs.nilfs2 (nilfs-utils 2.1.0) Start writing file system initial data to the device Blocksize:1024 Device:1.img Device Size:524288000 File system initialization succeeded !! ~/compile/nilfs$ sudo mount 1.img /mnt/1/ -o loop mount.nilfs2: cannot modify /etc/mtab. Please remount the partition with -f option after making /etc/mtab writab= le. nilfs_cleanerd not started ~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l Device loop0: Filesystem type nilfs2 - UUID 88cf7708-5700-481c-8039-d05d3fedab13 - Total size 1024000 sectors Device host: Filesystem type hostfs - Total size 0 sectors ~/compile/nilfs$ sudo dd if=3D/dev/zero of=3D/mnt/1/x2 bs=3D1M count=3D30= 30+0 records in 30+0 records out 31457280 bytes (31 MB) copied, 0.292755 s, 107 MB/s ~/compile/nilfs$ sync ~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l / 31457280 x2 ~/compile/nilfs$ sudo dd if=3D/dev/zero of=3D/mnt/1/x1 bs=3D1M count=3D30= 30+0 records in 30+0 records out 31457280 bytes (31 MB) copied, 0.324172 s, 97.0 MB/s ~/compile/nilfs$ sync ~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l / ~/compile/nilfs$ ./grub-fstest ./1.img ls -- -l Device loop0: Filesystem type nilfs2 - UUID 88cf7708-5700-481c-8039-d05d3fedab13 - Total size 1024000 sectors Device host: Filesystem type hostfs - Total size 0 sectors (it reads all-zeros from file as checkpoint descriptor) --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig3AB72EA8A751B394D09A127B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk+YmHYACgkQNak7dOguQgk8dAD/Zr7OJDe6LFB5dpIQMBTWdB84 LiVxnUsWPgMdYgKAScAA/0ZdHhBHJi21AfgutIftGv5om+jysMSSggiiZJR3ugDa =Y6I0 -----END PGP SIGNATURE----- --------------enig3AB72EA8A751B394D09A127B--