From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanlong Gao Subject: Re: Bug in BLKBSZSET/GET ioctl ? Date: Thu, 29 Dec 2011 11:56:27 +0800 Message-ID: <4EFBE4EB.3040001@cn.fujitsu.com> References: <4EFBE3D1.5030608@cn.fujitsu.com> Reply-To: gaowanlong@cn.fujitsu.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gaowanlong@cn.fujitsu.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, fengguang.wu@intel.com To: unlisted-recipients:; (no To-header on input) Return-path: In-Reply-To: <4EFBE3D1.5030608@cn.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 12/29/2011 11:51 AM, Wanlong Gao wrote: > Hi all: > > This is first reported to *libguestfs*: https://bugzilla.redhat.com/show_bug.cgi?id=624335 The blockdev-get/setbsz in *libguestfs* is just a wraper of util-linux's *blockdev --get/setbsz*. > > Then, I looked into upstream util-linux and it seems nothing wrong. I'm not convinced that it's a kernel bug. > > produce: > > --- > # ./util-linux/disk-utils/blockdev --getbsz /dev/sda6 > 4096 > # ./util-linux/disk-utils/blockdev --setbsz 2048 /dev/sda6 > # ./util-linux/disk-utils/blockdev --getbsz /dev/sda6 > 4096 > # ./util-linux/disk-utils/blockdev --setbsz 512 /dev/sda6 > # ./util-linux/disk-utils/blockdev --getbsz /dev/sda6 > 4096 > > --- > > I'm not sure if it is related to write-back, but still CCed to Fengguang. > > > > Thanks, > -Wanlong Gao