Re: O_DIRECT alignment requirements ?

Joel Becker (Joel.Becker@oracle.com)
Wed, 9 Apr 2003 10:59:14 -0700


On Wed, Apr 09, 2003 at 06:53:17PM +0200, Rob van Nieuwkerk wrote:
> I get 4096 with BLKBSZGET on several unmounted partitions on my system
> (RH 2.4.18-27.7.x kernel). Some give 1024 .. Maybe it is because I
> had them mounted first and unmounted them for the test ?

That would be the most likely answer. When you unmount, I don't
believe the filesystem bothers to set_blocksize(get_hardsect_size(dev)).

Joel

-- 

Life's Little Instruction Book #94

"Make it a habit to do nice things for people who will never find out."

Joel Becker Senior Member of Technical Staff Oracle Corporation E-mail: joel.becker@oracle.com Phone: (650) 506-8127 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/