summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-08-24 13:11:53 -0400
committerNeil Brown <neilb@suse.de>2007-08-25 08:19:34 +1000
commit2fa7d272bdbfe3a73d813b843e5d66b1c044459e (patch)
tree507d15a697977fd067bf98b226dbc583538999f5
parentbe77debb799a97bab5c7ecf9f1082f967a692eef (diff)
downloadnfs-utils-2fa7d272bdbfe3a73d813b843e5d66b1c044459e.tar.gz
nfs-utils-2fa7d272bdbfe3a73d813b843e5d66b1c044459e.tar.xz
nfs-utils-2fa7d272bdbfe3a73d813b843e5d66b1c044459e.zip
mount.nfs: Add a block comment before mount_error() and umount_error()
Add block comments before mount_error() and umount_error() to help distinguish them from the other error reporting functions. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
-rw-r--r--utils/mount/error.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/utils/mount/error.c b/utils/mount/error.c
index cab84c9..1f60b79 100644
--- a/utils/mount/error.c
+++ b/utils/mount/error.c
@@ -121,6 +121,13 @@ void mount_errors(char *server, int will_retry, int bg)
fprintf(stderr, "%s\n", errbuf);
}
+/*
+ * mount_error - report a foreground mount error
+ * @spec: C string containing the device name being mounted
+ * @mount_point: C string containing the pathname of the local mounted on dir
+ * @error: errno value to report
+ *
+ */
void mount_error(const char *spec, const char *mount_point, int error)
{
switch(error) {
@@ -148,7 +155,10 @@ void mount_error(const char *spec, const char *mount_point, int error)
}
/*
- * Report a failed umount
+ * umount_error - report a failed umount request
+ * @err: errno value to report
+ * @dev: C string containing the pathname of the local mounted on dir
+ *
*/
void umount_error(int err, const char *dev)
{