Displaying 1 result from an estimated 1 matches for "glfs_pread".
2018 Jan 12
1
Reading over than the file size on dispersed volume
...fallocate -l 667417616 test3
I have to calculate to make MD5 after uploading.
But the total size is different when reading the files to EOF. and MD5 is
different, too.
( I write 42byte header in each files when create the file )
char buf[128*1024] = {0,};
offset += 42;
while ((retr = glfs_pread(fd, (void*)&buf, sizeof(buf), offset, 0)) >
0) {
DEBUG("retr : %ld, offset : %ld(%d)", retr,offset,errno) ;
offset += retr;
MD5_Update(&context, buf, retr);
}
DEBUG("total : %d", offset);
[DEBUG] retr : 130394, offset : 42(0) (star...