Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fxCbI-0002pF-FP for mharc-grub-devel@gnu.org; Tue, 04 Sep 2018 10:46:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxCbF-0002oM-Kl for grub-devel@gnu.org; Tue, 04 Sep 2018 10:46:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxCbC-0004du-9I for grub-devel@gnu.org; Tue, 04 Sep 2018 10:46:37 -0400 Received: from dibed.net-space.pl ([84.10.22.86]:43469) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1fxCbB-0004cr-TU for grub-devel@gnu.org; Tue, 04 Sep 2018 10:46:34 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@dibed.net-space.pl)) by router-fw-old.i.net-space.pl id S1864932AbeIDOqb (ORCPT ); Tue, 4 Sep 2018 16:46:31 +0200 Date: Tue, 4 Sep 2018 16:46:31 +0200 From: Daniel Kiper To: grub-devel@gnu.org, Martin Wilck , mchang@suse.com Subject: Re: [PATCH] hostdisk: Fix linux disk cache workaround on multipath disks Message-ID: <20180904144631.GE3761@router-fw-old.i.net-space.pl> References: <20180725084915.6wtzgvtdx2kdkddw@mazu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180725084915.6wtzgvtdx2kdkddw@mazu> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 84.10.22.86 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 14:46:38 -0000 On Wed, Jul 25, 2018 at 04:49:15PM +0800, Michael Chang wrote: > In hostdisk.c::grub_util_fd_open_device, there's a workaround to linux disk s#hostdisk.c::grub_util_fd_open_device#grub-core/osdep/linux/hostdisk.c:grub_util_fd_open_device()# > cache described below. > > "Linux has a bug that the disk cache for a whole disk is not consistent with > the one for a partition of the disk." > > The workaround will result in using the partition device for writing the image Which workaround are you referring to? > of which the address offset is calculated to be within it's range, to avoid the > cache problem of the whole disk device. This sentence is convoluted. Please fix this. > This patch fixed the linux disk cache workaround not being effective for s/fixed/fixes/ > multipath/dm device because its partition device cannot be correctly determined > by grub_hostdisk_linux_find_partition function. In general I am not happy with the commit message. It is difficult to understand where the problem is and why and how it is fixed. And lack of SOB... Daniel