lkml.org 
[lkml]   [2003]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: DIRECT IO for ext3/ext2.
    <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).


    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:58    [W:0.027 / U:118.900 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site