X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-async.c;h=b630f4e794c7ce0305baa332dfbec805470a52aa;hb=440a7dfced274c078b61fdb87301d26a4177fc70;hp=4c7624c7d0c6450655e2b832e84fd039213a3d9b;hpb=7d0397cf0f1ce2d46dccf0ef3bb231433a7cbace;p=deb_libnfs.git diff --git a/examples/nfsclient-async.c b/examples/nfsclient-async.c index 4c7624c..b630f4e 100644 --- a/examples/nfsclient-async.c +++ b/examples/nfsclient-async.c @@ -19,7 +19,7 @@ */ #define SERVER "10.1.1.27" -#define EXPORT "/shared" +#define EXPORT "/VIRTUAL" #define NFSFILE "/BOOKS/Classics/Dracula.djvu" #define NFSDIR "/BOOKS/Classics/" @@ -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); }