Add support in read/pread to be aware of the Maximum Read size that the server
[deb_libnfs.git] / examples / nfsclient-async.c
index 4abb901a1c063a383e85b1ba629b881d8373b15c..b630f4e794c7ce0305baa332dfbec805470a52aa 100644 (file)
@@ -138,8 +138,8 @@ void nfs_open_cb(int status, struct nfs_context *nfs, void *data, void *private_
        nfsfh         = data;
        client->nfsfh = nfsfh;
        printf("Got reply from server for open(%s). Handle:%p\n", NFSFILE, data);
-       printf("Read first 16 bytes\n");
-       if (nfs_pread_async(nfs, nfsfh, 0, 16, nfs_read_cb, client) != 0) {
+       printf("Read first 64 bytes\n");
+       if (nfs_pread_async(nfs, nfsfh, 0, 64, nfs_read_cb, client) != 0) {
                printf("Failed to start async nfs open\n");
                exit(10);
        }
@@ -187,7 +187,7 @@ void nfs_mount_cb(int status, struct nfs_context *nfs, void *data, void *private
 
 
 
-int main(int argc, char *argv[])
+int main(int argc _U_, char *argv[] _U_)
 {
        struct nfs_context *nfs;
        struct pollfd pfd;