From: Andrew Morton <akpm@osdl.org>
To: <dhruv.anand@wipro.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: DIRECT IO for ext3/ext2.
Date: Fri, 21 Nov 2003 11:45:13 -0800 [thread overview]
Message-ID: <20031121114513.6bb2e795.akpm@osdl.org> (raw)
In-Reply-To: <1E27FF611EBEFB4580387FCB5BEF00F3013DEF08@blr-ec-msg04.wipro.com>
<dhruv.anand@wipro.com> wrote:
>
> Thanks for your reply. I looked into the boundary alignment issue.
> Observed something strange happening;
>
> I wrote my own kernel module and then;
> 1. retrieved the block size = 4096 using block_size(struct block_device
> *bdev)
> 2. in the user application i did a lseek by 4906 (block size seek)
> 3. then found the address of the variable i wanted to read into, to be
> block
> size aligned.
O_DIRECT works - trust me ;)
Please grab
http://www.zip.com.au/~akpm/linux/patches/stuff/ext3-tools.tar.gz
There are a number of examples in there (odread.c is one).
next prev parent reply other threads:[~2003-11-21 19:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-21 19:30 dhruv.anand
2003-11-21 19:45 ` Andrew Morton [this message]
2003-11-25 8:16 ` Michael Kerrisk
-- strict thread matches above, loose matches on Subject: below --
2003-11-21 15:53 dhruv.anand
2003-11-21 17:40 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031121114513.6bb2e795.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=dhruv.anand@wipro.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®