Commit 2488a379 authored by Brad Hards's avatar Brad Hards Committed by Rusty Russell

nfs: spelling fixes.

parent edfbb7f2
...@@ -51,7 +51,7 @@ typedef void (*rpc_cb)(struct rpc_context *rpc, int status, void *data, void *pr ...@@ -51,7 +51,7 @@ typedef void (*rpc_cb)(struct rpc_context *rpc, int status, void *data, void *pr
* Async connection to the tcp port at server:port. * Async connection to the tcp port at server:port.
* Function returns * Function returns
* 0 : The connection was initiated. Once the connection establish finishes, the callback will be invoked. * 0 : The connection was initiated. Once the connection establish finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the connection. The callback will not be invoked. * <0 : An error occurred when trying to set up the connection. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : The tcp connection was successfully established. * RPC_STATUS_SUCCESS : The tcp connection was successfully established.
...@@ -79,12 +79,12 @@ void rpc_set_error(struct rpc_context *rpc, char *error_string, ...); ...@@ -79,12 +79,12 @@ void rpc_set_error(struct rpc_context *rpc, char *error_string, ...);
* Call PORTMAPPER/NULL * Call PORTMAPPER/NULL
* Function returns * Function returns
* 0 : The connection was initiated. Once the connection establish finishes, the callback will be invoked. * 0 : The connection was initiated. Once the connection establish finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the connection. The callback will not be invoked. * <0 : An error occurred when trying to set up the connection. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the portmapper daemon. * RPC_STATUS_SUCCESS : We got a successful response from the portmapper daemon.
* data is NULL. * data is NULL.
* RPC_STATUS_ERROR : An error occured when trying to contact the portmapper. * RPC_STATUS_ERROR : An error occurred when trying to contact the portmapper.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -96,12 +96,12 @@ int rpc_pmap_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data); ...@@ -96,12 +96,12 @@ int rpc_pmap_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data);
* Call PORTMAPPER/GETPORT. * Call PORTMAPPER/GETPORT.
* Function returns * Function returns
* 0 : The connection was initiated. Once the connection establish finishes, the callback will be invoked. * 0 : The connection was initiated. Once the connection establish finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the connection. The callback will not be invoked. * <0 : An error occurred when trying to set up the connection. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the portmapper daemon. * RPC_STATUS_SUCCESS : We got a successful response from the portmapper daemon.
* data is a (uint32_t *), containing the port returned. * data is a (uint32_t *), containing the port returned.
* RPC_STATUS_ERROR : An error occured when trying to contact the portmapper. * RPC_STATUS_ERROR : An error occurred when trying to contact the portmapper.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -120,12 +120,12 @@ int mountstat3_to_errno(int error); ...@@ -120,12 +120,12 @@ int mountstat3_to_errno(int error);
* Call MOUNT/NULL * Call MOUNT/NULL
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the mount daemon. * RPC_STATUS_SUCCESS : We got a successful response from the mount daemon.
* data is NULL. * data is NULL.
* RPC_STATUS_ERROR : An error occured when trying to contact the mount daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the mount daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -136,12 +136,12 @@ int rpc_mount_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data) ...@@ -136,12 +136,12 @@ int rpc_mount_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data)
* Call MOUNT/MNT * Call MOUNT/MNT
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the mount daemon. * RPC_STATUS_SUCCESS : We got a successful response from the mount daemon.
* data is mountres3 *. * data is mountres3 *.
* RPC_STATUS_ERROR : An error occured when trying to contact the mount daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the mount daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -152,12 +152,12 @@ int rpc_mount_mnt_async(struct rpc_context *rpc, rpc_cb cb, char *export, void * ...@@ -152,12 +152,12 @@ int rpc_mount_mnt_async(struct rpc_context *rpc, rpc_cb cb, char *export, void *
* Call MOUNT/DUMP * Call MOUNT/DUMP
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the mount daemon. * RPC_STATUS_SUCCESS : We got a successful response from the mount daemon.
* data is a mountlist. * data is a mountlist.
* RPC_STATUS_ERROR : An error occured when trying to contact the mount daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the mount daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -168,12 +168,12 @@ int rpc_mount_dump_async(struct rpc_context *rpc, rpc_cb cb, void *private_data) ...@@ -168,12 +168,12 @@ int rpc_mount_dump_async(struct rpc_context *rpc, rpc_cb cb, void *private_data)
* Call MOUNT/UMNT * Call MOUNT/UMNT
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the mount daemon. * RPC_STATUS_SUCCESS : We got a successful response from the mount daemon.
* data NULL. * data NULL.
* RPC_STATUS_ERROR : An error occured when trying to contact the mount daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the mount daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -184,12 +184,12 @@ int rpc_mount_umnt_async(struct rpc_context *rpc, rpc_cb cb, char *export, void ...@@ -184,12 +184,12 @@ int rpc_mount_umnt_async(struct rpc_context *rpc, rpc_cb cb, char *export, void
* Call MOUNT/UMNTALL * Call MOUNT/UMNTALL
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the mount daemon. * RPC_STATUS_SUCCESS : We got a successful response from the mount daemon.
* data NULL. * data NULL.
* RPC_STATUS_ERROR : An error occured when trying to contact the mount daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the mount daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -200,12 +200,12 @@ int rpc_mount_umntall_async(struct rpc_context *rpc, rpc_cb cb, void *private_da ...@@ -200,12 +200,12 @@ int rpc_mount_umntall_async(struct rpc_context *rpc, rpc_cb cb, void *private_da
* Call MOUNT/EXPORT * Call MOUNT/EXPORT
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the mount daemon. * RPC_STATUS_SUCCESS : We got a successful response from the mount daemon.
* data is an exports. * data is an exports.
* RPC_STATUS_ERROR : An error occured when trying to contact the mount daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the mount daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -226,12 +226,12 @@ int nfsstat3_to_errno(int error); ...@@ -226,12 +226,12 @@ int nfsstat3_to_errno(int error);
* Call NFS/NULL * Call NFS/NULL
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is NULL. * data is NULL.
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -242,12 +242,12 @@ int rpc_nfs_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data); ...@@ -242,12 +242,12 @@ int rpc_nfs_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data);
* Call NFS/GETATTR * Call NFS/GETATTR
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is GETATTR3res * data is GETATTR3res
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -258,12 +258,12 @@ int rpc_nfs_getattr_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh ...@@ -258,12 +258,12 @@ int rpc_nfs_getattr_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh
* Call NFS/LOOKUP * Call NFS/LOOKUP
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is LOOKUP3res * data is LOOKUP3res
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -274,12 +274,12 @@ int rpc_nfs_lookup_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -274,12 +274,12 @@ int rpc_nfs_lookup_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/ACCESS * Call NFS/ACCESS
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is ACCESS3res * data is ACCESS3res
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -290,12 +290,12 @@ int rpc_nfs_access_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -290,12 +290,12 @@ int rpc_nfs_access_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/READ * Call NFS/READ
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is ACCESS3res * data is ACCESS3res
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -306,12 +306,12 @@ int rpc_nfs_read_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, n ...@@ -306,12 +306,12 @@ int rpc_nfs_read_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, n
* Call NFS/WRITE * Call NFS/WRITE
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is WRITE3res * * data is WRITE3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -322,12 +322,12 @@ int rpc_nfs_write_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -322,12 +322,12 @@ int rpc_nfs_write_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/COMMIT * Call NFS/COMMIT
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is COMMIT3res * * data is COMMIT3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -339,12 +339,12 @@ int rpc_nfs_commit_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -339,12 +339,12 @@ int rpc_nfs_commit_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/SETATTR * Call NFS/SETATTR
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is SETATTR3res * * data is SETATTR3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -358,12 +358,12 @@ int rpc_nfs_setattr_async(struct rpc_context *rpc, rpc_cb cb, struct SETATTR3arg ...@@ -358,12 +358,12 @@ int rpc_nfs_setattr_async(struct rpc_context *rpc, rpc_cb cb, struct SETATTR3arg
* Call NFS/MKDIR * Call NFS/MKDIR
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is MKDIR3res * * data is MKDIR3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -378,12 +378,12 @@ int rpc_nfs_mkdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -378,12 +378,12 @@ int rpc_nfs_mkdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/RMDIR * Call NFS/RMDIR
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is RMDIR3res * * data is RMDIR3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -397,12 +397,12 @@ int rpc_nfs_rmdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -397,12 +397,12 @@ int rpc_nfs_rmdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/CREATE * Call NFS/CREATE
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is CREATE3res * * data is CREATE3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -416,12 +416,12 @@ int rpc_nfs_create_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -416,12 +416,12 @@ int rpc_nfs_create_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/REMOVE * Call NFS/REMOVE
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is REMOVE3res * * data is REMOVE3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -434,12 +434,12 @@ int rpc_nfs_remove_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -434,12 +434,12 @@ int rpc_nfs_remove_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/REMOVE * Call NFS/REMOVE
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is READDIR3res * * data is READDIR3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -450,12 +450,12 @@ int rpc_nfs_readdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh ...@@ -450,12 +450,12 @@ int rpc_nfs_readdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh
* Call NFS/FSSTAT * Call NFS/FSSTAT
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is FSSTAT3res * data is FSSTAT3res
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -469,12 +469,12 @@ int rpc_nfs_fsstat_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, ...@@ -469,12 +469,12 @@ int rpc_nfs_fsstat_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
* Call NFS/READLINK * Call NFS/READLINK
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is READLINK3res * * data is READLINK3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -487,12 +487,12 @@ int rpc_nfs_readlink_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *f ...@@ -487,12 +487,12 @@ int rpc_nfs_readlink_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *f
* Call NFS/SYMLINK * Call NFS/SYMLINK
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is SYMLINK3res * * data is SYMLINK3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -504,12 +504,12 @@ int rpc_nfs_symlink_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh ...@@ -504,12 +504,12 @@ int rpc_nfs_symlink_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh
* Call NFS/RENAME * Call NFS/RENAME
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is RENAME3res * * data is RENAME3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -522,12 +522,12 @@ int rpc_nfs_rename_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *old ...@@ -522,12 +522,12 @@ int rpc_nfs_rename_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *old
* Call NFS/LINK * Call NFS/LINK
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is LINK3res * * data is LINK3res *
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
...@@ -547,12 +547,12 @@ int rpc_nfs_link_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *file, ...@@ -547,12 +547,12 @@ int rpc_nfs_link_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *file,
* Call NFSACL/NULL * Call NFSACL/NULL
* Function returns * Function returns
* 0 : The call was initiated. The callback will be invoked when the call completes. * 0 : The call was initiated. The callback will be invoked when the call completes.
* <0 : An error occured when trying to set up the call. The callback will not be invoked. * <0 : An error occurred when trying to set up the call. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon. * RPC_STATUS_SUCCESS : We got a successful response from the nfs daemon.
* data is NULL. * data is NULL.
* RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. * RPC_STATUS_ERROR : An error occurred when trying to contact the nfs daemon.
* data is the error string. * data is the error string.
* RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete.
* data is NULL. * data is NULL.
......
...@@ -85,19 +85,19 @@ struct nfsfh; ...@@ -85,19 +85,19 @@ struct nfsfh;
* This function will try to connect to the server and mount the export. * This function will try to connect to the server and mount the export.
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * 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 *export, nfs_cb cb, void *private_data);
/* /*
* Sync nfs mount. * Sync nfs mount.
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -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 *export);
...@@ -112,12 +112,12 @@ int nfs_mount_sync(struct nfs_context *nfs, const char *server, const char *expo ...@@ -112,12 +112,12 @@ int nfs_mount_sync(struct nfs_context *nfs, const char *server, const char *expo
* Async stat(<filename>) * Async stat(<filename>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is struct stat * * data is struct stat *
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
struct stat; struct stat;
...@@ -125,7 +125,7 @@ int nfs_stat_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *p ...@@ -125,7 +125,7 @@ int nfs_stat_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *p
/* /*
* Sync stat(<filename>) * Sync stat(<filename>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_stat_sync(struct nfs_context *nfs, const char *path, struct stat *st); int nfs_stat_sync(struct nfs_context *nfs, const char *path, struct stat *st);
...@@ -138,19 +138,19 @@ int nfs_stat_sync(struct nfs_context *nfs, const char *path, struct stat *st); ...@@ -138,19 +138,19 @@ int nfs_stat_sync(struct nfs_context *nfs, const char *path, struct stat *st);
* Async fstat(nfsfh *) * Async fstat(nfsfh *)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is struct stat * * data is struct stat *
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_fstat_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, void *private_data); int nfs_fstat_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, void *private_data);
/* /*
* Sync fstat(nfsfh *) * Sync fstat(nfsfh *)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_fstat_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat *st); int nfs_fstat_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat *st);
...@@ -167,20 +167,20 @@ int nfs_fstat_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat *st ...@@ -167,20 +167,20 @@ int nfs_fstat_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat *st
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is a struct *nfsfh; * data is a struct *nfsfh;
* The nfsfh is close using nfs_close(). * The nfsfh is close using nfs_close().
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_open_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data); int nfs_open_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data);
/* /*
* Sync open(<filename>) * Sync open(<filename>)
* Function returns * Function returns
* 0 : The operation was successfull. *nfsfh is filled in. * 0 : The operation was successful. *nfsfh is filled in.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_open_sync(struct nfs_context *nfs, const char *path, int mode, struct nfsfh **nfsfh); int nfs_open_sync(struct nfs_context *nfs, const char *path, int mode, struct nfsfh **nfsfh);
...@@ -196,19 +196,19 @@ int nfs_open_sync(struct nfs_context *nfs, const char *path, int mode, struct nf ...@@ -196,19 +196,19 @@ int nfs_open_sync(struct nfs_context *nfs, const char *path, int mode, struct nf
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL. * data is NULL.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_close_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, void *private_data); int nfs_close_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, void *private_data);
/* /*
* Sync close(nfsfh) * Sync close(nfsfh)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_close_sync(struct nfs_context *nfs, struct nfsfh *nfsfh); int nfs_close_sync(struct nfs_context *nfs, struct nfsfh *nfsfh);
...@@ -222,13 +222,13 @@ int nfs_close_sync(struct nfs_context *nfs, struct nfsfh *nfsfh); ...@@ -222,13 +222,13 @@ int nfs_close_sync(struct nfs_context *nfs, struct nfsfh *nfsfh);
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* >=0 : Success. * >=0 : Success.
* status is numer of bytes read. * status is numer of bytes read.
* data is a pointer to the returned data. * data is a pointer to the returned data.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_pread_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, nfs_cb cb, void *private_data); int nfs_pread_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, nfs_cb cb, void *private_data);
...@@ -236,7 +236,7 @@ int nfs_pread_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offs ...@@ -236,7 +236,7 @@ int nfs_pread_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offs
* Sync pread() * Sync pread()
* Function returns * Function returns
* >=0 : numer of bytes read. * >=0 : numer of bytes read.
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_pread_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, char *buf); int nfs_pread_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, char *buf);
...@@ -250,13 +250,13 @@ int nfs_pread_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offse ...@@ -250,13 +250,13 @@ int nfs_pread_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offse
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* >=0 : Success. * >=0 : Success.
* status is numer of bytes read. * status is numer of bytes read.
* data is a pointer to the returned data. * data is a pointer to the returned data.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_read_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, nfs_cb cb, void *private_data); int nfs_read_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, nfs_cb cb, void *private_data);
...@@ -264,7 +264,7 @@ int nfs_read_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, n ...@@ -264,7 +264,7 @@ int nfs_read_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, n
* Sync read() * Sync read()
* Function returns * Function returns
* >=0 : numer of bytes read. * >=0 : numer of bytes read.
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_read_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, char *buf); int nfs_read_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, char *buf);
...@@ -279,12 +279,12 @@ int nfs_read_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, ch ...@@ -279,12 +279,12 @@ int nfs_read_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, ch
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* >=0 : Success. * >=0 : Success.
* status is numer of bytes written. * status is numer of bytes written.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_pwrite_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, char *buf, nfs_cb cb, void *private_data); int nfs_pwrite_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, char *buf, nfs_cb cb, void *private_data);
...@@ -292,7 +292,7 @@ int nfs_pwrite_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t off ...@@ -292,7 +292,7 @@ int nfs_pwrite_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t off
* Sync pwrite() * Sync pwrite()
* Function returns * Function returns
* >=0 : numer of bytes written. * >=0 : numer of bytes written.
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_pwrite_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, char *buf); int nfs_pwrite_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, size_t count, char *buf);
...@@ -305,12 +305,12 @@ int nfs_pwrite_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offs ...@@ -305,12 +305,12 @@ int nfs_pwrite_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offs
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* >=0 : Success. * >=0 : Success.
* status is numer of bytes written. * status is numer of bytes written.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_write_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, char *buf, nfs_cb cb, void *private_data); int nfs_write_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, char *buf, nfs_cb cb, void *private_data);
...@@ -318,7 +318,7 @@ int nfs_write_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, ...@@ -318,7 +318,7 @@ int nfs_write_async(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count,
* Sync write() * Sync write()
* Function returns * Function returns
* >=0 : numer of bytes written. * >=0 : numer of bytes written.
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_write_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, char *buf); int nfs_write_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, char *buf);
...@@ -331,12 +331,12 @@ int nfs_write_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, c ...@@ -331,12 +331,12 @@ int nfs_write_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, size_t count, c
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* >=0 : Success. * >=0 : Success.
* data is nfs_off_t * for the current position. * data is nfs_off_t * for the current position.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_lseek_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, int whence, nfs_cb cb, void *private_data); int nfs_lseek_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, int whence, nfs_cb cb, void *private_data);
...@@ -344,7 +344,7 @@ int nfs_lseek_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offs ...@@ -344,7 +344,7 @@ int nfs_lseek_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offs
* Sync lseek() * Sync lseek()
* Function returns * Function returns
* >=0 : numer of bytes read. * >=0 : numer of bytes read.
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_lseek_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, int whence, nfs_off_t *current_offset); int nfs_lseek_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offset, int whence, nfs_off_t *current_offset);
...@@ -357,11 +357,11 @@ int nfs_lseek_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offse ...@@ -357,11 +357,11 @@ int nfs_lseek_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t offse
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_fsync_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, void *private_data); int nfs_fsync_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, void *private_data);
...@@ -369,7 +369,7 @@ int nfs_fsync_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, voi ...@@ -369,7 +369,7 @@ int nfs_fsync_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_cb cb, voi
* Sync fsync() * Sync fsync()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_fsync_sync(struct nfs_context *nfs, struct nfsfh *nfsfh); int nfs_fsync_sync(struct nfs_context *nfs, struct nfsfh *nfsfh);
...@@ -383,11 +383,11 @@ int nfs_fsync_sync(struct nfs_context *nfs, struct nfsfh *nfsfh); ...@@ -383,11 +383,11 @@ int nfs_fsync_sync(struct nfs_context *nfs, struct nfsfh *nfsfh);
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_truncate_async(struct nfs_context *nfs, const char *path, nfs_off_t length, nfs_cb cb, void *private_data); int nfs_truncate_async(struct nfs_context *nfs, const char *path, nfs_off_t length, nfs_cb cb, void *private_data);
...@@ -395,7 +395,7 @@ int nfs_truncate_async(struct nfs_context *nfs, const char *path, nfs_off_t leng ...@@ -395,7 +395,7 @@ int nfs_truncate_async(struct nfs_context *nfs, const char *path, nfs_off_t leng
* Sync truncate() * Sync truncate()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_truncate_sync(struct nfs_context *nfs, const char *path, nfs_off_t length); int nfs_truncate_sync(struct nfs_context *nfs, const char *path, nfs_off_t length);
...@@ -409,11 +409,11 @@ int nfs_truncate_sync(struct nfs_context *nfs, const char *path, nfs_off_t lengt ...@@ -409,11 +409,11 @@ int nfs_truncate_sync(struct nfs_context *nfs, const char *path, nfs_off_t lengt
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_ftruncate_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t length, nfs_cb cb, void *private_data); int nfs_ftruncate_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t length, nfs_cb cb, void *private_data);
...@@ -421,7 +421,7 @@ int nfs_ftruncate_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t ...@@ -421,7 +421,7 @@ int nfs_ftruncate_async(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t
* Sync ftruncate() * Sync ftruncate()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_ftruncate_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t length); int nfs_ftruncate_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t length);
...@@ -438,11 +438,11 @@ int nfs_ftruncate_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t l ...@@ -438,11 +438,11 @@ int nfs_ftruncate_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, nfs_off_t l
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_mkdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data); int nfs_mkdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data);
...@@ -450,7 +450,7 @@ int nfs_mkdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void * ...@@ -450,7 +450,7 @@ int nfs_mkdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *
* Sync mkdir() * Sync mkdir()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_mkdir_sync(struct nfs_context *nfs, const char *path); int nfs_mkdir_sync(struct nfs_context *nfs, const char *path);
...@@ -464,11 +464,11 @@ int nfs_mkdir_sync(struct nfs_context *nfs, const char *path); ...@@ -464,11 +464,11 @@ int nfs_mkdir_sync(struct nfs_context *nfs, const char *path);
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_rmdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data); int nfs_rmdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data);
...@@ -476,7 +476,7 @@ int nfs_rmdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void * ...@@ -476,7 +476,7 @@ int nfs_rmdir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *
* Sync rmdir() * Sync rmdir()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_rmdir_sync(struct nfs_context *nfs, const char *path); int nfs_rmdir_sync(struct nfs_context *nfs, const char *path);
...@@ -491,12 +491,12 @@ int nfs_rmdir_sync(struct nfs_context *nfs, const char *path); ...@@ -491,12 +491,12 @@ int nfs_rmdir_sync(struct nfs_context *nfs, const char *path);
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is a struct *nfsfh; * data is a struct *nfsfh;
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_creat_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data); int nfs_creat_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data);
...@@ -504,7 +504,7 @@ int nfs_creat_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb ...@@ -504,7 +504,7 @@ int nfs_creat_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb
* Sync creat() * Sync creat()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_creat_sync(struct nfs_context *nfs, const char *path, int mode, struct nfsfh **nfsfh); int nfs_creat_sync(struct nfs_context *nfs, const char *path, int mode, struct nfsfh **nfsfh);
...@@ -520,12 +520,12 @@ int nfs_creat_sync(struct nfs_context *nfs, const char *path, int mode, struct n ...@@ -520,12 +520,12 @@ int nfs_creat_sync(struct nfs_context *nfs, const char *path, int mode, struct n
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_unlink_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data); int nfs_unlink_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data);
...@@ -533,7 +533,7 @@ int nfs_unlink_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void ...@@ -533,7 +533,7 @@ int nfs_unlink_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void
* Sync unlink() * Sync unlink()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_unlink_sync(struct nfs_context *nfs, const char *path); int nfs_unlink_sync(struct nfs_context *nfs, const char *path);
...@@ -549,14 +549,14 @@ struct nfsdir; ...@@ -549,14 +549,14 @@ struct nfsdir;
* *
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When struct nfsdir * is returned, this resource is closed/freed by calling nfs_closedir() * When struct nfsdir * is returned, this resource is closed/freed by calling nfs_closedir()
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is struct nfsdir * * data is struct nfsdir *
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_opendir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data); int nfs_opendir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void *private_data);
...@@ -564,7 +564,7 @@ int nfs_opendir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void ...@@ -564,7 +564,7 @@ int nfs_opendir_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void
* Sync opendir() * Sync opendir()
* Function returns * Function returns
* 0 : Success * 0 : Success
* -errno : An error occured. * -errno : An error occurred.
*/ */
int nfs_opendir_sync(struct nfs_context *nfs, const char *path, struct nfsdir **nfsdir); int nfs_opendir_sync(struct nfs_context *nfs, const char *path, struct nfsdir **nfsdir);
...@@ -602,12 +602,12 @@ void nfs_closedir(struct nfs_context *nfs, struct nfsdir *nfsdir); ...@@ -602,12 +602,12 @@ void nfs_closedir(struct nfs_context *nfs, struct nfsdir *nfsdir);
* Async statvfs(<dirname>) * Async statvfs(<dirname>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is struct statvfs * * data is struct statvfs *
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
struct statvfs; struct statvfs;
...@@ -615,7 +615,7 @@ int nfs_statvfs_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void ...@@ -615,7 +615,7 @@ int nfs_statvfs_async(struct nfs_context *nfs, const char *path, nfs_cb cb, void
/* /*
* Sync statvfs(<dirname>) * Sync statvfs(<dirname>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_statvfs_sync(struct nfs_context *nfs, const char *path, struct statvfs *svfs); int nfs_statvfs_sync(struct nfs_context *nfs, const char *path, struct statvfs *svfs);
...@@ -628,13 +628,13 @@ int nfs_statvfs_sync(struct nfs_context *nfs, const char *path, struct statvfs * ...@@ -628,13 +628,13 @@ int nfs_statvfs_sync(struct nfs_context *nfs, const char *path, struct statvfs *
* Async readlink(<name>) * Async readlink(<name>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is a char * * data is a char *
* data is only valid during the callback and is automatically freed when the callback returns. * data is only valid during the callback and is automatically freed when the callback returns.
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
struct statvfs; struct statvfs;
...@@ -642,7 +642,7 @@ int nfs_readlink_async(struct nfs_context *nfs, const char *path, nfs_cb cb, voi ...@@ -642,7 +642,7 @@ int nfs_readlink_async(struct nfs_context *nfs, const char *path, nfs_cb cb, voi
/* /*
* Sync readlink(<name>) * Sync readlink(<name>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_readlink_sync(struct nfs_context *nfs, const char *path, char *buf, int bufsize); int nfs_readlink_sync(struct nfs_context *nfs, const char *path, char *buf, int bufsize);
...@@ -656,19 +656,19 @@ int nfs_readlink_sync(struct nfs_context *nfs, const char *path, char *buf, int ...@@ -656,19 +656,19 @@ int nfs_readlink_sync(struct nfs_context *nfs, const char *path, char *buf, int
* Async chmod(<name>) * Async chmod(<name>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_chmod_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data); int nfs_chmod_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data);
/* /*
* Sync chmod(<name>) * Sync chmod(<name>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_chmod_sync(struct nfs_context *nfs, const char *path, int mode); int nfs_chmod_sync(struct nfs_context *nfs, const char *path, int mode);
...@@ -682,19 +682,19 @@ int nfs_chmod_sync(struct nfs_context *nfs, const char *path, int mode); ...@@ -682,19 +682,19 @@ int nfs_chmod_sync(struct nfs_context *nfs, const char *path, int mode);
* Async fchmod(<handle>) * Async fchmod(<handle>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_fchmod_async(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode, nfs_cb cb, void *private_data); int nfs_fchmod_async(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode, nfs_cb cb, void *private_data);
/* /*
* Sync fchmod(<handle>) * Sync fchmod(<handle>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_fchmod_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode); int nfs_fchmod_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode);
...@@ -708,19 +708,19 @@ int nfs_fchmod_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode); ...@@ -708,19 +708,19 @@ int nfs_fchmod_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int mode);
* Async chown(<name>) * Async chown(<name>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_chown_async(struct nfs_context *nfs, const char *path, int uid, int gid, nfs_cb cb, void *private_data); int nfs_chown_async(struct nfs_context *nfs, const char *path, int uid, int gid, nfs_cb cb, void *private_data);
/* /*
* Sync chown(<name>) * Sync chown(<name>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_chown_sync(struct nfs_context *nfs, const char *path, int uid, int gid); int nfs_chown_sync(struct nfs_context *nfs, const char *path, int uid, int gid);
...@@ -734,19 +734,19 @@ int nfs_chown_sync(struct nfs_context *nfs, const char *path, int uid, int gid); ...@@ -734,19 +734,19 @@ int nfs_chown_sync(struct nfs_context *nfs, const char *path, int uid, int gid);
* Async fchown(<handle>) * Async fchown(<handle>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_fchown_async(struct nfs_context *nfs, struct nfsfh *nfsfh, int uid, int gid, nfs_cb cb, void *private_data); int nfs_fchown_async(struct nfs_context *nfs, struct nfsfh *nfsfh, int uid, int gid, nfs_cb cb, void *private_data);
/* /*
* Sync fchown(<handle>) * Sync fchown(<handle>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_fchown_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int uid, int gid); int nfs_fchown_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int uid, int gid);
...@@ -761,19 +761,19 @@ int nfs_fchown_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int uid, int g ...@@ -761,19 +761,19 @@ int nfs_fchown_sync(struct nfs_context *nfs, struct nfsfh *nfsfh, int uid, int g
* Async utimes(<path>) * Async utimes(<path>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_utimes_async(struct nfs_context *nfs, const char *path, struct timeval *times, nfs_cb cb, void *private_data); int nfs_utimes_async(struct nfs_context *nfs, const char *path, struct timeval *times, nfs_cb cb, void *private_data);
/* /*
* Sync utimes(<path>) * Sync utimes(<path>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_utimes_sync(struct nfs_context *nfs, const char *path, struct timeval *times); int nfs_utimes_sync(struct nfs_context *nfs, const char *path, struct timeval *times);
...@@ -786,12 +786,12 @@ int nfs_utimes_sync(struct nfs_context *nfs, const char *path, struct timeval *t ...@@ -786,12 +786,12 @@ int nfs_utimes_sync(struct nfs_context *nfs, const char *path, struct timeval *t
* Async utime(<path>) * Async utime(<path>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
struct utimbuf; struct utimbuf;
...@@ -799,7 +799,7 @@ int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *t ...@@ -799,7 +799,7 @@ int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *t
/* /*
* Sync utime(<path>) * Sync utime(<path>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_utime_sync(struct nfs_context *nfs, const char *path, struct utimbuf *times); int nfs_utime_sync(struct nfs_context *nfs, const char *path, struct utimbuf *times);
...@@ -814,19 +814,19 @@ int nfs_utime_sync(struct nfs_context *nfs, const char *path, struct utimbuf *ti ...@@ -814,19 +814,19 @@ int nfs_utime_sync(struct nfs_context *nfs, const char *path, struct utimbuf *ti
* Async access(<path>) * Async access(<path>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_access_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data); int nfs_access_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data);
/* /*
* Sync access(<path>) * Sync access(<path>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_access_sync(struct nfs_context *nfs, const char *path, int mode); int nfs_access_sync(struct nfs_context *nfs, const char *path, int mode);
...@@ -841,19 +841,19 @@ int nfs_access_sync(struct nfs_context *nfs, const char *path, int mode); ...@@ -841,19 +841,19 @@ int nfs_access_sync(struct nfs_context *nfs, const char *path, int mode);
* Async symlink(<path>) * Async symlink(<path>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_symlink_async(struct nfs_context *nfs, const char *oldpath, const char *newpath, nfs_cb cb, void *private_data); int nfs_symlink_async(struct nfs_context *nfs, const char *oldpath, const char *newpath, nfs_cb cb, void *private_data);
/* /*
* Sync symlink(<path>) * Sync symlink(<path>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_symlink_sync(struct nfs_context *nfs, const char *oldpath, const char *newpath); int nfs_symlink_sync(struct nfs_context *nfs, const char *oldpath, const char *newpath);
...@@ -866,19 +866,19 @@ int nfs_symlink_sync(struct nfs_context *nfs, const char *oldpath, const char *n ...@@ -866,19 +866,19 @@ int nfs_symlink_sync(struct nfs_context *nfs, const char *oldpath, const char *n
* Async rename(<oldpath>, <newpath>) * Async rename(<oldpath>, <newpath>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_rename_async(struct nfs_context *nfs, const char *oldpath, const char *newpath, nfs_cb cb, void *private_data); int nfs_rename_async(struct nfs_context *nfs, const char *oldpath, const char *newpath, nfs_cb cb, void *private_data);
/* /*
* Sync rename(<oldpath>, <newpath>) * Sync rename(<oldpath>, <newpath>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_rename_sync(struct nfs_context *nfs, const char *oldpath, const char *newpath); int nfs_rename_sync(struct nfs_context *nfs, const char *oldpath, const char *newpath);
...@@ -892,19 +892,19 @@ int nfs_rename_sync(struct nfs_context *nfs, const char *oldpath, const char *ne ...@@ -892,19 +892,19 @@ int nfs_rename_sync(struct nfs_context *nfs, const char *oldpath, const char *ne
* Async link(<oldpath>, <newpath>) * Async link(<oldpath>, <newpath>)
* Function returns * Function returns
* 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked.
* <0 : An error occured when trying to set up the operation. The callback will not be invoked. * <0 : An error occurred when trying to set up the operation. The callback will not be invoked.
* *
* When the callback is invoked, status indicates the result: * When the callback is invoked, status indicates the result:
* 0 : Success. * 0 : Success.
* data is NULL * data is NULL
* -errno : An error occured. * -errno : An error occurred.
* data is the error string. * data is the error string.
*/ */
int nfs_link_async(struct nfs_context *nfs, const char *oldpath, const char *newpath, nfs_cb cb, void *private_data); int nfs_link_async(struct nfs_context *nfs, const char *oldpath, const char *newpath, nfs_cb cb, void *private_data);
/* /*
* Sync link(<oldpath>, <newpath>) * Sync link(<oldpath>, <newpath>)
* Function returns * Function returns
* 0 : The operation was successfull. * 0 : The operation was successful.
* -errno : The command failed. * -errno : The command failed.
*/ */
int nfs_link_sync(struct nfs_context *nfs, const char *oldpath, const char *newpath); int nfs_link_sync(struct nfs_context *nfs, const char *oldpath, const char *newpath);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment