From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Rqu8S-0002fQ-RA for mharc-grub-devel@gnu.org; Fri, 27 Jan 2012 17:19:08 -0500 Received: from eggs.gnu.org ([140.186.70.92]:53334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqu8Q-0002fK-B9 for grub-devel@gnu.org; Fri, 27 Jan 2012 17:19:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqu8P-0007LX-40 for grub-devel@gnu.org; Fri, 27 Jan 2012 17:19:06 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:55006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqu8O-0007Kp-VH for grub-devel@gnu.org; Fri, 27 Jan 2012 17:19:05 -0500 Received: by mail-wi0-f169.google.com with SMTP id hj13so2210919wib.0 for ; Fri, 27 Jan 2012 14:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=j5MpPOXrKz8HzeMp+KpDkPr32ZwLLm46tA2IgVx5/3M=; b=voOYsuNSmL1cD2xASTQbZ/YDcu5wWQMyLJpqYLqwueaa8Oqnu8tRYFRc5SOYXEA7aC 8shDBeNkYq6gbXaG61wJgPSyd/sKTIzGQHMbLafAj2w6cYL3ZHuiGy1a8xyjE1GHFXcx d+tiYAeq5X1RUQ+v0XH/bQvJxvphzcbC52VDg= Received: by 10.180.96.230 with SMTP id dv6mr13816258wib.11.1327702744641; Fri, 27 Jan 2012 14:19:04 -0800 (PST) Received: from fedora.x201.phnet (202-112.203-62.cust.bluewin.ch. [62.203.112.202]) by mx.google.com with ESMTPS id d9sm14668876wiy.2.2012.01.27.14.19.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jan 2012 14:19:03 -0800 (PST) Message-ID: <4F2322D2.3040200@gmail.com> Date: Fri, 27 Jan 2012 23:18:58 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Phillip Susi Subject: Re: [RFC] FIEMAP and disk sync issues References: <4F22A683.4020607@gmail.com> <4F22F521.30104@ubuntu.com> In-Reply-To: <4F22F521.30104@ubuntu.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.169 Cc: The development of GNU GRUB 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: Fri, 27 Jan 2012 22:19:07 -0000 On 27.01.2012 20:04, Phillip Susi wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 1/27/2012 8:28 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> Hello, all. When someone installs using blocklists (discouraged >> and unreliable), we use GRUB internal fs reader in order to >> determine core.img blocklists. With Linux we call fsync and an >> ioctl on partition in order to flush the cache. I also tried adding >> "sync" which didn't make any difference. Unfortunately it doesn't >> seem to be good enough on > By "sync" you mean running the sync command? Actually the sync () call > If so, that absolutely, > positively should flush everything to disk. If it isn't then there's > a major kernel bug. An fsync() on the core.img file ( not the > partition device ) also should flush everything needed to find that > file, without flushing everything else that isn't. I'll recheck. But considering that I ran into some data loss it's possible that I have some kind of hardware or software failure (most likely because of new kernel and xen tests). Busy now doing the backups in case it gets worse > Doing an fsync() on the partition device will flush buffers from a > process directly opening the block dev and performing IO there, not > the buffers for files within the filesystem on that block device. > IIRC, ext2 uses the block buffers for directory access so that > partition fsync will flush directories, but ext3 and ext4 do not. > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.17 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJPIvUhAAoJEJrBOlT6nu75ZSwH/2vgqHY3L+9xPGAsMDMzelAq > ae6P0aKgqEsZPEiTDx6+sBNE9uvJO6va5mKv9eyvDhpmKeq64mLa3EDJBKUmnSL+ > E/b/cAAYPV7RaJ7Rc3tUNa96PRC8rOPyOcGeOVQxqjFS5rmZOa4p+wrO3YitqIGR > IUD7HSN8wt4PtmeS8thRXQPhcSICQwPy8rg4QVq2mFHxFws/WALAr7p5uVu/SH2Q > E8lXARKdvqd6HPjxlo7A/WeDEVvRd25eb84vX33wAhaauAI9VFD2+eCWR5ayyVUe > aymZ+DNyXpenEGK5JDdW38ovmAwIsWI+LbWVCh/gInEfHJkDVqN9XogtmCc9S68= > =3Yxi > -----END PGP SIGNATURE----- > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko