From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NkEoT-00041R-2O for mharc-grub-devel@gnu.org; Wed, 24 Feb 2010 05:49:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkEoR-000416-8H for grub-devel@gnu.org; Wed, 24 Feb 2010 05:49:51 -0500 Received: from [140.186.70.92] (port=45374 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkEoP-00040d-LS for grub-devel@gnu.org; Wed, 24 Feb 2010 05:49:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkEoO-0002H4-AC for grub-devel@gnu.org; Wed, 24 Feb 2010 05:49:49 -0500 Received: from mail-fx0-f222.google.com ([209.85.220.222]:63747) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkEoO-0002Gx-0o for grub-devel@gnu.org; Wed, 24 Feb 2010 05:49:48 -0500 Received: by fxm22 with SMTP id 22so4914363fxm.26 for ; Wed, 24 Feb 2010 02:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=etp9RfXTdAGob1vo7vAg0qGV/xrl338zsCGn4Ohb9ZU=; b=kMRsRh5rMGAsmMRQSxEt0yoN3CLE/JLjqAB7bsyfe92liOxps7VOLmTHG936ugxNoy W5jVHL3QPh0lRaQh2Sfri7qD2iI7MNMJPZdmSMiQ+DVxqaAyz7XIb9IYx9o25DvxSVKP W4vNIDdtPT0CsY7ldtvOYd3oqX5ff7dVxjozU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=glD+2OhjhajYr6W6wEXfQM2lycWbSKwysJ4wGAQMmGEX/txqRaAAa1PhXqnfo5aZkV n9Dx7/iR5xQTJtwR+S2/uMJZgbxsIjw9AVv57oLwcEOldemjUGKU6HVY1r8opAfxixAF dy6JlI6+n8IRXUTu3gE8JNPMfmwy+EfGrRZv4= Received: by 10.87.48.11 with SMTP id a11mr13002255fgk.36.1267008586150; Wed, 24 Feb 2010 02:49:46 -0800 (PST) Received: from debian.bg45.phnet (hg-public-dock-41-dhcp.ethz.ch [82.130.80.41]) by mx.google.com with ESMTPS id e11sm221186fga.1.2010.02.24.02.49.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Feb 2010 02:49:43 -0800 (PST) Message-ID: <4B850440.6000108@gmail.com> Date: Wed, 24 Feb 2010 11:49:36 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GRUB 2 , tony@linx.net References: <1252350805.4234.6.camel@localhost> In-Reply-To: <1252350805.4234.6.camel@localhost> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1C4E4CB18D71EB0F2EDA84F8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Subject: Re: ~3TB ext4 volume not read correctly by ext2-fs driver in GRUB2 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: Wed, 24 Feb 2010 10:49:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1C4E4CB18D71EB0F2EDA84F8 Content-Type: multipart/mixed; boundary="------------030802040004070701030008" This is a multi-part message in MIME format. --------------030802040004070701030008 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Try attached patch Tony Vroon wrote: > Ladies and gentlemen, > > It would appear that the ext2-fs driver is not reliably able to read > directories on my ~3TB / filesystem: > /dev/root 3.4T 1.7T 1.6T 52% / > /dev/root on / type ext4 (rw,noatime,barrier=3D1,data=3Dordered) > > Whilst doing some troubleshooting over IRC, I was given a debug patch. > With this patch applied, I'll show you a working directory entry (/etc)= > and a non-working directory entry (/boot): > prometheus ~ # grub-fstest -d ext2 -v /dev/sda3 ls /etc > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed > fs/ext2.c:688: got filename: '.', type 2 > fs/ext2.c:862: grub_fshelp_dir returning: 0 > fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed > fs/ext2.c:688: got filename: '.', type 2 > fs/ext2.c:688: got filename: '..', type 2 > fs/ext2.c:688: got filename: 'lost+found', type 2 > fs/ext2.c:688: got filename: 'lib', type 7 > fs/ext2.c:688: got filename: '.config', type 1 > fs/ext2.c:688: got filename: 'sbin', type 2 > fs/ext2.c:688: got filename: 'root', type 2 > fs/ext2.c:688: got filename: 'mnt', type 2 > fs/ext2.c:688: got filename: 'opt', type 2 > fs/ext2.c:688: got filename: 'var', type 2 > fs/ext2.c:688: got filename: 'usr', type 2 > fs/ext2.c:688: got filename: 'dev', type 2 > fs/ext2.c:688: got filename: 'lib32', type 2 > fs/ext2.c:688: got filename: 'home', type 2 > fs/ext2.c:688: got filename: 'tmp', type 2 > fs/ext2.c:688: got filename: 'media', type 2 > fs/ext2.c:688: got filename: 'sys', type 2 > fs/ext2.c:688: got filename: 'cvs', type 2 > fs/ext2.c:688: got filename: 'proc', type 2 > fs/ext2.c:688: got filename: 'etc', type 2 > fs/ext2.c:651: iterating inode size=3D0 mode=3D0x0 > fs/ext2.c:862: grub_fshelp_dir returning: 0 > > prometheus ~ # grub-fstest -d ext2 -v /dev/sda3 ls /boot > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:862: grub_fshelp_dir returning: 9 > fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed > fs/ext2.c:688: got filename: '.', type 2 > fs/ext2.c:862: grub_fshelp_dir returning: 0 > fs/ext2.c:651: iterating inode size=3D4096 mode=3D0x41ed > fs/ext2.c:688: got filename: '.', type 2 > fs/ext2.c:688: got filename: '..', type 2 > fs/ext2.c:688: got filename: 'lost+found', type 2 > fs/ext2.c:688: got filename: 'lib', type 7 > fs/ext2.c:688: got filename: '.config', type 1 > fs/ext2.c:688: got filename: 'sbin', type 2 > fs/ext2.c:688: got filename: 'root', type 2 > fs/ext2.c:688: got filename: 'mnt', type 2 > fs/ext2.c:688: got filename: 'opt', type 2 > fs/ext2.c:688: got filename: 'var', type 2 > fs/ext2.c:688: got filename: 'usr', type 2 > fs/ext2.c:688: got filename: 'dev', type 2 > fs/ext2.c:688: got filename: 'lib32', type 2 > fs/ext2.c:688: got filename: 'home', type 2 > fs/ext2.c:688: got filename: 'tmp', type 2 > fs/ext2.c:688: got filename: 'media', type 2 > fs/ext2.c:688: got filename: 'sys', type 2 > fs/ext2.c:688: got filename: 'cvs', type 2 > fs/ext2.c:688: got filename: 'proc', type 2 > fs/ext2.c:688: got filename: 'etc', type 2 > fs/ext2.c:688: got filename: 'lib64', type 2 > fs/ext2.c:688: got filename: 'boot', type 2 > fs/ext2.c:651: iterating inode size=3D0 mode=3D0x0 > fs/ext2.c:862: grub_fshelp_dir returning: 0 > > In order to help troubleshoot this, I can apply patches on top of > current SVN, run fstest & test booting for you. Please note that making= > images of a 3TB drive is not practical and will not reflect the real > situation to you. > Sorry, but I am not comfortable offering SSH access to random internet > strangers. > > Regards, > Tony V. > =20 > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------030802040004070701030008 Content-Type: text/x-diff; name="bige2fs.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="bige2fs.diff" =3D=3D=3D modified file 'fs/ext2.c' --- fs/ext2.c 2010-01-20 08:12:47 +0000 +++ fs/ext2.c 2010-02-24 10:48:31 +0000 @@ -436,7 +436,8 @@ grub_uint32_t indir[blksz / 4]; =20 if (grub_disk_read (data->disk, - grub_le_to_cpu32 (inode->blocks.indir_block) + ((grub_disk_addr_t) + grub_le_to_cpu32 (inode->blocks.indir_block)) << log2_blksz, 0, blksz, indir)) return grub_errno; @@ -452,13 +453,15 @@ grub_uint32_t indir[blksz / 4]; =20 if (grub_disk_read (data->disk, - grub_le_to_cpu32 (inode->blocks.double_indir_block) + ((grub_disk_addr_t) + grub_le_to_cpu32 (inode->blocks.double_indir_block)) << log2_blksz, 0, blksz, indir)) return grub_errno; =20 if (grub_disk_read (data->disk, - grub_le_to_cpu32 (indir[rblock / perblock]) + ((grub_disk_addr_t) + grub_le_to_cpu32 (indir[rblock / perblock])) << log2_blksz, 0, blksz, indir)) return grub_errno; --------------030802040004070701030008-- --------------enig1C4E4CB18D71EB0F2EDA84F8 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.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAkuFBEUACgkQNak7dOguQgn0SQEAvKSmL7PDgGwWVvWXMlTQLKs5 w1PRhcVb4RfTys+908oBALngaWFjf+RVmFmELWG2QzrogQlTSNKEhO5OF+ADlphz =tLpk -----END PGP SIGNATURE----- --------------enig1C4E4CB18D71EB0F2EDA84F8--