Bug#661580: mkfs.xfs fails to detect correct sector size
Goswin von Brederlow
goswin-v-b at web.de
Thu Mar 1 02:56:13 CST 2012
Christoph Hellwig <hch at infradead.org> writes:
> On Thu, Mar 01, 2012 at 04:53:32AM +0100, Goswin von Brederlow wrote:
>> I'm asuming libblkid is used, otherwise a sectorsize of 512 would make
>> no sense.
>>
>> It might be that NBD advertises the geometry wrong, as in ft.sectorsize
>> isn't set correctly. That would make that part at least a kernel bug.
>
> Now that I've looked at nbd: I can't find any way to transfer the
> physical or logical block size information to the nbd client. How
> do you try set it on the server?
I don't. The protocol doesn't (yet) have an option for this. There are a
number of new options planed for the new handshake protocol but the nbd
maintainer hasn't had time to implement them yet.
What I do is set the blocksize = 4096 on the nbd-client commandline
knowing that that is what the server expects.
MfG
Goswin
More information about the xfs
mailing list