Christoph Hellwig <hch@xxxxxxxxxxxxx> 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 uses async IO via libaio (the linux kernel AIO interface). This has some alignment requirements so I set nbd to use a 4k blocksize and added asserts that all requests are page aligned (both offset and size of the request). That worked fine for dd and mkfs.ext4 but fails on mount in general or mkfs.xfs. So next I added a printf("WARNING: unaligned read/write") and handled unaligned access in the server to see how extensive the problem is. With ext4 I get ONE single read request of 512 Byte on mount and everything else properly 4k aligned. With xfs I get a ton of them. If you want I can add a log of the read/write requests a mkfs.xfs and mount generates. MfG Goswin _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs