2 Copyright (C) 2010 by Ronnie Sahlberg <ronniesahlberg@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, see <http://www.gnu.org/licenses/>.
18 * This is the highlevel interface to access NFS resources using a posix-like interface
28 #define EXTERN __declspec( dllexport )
57 * Used for interfacing the async version of the api into an external eventsystem
59 EXTERN
int nfs_get_fd(struct nfs_context
*nfs
);
60 EXTERN
int nfs_which_events(struct nfs_context
*nfs
);
61 EXTERN
int nfs_service(struct nfs_context
*nfs
, int revents
);
62 EXTERN
int nfs_queue_length(struct nfs_context
*nfs
);
65 * Used if you need different credentials than the default for the current user.
67 EXTERN
void nfs_set_auth(struct nfs_context
*nfs
, AUTH
*auth
);
71 * When an operation failed, this function can extract a detailed error string.
73 EXTERN
char *nfs_get_error(struct nfs_context
*nfs
);
77 * Callback for all ASYNC nfs functions
79 typedef void (*nfs_cb
)(int err
, struct nfs_context
*nfs
, void *data
, void *private_data
);
82 * Callback for all ASYNC rpc functions
84 typedef void (*rpc_cb
)(struct rpc_context
*rpc
, int status
, void *data
, void *private_data
);
92 * Create an NFS c, the context.
94 * NULL : Failed to create a context.
95 * *nfs : A pointer to an nfs context.
97 EXTERN
struct nfs_context
*nfs_init_context(void);
99 * Destroy an nfs context.
101 EXTERN
void nfs_destroy_context(struct nfs_context
*nfs
);
107 * Get the maximum supported READ3 size by the server
109 EXTERN
uint64_t nfs_get_readmax(struct nfs_context
*nfs
);
112 * Get the maximum supported WRITE3 size by the server
114 EXTERN
uint64_t nfs_get_writemax(struct nfs_context
*nfs
);
123 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
124 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
126 * When the callback is invoked, status indicates the result:
129 * -errno : An error occured.
130 * data is the error string.
132 EXTERN
int nfs_mount_async(struct nfs_context
*nfs
, const char *server
, const char *exportname
, nfs_cb cb
, void *private_data
);
136 * 0 : The operation was successfull.
137 * -errno : The command failed.
139 EXTERN
int nfs_mount(struct nfs_context
*nfs
, const char *server
, const char *exportname
);
148 * Async stat(<filename>)
150 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
151 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
153 * When the callback is invoked, status indicates the result:
155 * data is struct stat *
156 * -errno : An error occured.
157 * data is the error string.
160 EXTERN
int nfs_stat_async(struct nfs_context
*nfs
, const char *path
, nfs_cb cb
, void *private_data
);
162 * Sync stat(<filename>)
164 * 0 : The operation was successfull.
165 * -errno : The command failed.
167 EXTERN
int nfs_stat(struct nfs_context
*nfs
, const char *path
, struct stat
*st
);
174 * Async fstat(nfsfh *)
176 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
177 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
179 * When the callback is invoked, status indicates the result:
181 * data is struct stat *
182 * -errno : An error occured.
183 * data is the error string.
185 EXTERN
int nfs_fstat_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, nfs_cb cb
, void *private_data
);
187 * Sync fstat(nfsfh *)
189 * 0 : The operation was successfull.
190 * -errno : The command failed.
192 EXTERN
int nfs_fstat(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, struct stat
*st
);
200 * Async open(<filename>)
202 * mode is a combination of the flags : O_RDOLNY, O_WRONLY, O_RDWR , O_SYNC
205 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
206 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
208 * When the callback is invoked, status indicates the result:
210 * data is a struct *nfsfh;
211 * The nfsfh is close using nfs_close().
212 * -errno : An error occured.
213 * data is the error string.
215 EXTERN
int nfs_open_async(struct nfs_context
*nfs
, const char *path
, int mode
, nfs_cb cb
, void *private_data
);
217 * Sync stat(<filename>)
219 * 0 : The operation was successfull. *nfsfh is filled in.
220 * -errno : The command failed.
222 EXTERN
int nfs_open(struct nfs_context
*nfs
, const char *path
, int mode
, struct nfsfh
**nfsfh
);
234 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
235 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
237 * When the callback is invoked, status indicates the result:
240 * -errno : An error occured.
241 * data is the error string.
243 EXTERN
int nfs_close_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, nfs_cb cb
, void *private_data
);
247 * 0 : The operation was successfull.
248 * -errno : The command failed.
250 EXTERN
int nfs_close(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
);
260 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
261 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
263 * When the callback is invoked, status indicates the result:
265 * status is numer of bytes read.
266 * data is a pointer to the returned data.
267 * -errno : An error occured.
268 * data is the error string.
270 EXTERN
int nfs_pread_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t offset
, uint64_t count
, nfs_cb cb
, void *private_data
);
274 * >=0 : numer of bytes read.
275 * -errno : An error occured.
277 EXTERN
int nfs_pread(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t offset
, uint64_t count
, char *buf
);
288 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
289 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
291 * When the callback is invoked, status indicates the result:
293 * status is numer of bytes read.
294 * data is a pointer to the returned data.
295 * -errno : An error occured.
296 * data is the error string.
298 EXTERN
int nfs_read_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t count
, nfs_cb cb
, void *private_data
);
302 * >=0 : numer of bytes read.
303 * -errno : An error occured.
305 EXTERN
int nfs_read(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t count
, char *buf
);
317 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
318 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
320 * When the callback is invoked, status indicates the result:
322 * status is numer of bytes written.
323 * -errno : An error occured.
324 * data is the error string.
326 EXTERN
int nfs_pwrite_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t offset
, uint64_t count
, char *buf
, nfs_cb cb
, void *private_data
);
330 * >=0 : numer of bytes written.
331 * -errno : An error occured.
333 EXTERN
int nfs_pwrite(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t offset
, uint64_t count
, char *buf
);
343 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
344 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
346 * When the callback is invoked, status indicates the result:
348 * status is numer of bytes written.
349 * -errno : An error occured.
350 * data is the error string.
352 EXTERN
int nfs_write_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t count
, char *buf
, nfs_cb cb
, void *private_data
);
356 * >=0 : numer of bytes written.
357 * -errno : An error occured.
359 EXTERN
int nfs_write(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t count
, char *buf
);
369 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
370 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
372 * When the callback is invoked, status indicates the result:
374 * data is uint64_t * for the current position.
375 * -errno : An error occured.
376 * data is the error string.
378 EXTERN
int nfs_lseek_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t offset
, int whence
, nfs_cb cb
, void *private_data
);
382 * >=0 : numer of bytes read.
383 * -errno : An error occured.
385 EXTERN
int nfs_lseek(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t offset
, int whence
, uint64_t *current_offset
);
395 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
396 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
398 * When the callback is invoked, status indicates the result:
400 * -errno : An error occured.
401 * data is the error string.
403 EXTERN
int nfs_fsync_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, nfs_cb cb
, void *private_data
);
408 * -errno : An error occured.
410 EXTERN
int nfs_fsync(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
);
421 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
422 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
424 * When the callback is invoked, status indicates the result:
426 * -errno : An error occured.
427 * data is the error string.
429 EXTERN
int nfs_truncate_async(struct nfs_context
*nfs
, const char *path
, uint64_t length
, nfs_cb cb
, void *private_data
);
434 * -errno : An error occured.
436 EXTERN
int nfs_truncate(struct nfs_context
*nfs
, const char *path
, uint64_t length
);
447 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
448 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
450 * When the callback is invoked, status indicates the result:
452 * -errno : An error occured.
453 * data is the error string.
455 EXTERN
int nfs_ftruncate_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t length
, nfs_cb cb
, void *private_data
);
460 * -errno : An error occured.
462 EXTERN
int nfs_ftruncate(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, uint64_t length
);
476 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
477 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
479 * When the callback is invoked, status indicates the result:
481 * -errno : An error occured.
482 * data is the error string.
484 EXTERN
int nfs_mkdir_async(struct nfs_context
*nfs
, const char *path
, nfs_cb cb
, void *private_data
);
489 * -errno : An error occured.
491 EXTERN
int nfs_mkdir(struct nfs_context
*nfs
, const char *path
);
502 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
503 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
505 * When the callback is invoked, status indicates the result:
507 * -errno : An error occured.
508 * data is the error string.
510 EXTERN
int nfs_rmdir_async(struct nfs_context
*nfs
, const char *path
, nfs_cb cb
, void *private_data
);
515 * -errno : An error occured.
517 EXTERN
int nfs_rmdir(struct nfs_context
*nfs
, const char *path
);
529 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
530 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
532 * When the callback is invoked, status indicates the result:
534 * data is a struct *nfsfh;
535 * -errno : An error occured.
536 * data is the error string.
538 EXTERN
int nfs_creat_async(struct nfs_context
*nfs
, const char *path
, int mode
, nfs_cb cb
, void *private_data
);
543 * -errno : An error occured.
545 EXTERN
int nfs_creat(struct nfs_context
*nfs
, const char *path
, int mode
, struct nfsfh
**nfsfh
);
555 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
556 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
558 * When the callback is invoked, status indicates the result:
560 * -errno : An error occured.
561 * data is the error string.
563 EXTERN
int nfs_mknod_async(struct nfs_context
*nfs
, const char *path
, int mode
, int dev
, nfs_cb cb
, void *private_data
);
568 * -errno : An error occured.
570 EXTERN
int nfs_mknod(struct nfs_context
*nfs
, const char *path
, int mode
, int dev
);
581 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
582 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
584 * When the callback is invoked, status indicates the result:
587 * -errno : An error occured.
588 * data is the error string.
590 EXTERN
int nfs_unlink_async(struct nfs_context
*nfs
, const char *path
, nfs_cb cb
, void *private_data
);
595 * -errno : An error occured.
597 EXTERN
int nfs_unlink(struct nfs_context
*nfs
, const char *path
);
610 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
611 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
613 * When struct nfsdir * is returned, this resource is closed/freed by calling nfs_closedir()
615 * When the callback is invoked, status indicates the result:
617 * data is struct nfsdir *
618 * -errno : An error occured.
619 * data is the error string.
621 EXTERN
int nfs_opendir_async(struct nfs_context
*nfs
, const char *path
, nfs_cb cb
, void *private_data
);
626 * -errno : An error occured.
628 EXTERN
int nfs_opendir(struct nfs_context
*nfs
, const char *path
, struct nfsdir
**nfsdir
);
636 struct nfsdirent
*next
;
640 /* some extra fields we get for free through the READDIRPLUS3 call. You need libnfs-raw-nfs.h for these */
641 uint32_t type
; /* NF3REG, NF3DIR, NF3BLK, ... */
644 struct timeval atime
;
645 struct timeval mtime
;
646 struct timeval ctime
;
649 * nfs_readdir() never blocks, so no special sync/async versions are available
651 EXTERN
struct nfsdirent
*nfs_readdir(struct nfs_context
*nfs
, struct nfsdir
*nfsdir
);
659 * nfs_closedir() never blocks, so no special sync/async versions are available
661 EXTERN
void nfs_closedir(struct nfs_context
*nfs
, struct nfsdir
*nfsdir
);
669 * Async statvfs(<dirname>)
671 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
672 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
674 * When the callback is invoked, status indicates the result:
676 * data is struct statvfs *
677 * -errno : An error occured.
678 * data is the error string.
681 EXTERN
int nfs_statvfs_async(struct nfs_context
*nfs
, const char *path
, nfs_cb cb
, void *private_data
);
683 * Sync statvfs(<dirname>)
685 * 0 : The operation was successfull.
686 * -errno : The command failed.
688 EXTERN
int nfs_statvfs(struct nfs_context
*nfs
, const char *path
, struct statvfs
*svfs
);
695 * Async readlink(<name>)
697 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
698 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
700 * When the callback is invoked, status indicates the result:
703 * data is only valid during the callback and is automatically freed when the callback returns.
704 * -errno : An error occured.
705 * data is the error string.
708 EXTERN
int nfs_readlink_async(struct nfs_context
*nfs
, const char *path
, nfs_cb cb
, void *private_data
);
710 * Sync readlink(<name>)
712 * 0 : The operation was successfull.
713 * -errno : The command failed.
715 EXTERN
int nfs_readlink(struct nfs_context
*nfs
, const char *path
, char *buf
, int bufsize
);
723 * Async chmod(<name>)
725 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
726 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
728 * When the callback is invoked, status indicates the result:
731 * -errno : An error occured.
732 * data is the error string.
734 EXTERN
int nfs_chmod_async(struct nfs_context
*nfs
, const char *path
, int mode
, nfs_cb cb
, void *private_data
);
738 * 0 : The operation was successfull.
739 * -errno : The command failed.
741 EXTERN
int nfs_chmod(struct nfs_context
*nfs
, const char *path
, int mode
);
749 * Async fchmod(<handle>)
751 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
752 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
754 * When the callback is invoked, status indicates the result:
757 * -errno : An error occured.
758 * data is the error string.
760 EXTERN
int nfs_fchmod_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, int mode
, nfs_cb cb
, void *private_data
);
762 * Sync fchmod(<handle>)
764 * 0 : The operation was successfull.
765 * -errno : The command failed.
767 EXTERN
int nfs_fchmod(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, int mode
);
775 * Async chown(<name>)
777 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
778 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
780 * When the callback is invoked, status indicates the result:
783 * -errno : An error occured.
784 * data is the error string.
786 EXTERN
int nfs_chown_async(struct nfs_context
*nfs
, const char *path
, int uid
, int gid
, nfs_cb cb
, void *private_data
);
790 * 0 : The operation was successfull.
791 * -errno : The command failed.
793 EXTERN
int nfs_chown(struct nfs_context
*nfs
, const char *path
, int uid
, int gid
);
801 * Async fchown(<handle>)
803 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
804 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
806 * When the callback is invoked, status indicates the result:
809 * -errno : An error occured.
810 * data is the error string.
812 EXTERN
int nfs_fchown_async(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, int uid
, int gid
, nfs_cb cb
, void *private_data
);
814 * Sync fchown(<handle>)
816 * 0 : The operation was successfull.
817 * -errno : The command failed.
819 EXTERN
int nfs_fchown(struct nfs_context
*nfs
, struct nfsfh
*nfsfh
, int uid
, int gid
);
828 * Async utimes(<path>)
830 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
831 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
833 * When the callback is invoked, status indicates the result:
836 * -errno : An error occured.
837 * data is the error string.
839 EXTERN
int nfs_utimes_async(struct nfs_context
*nfs
, const char *path
, struct timeval
*times
, nfs_cb cb
, void *private_data
);
841 * Sync utimes(<path>)
843 * 0 : The operation was successfull.
844 * -errno : The command failed.
846 EXTERN
int nfs_utimes(struct nfs_context
*nfs
, const char *path
, struct timeval
*times
);
853 * Async utime(<path>)
855 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
856 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
858 * When the callback is invoked, status indicates the result:
861 * -errno : An error occured.
862 * data is the error string.
865 EXTERN
int nfs_utime_async(struct nfs_context
*nfs
, const char *path
, struct utimbuf
*times
, nfs_cb cb
, void *private_data
);
869 * 0 : The operation was successfull.
870 * -errno : The command failed.
872 EXTERN
int nfs_utime(struct nfs_context
*nfs
, const char *path
, struct utimbuf
*times
);
881 * Async access(<path>)
883 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
884 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
886 * When the callback is invoked, status indicates the result:
889 * -errno : An error occured.
890 * data is the error string.
892 EXTERN
int nfs_access_async(struct nfs_context
*nfs
, const char *path
, int mode
, nfs_cb cb
, void *private_data
);
894 * Sync access(<path>)
896 * 0 : The operation was successfull.
897 * -errno : The command failed.
899 EXTERN
int nfs_access(struct nfs_context
*nfs
, const char *path
, int mode
);
908 * Async symlink(<path>)
910 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
911 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
913 * When the callback is invoked, status indicates the result:
916 * -errno : An error occured.
917 * data is the error string.
919 EXTERN
int nfs_symlink_async(struct nfs_context
*nfs
, const char *oldpath
, const char *newpath
, nfs_cb cb
, void *private_data
);
921 * Sync symlink(<path>)
923 * 0 : The operation was successfull.
924 * -errno : The command failed.
926 EXTERN
int nfs_symlink(struct nfs_context
*nfs
, const char *oldpath
, const char *newpath
);
933 * Async rename(<oldpath>, <newpath>)
935 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
936 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
938 * When the callback is invoked, status indicates the result:
941 * -errno : An error occured.
942 * data is the error string.
944 EXTERN
int nfs_rename_async(struct nfs_context
*nfs
, const char *oldpath
, const char *newpath
, nfs_cb cb
, void *private_data
);
946 * Sync rename(<oldpath>, <newpath>)
948 * 0 : The operation was successfull.
949 * -errno : The command failed.
951 EXTERN
int nfs_rename(struct nfs_context
*nfs
, const char *oldpath
, const char *newpath
);
959 * Async link(<oldpath>, <newpath>)
961 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
962 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
964 * When the callback is invoked, status indicates the result:
967 * -errno : An error occured.
968 * data is the error string.
970 EXTERN
int nfs_link_async(struct nfs_context
*nfs
, const char *oldpath
, const char *newpath
, nfs_cb cb
, void *private_data
);
972 * Sync link(<oldpath>, <newpath>)
974 * 0 : The operation was successfull.
975 * -errno : The command failed.
977 EXTERN
int nfs_link(struct nfs_context
*nfs
, const char *oldpath
, const char *newpath
);
985 * NOTE: You must include 'libnfs-raw-mount.h' to get the definitions of the
986 * returned structures.
988 * This function will return the list of exports from an NFS server.
991 * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
992 * <0 : An error occured when trying to set up the operation. The callback will not be invoked.
994 * When the callback is invoked, status indicates the result:
996 * data is a pointer to an exports pointer:
997 * exports export = *(exports *)data;
998 * -errno : An error occured.
999 * data is the error string.
1001 EXTERN
int mount_getexports_async(struct rpc_context
*rpc
, const char *server
, rpc_cb cb
, void *private_data
);
1003 * Sync getexports(<server>)
1005 * NULL : something failed
1006 * exports export : a linked list of exported directories
1008 * returned data must be freed by calling mount_free_export_list(exportnode);
1010 EXTERN
struct exportnode
*mount_getexports(const char *server
);
1012 EXTERN
void mount_free_export_list(struct exportnode
*exports
);
1015 //qqq replace later with lseek(cur, 0)
1016 uint64_t nfs_get_current_offset(struct nfsfh
*nfsfh
);
1022 struct nfs_server_list
{
1023 struct nfs_server_list
*next
;
1028 * Sync find_local_servers(<server>)
1029 * This function will probe all local networks for NFS server. This function will
1030 * block for one second while awaiting for all nfs servers to respond.
1033 * NULL : something failed
1035 * struct nfs_server_list : a linked list of all discovered servers
1037 * returned data must be freed by nfs_free_srvr_list(srv);
1039 struct nfs_server_list
*nfs_find_local_servers(void);
1040 void free_nfs_srvr_list(struct nfs_server_list
*srv
);