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

2012-03-01 Thread Goswin von Brederlow
Package: xfsprogs Version: 3.1.7 Followup-For: Bug #661580 Hi again, I've patched the NBD driver to set the physical sector size. Was way easier than I imagined: -- --- linux/drivers/block/nbd.c~ 2012-03-01

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

2012-03-01 Thread Christoph Hellwig
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

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

2012-03-01 Thread Goswin von Brederlow
Christoph Hellwig h...@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.

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

2012-03-01 Thread Goswin von Brederlow
Christoph Hellwig h...@infradead.org 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

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

2012-03-01 Thread Eric Sandeen
On 3/1/12 2:33 AM, Christoph Hellwig wrote: 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

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

2012-03-01 Thread Eric Sandeen
I've pushed a commit which should fix this, assuming xfsprogs is built with libblkid support enabled: http://git.kernel.org/?p=fs/xfs/xfsprogs-dev.git;a=commitdiff;h=287d168b550857ce40e04b5f618d7eb91b87022f -Eric -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a

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

2012-02-29 Thread Eric Sandeen
On 2/28/12 3:11 AM, Christoph Hellwig wrote: Carlos, didn't you plan to look into this issue? Goswin, how do you determin that mkfs is still doing unaligned I/O when forcing the large sevtor size? Once we set the sector size XFS can't do I/O smaller than it. I did think this was supposed

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

2012-02-29 Thread Goswin von Brederlow
Eric Sandeen sand...@sandeen.net writes: On 2/28/12 3:11 AM, Christoph Hellwig wrote: Carlos, didn't you plan to look into this issue? Goswin, how do you determin that mkfs is still doing unaligned I/O when forcing the large sevtor size? Once we set the sector size XFS can't do I/O

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

2012-02-29 Thread Christoph Hellwig
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.

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

2012-02-28 Thread Christoph Hellwig
Carlos, didn't you plan to look into this issue? Goswin, how do you determin that mkfs is still doing unaligned I/O when forcing the large sevtor size? Once we set the sector size XFS can't do I/O smaller than it. On Tue, Feb 28, 2012 at 08:49:14AM +0100, Goswin von Brederlow wrote: Package:

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

2012-02-28 Thread Carlos Maiolino
On Tue, Feb 28, 2012 at 04:11:51AM -0500, Christoph Hellwig wrote: Carlos, didn't you plan to look into this issue? Goswin, how do you determin that mkfs is still doing unaligned I/O when forcing the large sevtor size? Once we set the sector size XFS can't do I/O smaller than it. On Tue,

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

2012-02-28 Thread Goswin von Brederlow
Christoph Hellwig h...@infradead.org writes: Carlos, didn't you plan to look into this issue? Goswin, how do you determin that mkfs is still doing unaligned I/O when forcing the large sevtor size? Once we set the sector size XFS can't do I/O smaller than it. I'm writing a nbd-server that

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

2012-02-27 Thread Goswin von Brederlow
Package: xfsprogs Version: 3.1.7 Severity: important File: /sbin/mkfs.xfs Hi, since I recently bought a harddisk with 4K sector size I've been checking for correct alignment and blocksizes in various things. One of them being xfs. When I partition the disk in parted it shows correctly to have a