X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs.h;h=93f8c3c06c1acf8c43625dcee7c52decdbf0dd19;hb=23701e42467cbd3b371dee70b2086336c497b863;hp=2debb8b7660e9a6130e1b50bd920c47a9081e478;hpb=84004dbf9bb2ab8a7f8b968affc53ee3065fa911;p=deb_libnfs.git diff --git a/include/libnfs.h b/include/libnfs.h index 2debb8b..93f8c3c 100644 --- a/include/libnfs.h +++ b/include/libnfs.h @@ -67,6 +67,16 @@ void nfs_destroy_context(struct nfs_context *nfs); struct nfsfh; +/* + * Get the maximum supported READ3 size by the server + */ +size_t nfs_get_readmax(struct nfs_context *nfs); + +/* + * Get the maximum supported WRITE3 size by the server + */ +size_t nfs_get_writemax(struct nfs_context *nfs); + /* * MOUNT THE EXPORT @@ -83,14 +93,14 @@ struct nfsfh; * -errno : An error occured. * data is the error string. */ -int nfs_mount_async(struct nfs_context *nfs, const char *server, const char *export, nfs_cb cb, void *private_data); +int nfs_mount_async(struct nfs_context *nfs, const char *server, const char *exportname, nfs_cb cb, void *private_data); /* * Sync nfs mount. * Function returns * 0 : The operation was successfull. * -errno : The command failed. */ -int nfs_mount_sync(struct nfs_context *nfs, const char *server, const char *export); +int nfs_mount_sync(struct nfs_context *nfs, const char *server, const char *exportname);