xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 728] New: XFS issue with AIO + DIO + sparse files

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 728] New: XFS issue with AIO + DIO + sparse files
From: bugzilla-daemon@xxxxxxxxxxx
Date: Fri, 24 Nov 2006 20:03:28 -0800
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=728

           Summary: XFS issue with AIO + DIO + sparse files
           Product: Linux XFS
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.0
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XFS kernel code
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: sandeen-xfs@xxxxxxxxxxx


------- Additional Comments From rtc@xxxxxx  2006-11-24 22:38 EST -------
Yes, so it seems. I reproduced it with
http://developer.osdl.org/daniel/AIO/TESTS/aiodio_sparse.c plus the following 
patch:

--- aiodio_sparse.c.1   2003-11-12 20:53:46.000000000 +0100
+++ aiodio_sparse.c     2006-11-25 03:48:33.347155503 +0100
@@ -29,8 +29,8 @@
        p = buf;
 
        while (size > 0) {
-               if (*buf != 0) {
-                       fprintf(stderr, "non zero buffer at buf[%d] => 
0x%02x,%02x,%02x,%02x\n",
+               if (*buf != 1) {
+                       fprintf(stderr, "non one buffer at buf[%d] => 
0x%02x,%02x,%02x,%02x\n",
                                buf - p, (unsigned int)buf[0],
                                size > 1 ? (unsigned int)buf[1] : 0,
                                size > 2 ? (unsigned int)buf[2] : 0,
@@ -147,7 +147,7 @@
                        unlink(filename);
                        return;
                }
-               memset(bufptr, 0, writesize);
+               memset(bufptr, 1, writesize);
                io_prep_pwrite(iocbs[i], fd, bufptr, writesize, offset);
                offset += writesize;
        }

(gcc -g -Wall -O2 aiodio_sparse.c -o aiodio_sparse -laio)

I cross-checked on an ext3 partition where it works fine. I also checked the
current FC6 non-xen kernel (2.6.18-1.2849.fc6), which shows the same problem. So
it is a general XFS problem, unrelated to xen.

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [xfs-masters] [Bug 728] New: XFS issue with AIO + DIO + sparse files, bugzilla-daemon <=