repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e9dcb7
)
[add] - list nfs servers nfsclient-sync
author
unknown
<memphis@machzwo.de>
Mon, 12 Sep 2011 17:58:23 +0000
(19:58 +0200)
committer
unknown
<memphis@machzwo.de>
Mon, 12 Sep 2011 18:01:42 +0000
(20:01 +0200)
examples/nfsclient-sync.c
patch
|
blob
|
blame
|
history
diff --git
a/examples/nfsclient-sync.c
b/examples/nfsclient-sync.c
index 449d8e3342d8abaf1764bf8b3d095a6315e8930a..bc19f48752c5d45be014e44f31c46e2487f6419e 100644
(file)
--- a/
examples/nfsclient-sync.c
+++ b/
examples/nfsclient-sync.c
@@
-61,6
+61,21
@@
struct client {
};
};
+void PrintServerList()
+{
+ struct nfs_server_list *srvrs;
+ struct nfs_server_list *srv;
+
+ srvrs = nfs_find_local_servers();
+
+ for (srv=srvrs; srv; srv = srv->next)
+ {
+ printf("Found nfs server: %s\n", srv->addr);
+
+ }
+ free_nfs_srvr_list(srvrs);
+}
+
char buf[3*1024*1024+337];
int main(int argc _U_, char *argv[] _U_)
char buf[3*1024*1024+337];
int main(int argc _U_, char *argv[] _U_)
@@
-86,6
+101,9
@@
int main(int argc _U_, char *argv[] _U_)
client.server = SERVER;
client.export = EXPORT;
client.is_finished = 0;
client.server = SERVER;
client.export = EXPORT;
client.is_finished = 0;
+
+ PrintServerList();
+
export = mount_getexports(SERVER);
if (export != NULL) {
printf("exports on server %s\n", SERVER);
export = mount_getexports(SERVER);
if (export != NULL) {
printf("exports on server %s\n", SERVER);