From: Benjamin LaHaise <bcrl@redhat.com>
To: Joel Becker <Joel.Becker@oracle.com>
Cc: Rob van Nieuwkerk <robn@verdi.et.tudelft.nl>,
linux-kernel@vger.kernel.org
Subject: Re: O_DIRECT alignment requirements ?
Date: Wed, 9 Apr 2003 14:08:32 -0400 [thread overview]
Message-ID: <20030409140832.A4621@redhat.com> (raw)
In-Reply-To: <20030409154836.GA31739@ca-server1.us.oracle.com>; from Joel.Becker@oracle.com on Wed, Apr 09, 2003 at 08:48:36AM -0700
On Wed, Apr 09, 2003 at 08:48:36AM -0700, Joel Becker wrote:
> In 2.5, the alignment restrictions have been relaxed. Your
> offset, buffer, and transfer size must all be aligned on the hardware
> sector size. That is the output of BLKSSZGET against the block device,
> and is also what get_hardsect_size() returns in the kernel. For almost
> all disks this number is 512b, so you can do O_DIRECT on 512b alignment
> for a raw disk or for an ext3 filesystem. About the only thing that
> may not have a 512b hardware sector size is a CD-ROM.
Well, and SCSI devices configured to use 528 byte sectors and such...
-ben
--
Junk email? <a href="mailto:aart@kvack.org">aart@kvack.org</a>
prev parent reply other threads:[~2003-04-09 17:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 12:16 O_DIRECT alignment requirements ? Rob van Nieuwkerk
2003-04-09 15:48 ` Joel Becker
2003-04-09 16:53 ` Rob van Nieuwkerk
2003-04-09 17:59 ` Joel Becker
2003-04-09 19:15 ` Andrew Morton
2003-04-09 21:09 ` Rob van Nieuwkerk
2003-04-09 23:27 ` Joel Becker
2003-04-10 16:33 ` Rob van Nieuwkerk
2003-04-09 18:08 ` Benjamin LaHaise [this message]
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=20030409140832.A4621@redhat.com \
--to=bcrl@redhat.com \
--cc=Joel.Becker@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robn@verdi.et.tudelft.nl \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.