[lkml]   [2004]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: dd PATCH: add conv=direct
    On Wed, Apr 07, 2004 at 11:18:41AM -0700, Andrew Morton wrote:
    > Andy Isaacson <> wrote:
    > > > While you're there, please add an fsync-before-closing option.
    > >
    > > Easy enough. How does this look? Note that C_TWOBUFS ensures the
    > > output buffer is getpagesize()-aligned.
    > Looks nice and simple. You'll need an ext2 filesystem to test it under 2.4.

    I tested against a block device. Easier to just "swapoff /dev/hda2"
    than to find space to make a new filesystem.

    > Be aware that it's rather a challenge to actually get the O_DIRECT #define
    > in scope under some glibc versions. I think you need to define _GNU_SOURCE
    > or something like that.

    Yeah, I had to -D_GNU_SOURCE to build standalone, but coreutils'
    makefile seems to do OK.

    Would there be any reason to allow O_DIRECT on the read side?

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:02    [W:4.359 / U:0.220 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site