Print this page
3742 zfs comments need cleaner, more consistent style
Submitted by:   Will Andrews <willa@spectralogic.com>
Submitted by:   Alan Somers <alans@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>
Reviewed by:    George Wilson <george.wilson@delphix.com>
Reviewed by:    Eric Schrock <eric.schrock@delphix.com>

@@ -1346,13 +1346,12 @@
 
         return (error);
 }
 
 /*
- * zfs_check_global_label:
- *      Check that the hex label string is appropriate for the dataset
- *      being mounted into the global_zone proper.
+ * Check that the hex label string is appropriate for the dataset being
+ * mounted into the global_zone proper.
  *
  *      Return an error if the hex label string is not default or
  *      admin_low/admin_high.  For admin_low labels, the corresponding
  *      dataset must be readonly.
  */

@@ -1374,19 +1373,16 @@
         }
         return (SET_ERROR(EACCES));
 }
 
 /*
- * zfs_mount_label_policy:
  *      Determine whether the mount is allowed according to MAC check.
  *      by comparing (where appropriate) label of the dataset against
  *      the label of the zone being mounted into.  If the dataset has
  *      no label, create one.
  *
- *      Returns:
- *               0 :    access allowed
- *              >0 :    error code, such as EACCES
+ * Returns 0 if access allowed, error otherwise (e.g. EACCES)
  */
 static int
 zfs_mount_label_policy(vfs_t *vfsp, char *osname)
 {
         int             error, retv;