]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mount.nfs: Add a block comment before mount_error() and umount_error()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 24 Aug 2007 17:11:53 +0000 (13:11 -0400)
committerNeil Brown <neilb@suse.de>
Fri, 24 Aug 2007 22:19:34 +0000 (08:19 +1000)
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>
utils/mount/error.c

index cab84c97125ab88df4921fc995c7d4b20f2eaea6..1f60b79f2ebadb6a86ea29684240fcff7c57df93 100644 (file)
@@ -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)
 {