[Top] [All Lists]

Bug#661580: mkfs.xfs fails to detect correct sector size

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Bug#661580: mkfs.xfs fails to detect correct sector size
From: Goswin von Brederlow <goswin-v-b@xxxxxx>
Date: Thu, 01 Mar 2012 10:07:55 +0100
Cc: Goswin von Brederlow <goswin-v-b@xxxxxx>, 661580@xxxxxxxxxxxxxxx
In-reply-to: <20120301083345.GA24409@xxxxxxxxxxxxx> (Christoph Hellwig's message of "Thu, 1 Mar 2012 03:33:45 -0500")
References: <20120301081409.3103.43155.reportbug@xxxxxxxxxxxxxxxxx> <20120301083345.GA24409@xxxxxxxxxxxxx>
Reply-to: Goswin von Brederlow <goswin-v-b@xxxxxx>, 661580@xxxxxxxxxxxxxxx
Resent-cc: XFS Development Team <xfs@xxxxxxxxxxx>
Resent-date: Thu, 01 Mar 2012 09:09:05 +0000
Resent-from: Goswin von Brederlow <goswin-v-b@xxxxxx>
Resent-message-id: <handler.661580.B661580.133059288714096@xxxxxxxxxxxxxxx>
Resent-sender: Debian BTS <debbugs@xxxxxxxxxxxxxxxxx>
Resent-to: debian-bugs-dist@xxxxxxxxxxxxxxxx
User-agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE)
Christoph Hellwig <hch@xxxxxxxxxxxxx> writes:

> On Thu, Mar 01, 2012 at 09:14:09AM +0100, Goswin von Brederlow wrote:
>> And I can confirm that the sector size detection is still broken in
>> 3.1.7.
> That's a known bug that Carlos wanted to look into.  If you really can't
> accept smaller I/O without major pain make sure to use a larger logical
> blocksize, which should be handled fine by everything.

Tried that too. Setting a locigal block size of 4096 makes all access
aligned to 4096 byte and makes mkfs.xfs detect a sector size of 4096

But that breaks partitioning support for example. Linux simply won't
read the partition table on /dev/nbd0 anymore. Not sure why. Plus that
doesn't solve the problem for real harddisks.


<Prev in Thread] Current Thread [Next in Thread>