[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


https://bugzilla.samba.org/show_bug.cgi?id=8177

--- 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 =
open("/vmfs/volumes/4e9007cc-5eb44d46-eace-0019b9e8ff4d/backups/backuptest/backuptest_7-flat.vmdk",O_RDONLY);
    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);

    close(fd);
}

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.

Remco

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