libnfs error writing to Amazon EFS

71 views
Skip to first unread message

jo...@berkeley.edu

unread,
Jun 21, 2018, 10:55:57 PM6/21/18
to libnfs
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!
Reply all
Reply to author
Forward
0 new messages