Hi,
I'm trying to use libnfs to read from and write to Amazon EFS.
I'm getting errors when using the nfs_pwrite(..) interface with buffers larger than a few KBs. If for instance I pass a buffer with 3900 bytes, libnfs fails in lib/libnfs-zdr.c:
# at this point zdrs->pos=256, size=3900, zdrs->size=4096
173 if (zdrs->pos + (int)*size > zdrs->size) {
177 return FALSE;
178 }
Similarly, nfs-cp utility also fails when copying a file to EFS, as can be seen when I do the following commands.
# copying a file from EFS to local server works well
copied 41 bytes
# however, copying to EFS does not work (a file with 0 length is created)
Failed to write to dest file
Any ideas how to make this work?
Thanks!