lkml.org 
[lkml]   [2007]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 0/6] UDF cleanup and fixes
    Eric Sandeen wrote:

    > Jan -
    >
    > I ran 2.6.21 + your udf patches from -mm through some udf tests which,
    > oddly enough, can be found in the xfstests test suite in xfsprogs cvs
    > from sgi.
    >
    > It looks much better than before, but I was able to trip some of your
    > asserts. They were generated while fsx was running. The good news,
    > though, is that fsx passed. :) I haven't looked into it much further
    > yet, but wanted to let you know.

    Here's a short hacky testcase that trips the assert around line 123 of
    udf/truncate.c I'm looking into it but you may immediately see what the
    problem is...?


    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <unistd.h>

    int main(int argc, char ** argv)
    {
    int fd;
    char buf[65536];

    fd = open("testfile", O_WRONLY|O_CREAT);
    lseek(fd, 16797, SEEK_SET);
    write(fd, buf, 22935);
    close(fd);

    fd = open("testfile", O_WRONLY);
    lseek(fd, 31281, SEEK_SET);
    write(fd, buf, 9592);
    close(fd);
    }

    -Eric
    -
    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: 2007-05-22 22:43    [W:4.660 / U:0.260 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site