repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get rid of all remaining printfs from the library
[deb_libnfs.git]
/
examples
/
nfsclient-async.c
diff --git
a/examples/nfsclient-async.c
b/examples/nfsclient-async.c
index 4c7624c7d0c6450655e2b832e84fd039213a3d9b..b630f4e794c7ce0305baa332dfbec805470a52aa 100644
(file)
--- a/
examples/nfsclient-async.c
+++ b/
examples/nfsclient-async.c
@@
-19,7
+19,7
@@
*/
#define SERVER "10.1.1.27"
*/
#define SERVER "10.1.1.27"
-#define EXPORT "/
shared
"
+#define EXPORT "/
VIRTUAL
"
#define NFSFILE "/BOOKS/Classics/Dracula.djvu"
#define NFSDIR "/BOOKS/Classics/"
#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);
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);
}
printf("Failed to start async nfs open\n");
exit(10);
}