[Bug 8177] Problems with big sparsed files

samba-bugs at samba.org samba-bugs at samba.org
Sun Mar 11 04:52:56 MDT 2012


--- Comment #15 from Remco Hosman <remco at hosman.xs4all.nl> 2012-03-11 10:52:55 UTC ---
confirmed. the following text program demonstrates the problem:
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main(void) {
    int fd, size;
    char data[300000];

    fd =
    printf("open() : %d\n",fd);

    size = read(fd, data, 262144);
    printf("read() : %d\n",size);

    size = read(fd, data, 262143);
    printf("read() : %d\n",size);


the first read() returns 262144, as it should. the 2nd returns -1 on VMFS when
the VM is running.
The required block-alignment is a multiple of 512 bytes.


Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list