[lkml]   [2004]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: True fsync() in Linux (on IDE)
    On Thu, 2004-03-18 at 12:11, Chris Mason wrote:

    > > I believe some missed set_page_writeback() calls caused fsync() to never
    > > really wait on anything, pretty broken... IIRC, it's fixed in latest
    > > -mm, or maybe it's just pending for next release.
    > This should have only been broken in -mm. Which kernels exactly are you
    > comparing? Maybe the 3ware array defaults to different writecache
    > settings under 2.6?

    I'm trying RH AS 3.0 kernel, however I have the same behavior on my
    SuSE 8.2 workstation.

    I use 2.6.3 kernel for tests now (It is not the latest I know)
    EXT3 file system.

    3WARE has writeback cache setting in both cases.

    Here is the test program I was using:

    #include <stdio.h>
    #include <fcntl.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <errno.h>

    char buffer[4096] __attribute__((__aligned__(4096)));

    int rc2,rc;
    int i;
    rc=open("write",O_RDWR | O_CREAT,0666);
    if (rc==-1) printf("Error at open: %d\n",errno);
    if (rc2<0)
    printf("Error code: %d\n",errno);


    Peter Zaitsev, Senior Support Engineer
    MySQL AB,

    Meet the MySQL Team at User Conference 2004! (April 14-16, Orlando,FL)

    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:01    [W:0.021 / U:51.248 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site