Messages in this thread | | | Date | Wed, 21 Jul 2004 02:10:57 +0200 | From | Rob van Nieuwkerk <> | Subject | Re: O_DIRECT |
| |
On Tue, 20 Jul 2004 20:48:24 +0200 bert hubert <ahu@ds9a.nl> wrote:
Hi Bert,
> On Tue, Jul 20, 2004 at 10:27:57AM -0700, Shesha Sreenivasamurthy wrote: > > I am having trouble with O_DIRECT. Trying to read or write from a block > > device partition. > > > > 1. Can O_DIRECT be used on a plain block device partition say > > "/dev/sda11" without having a filesystem on it. > > As fas as I know, yes, but be aware that O_DIRECT requires page aligned > addresses! (an integral of 4096 on most systems).
"soft block size" aligned. The soft block size can be smaller than a page (but not bigger). There's a requirement for:
- r/w offset - r/w size
greetings, Rob van Nieuwkerk - 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/
| |