From: "Michael Kerrisk" <mtk-lists@jambit.com>
To: <dhruv.anand@wipro.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: DIRECT IO for ext3/ext2.
Date: Tue, 25 Nov 2003 09:16:34 +0100 [thread overview]
Message-ID: <020001c3b32c$70607b50$c100a8c0@wakatipu> (raw)
In-Reply-To: <1E27FF611EBEFB4580387FCB5BEF00F3013DEF08@blr-ec-msg04.wipro.com>
> 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.
>
> However, the read still seems to fail with the O_DIRECT flag specified.
> The same check _passes if i do not specify the flag in open of the
> device.
>
> Boundary issues seem to be not the cause of failure here.
> Would have any more kind suggestions on something that i should do or
> could be missing on?
Is the size of the data you are reading also a multiple the block size? (It
should be.)
Cheers,
Michael
next prev parent reply other threads:[~2003-11-25 8:17 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
2003-11-25 8:16 ` Michael Kerrisk [this message]
-- 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='020001c3b32c$70607b50$c100a8c0@wakatipu' \
--to=mtk-lists@jambit.com \
--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®