Wrap with HAVE_MLSLABEL

The zfs_check_global_label() function is part of the HAVE_MLSLABEL
support which was previously commented out by a HAVE_ZPL check.
Since we're still deciding what to do about mls labels wrap it
with the preexisting macro to keep it compiled out.
This commit is contained in:
Brian Behlendorf 2011-01-06 16:47:31 -08:00
parent 5649246dd3
commit bc3e15e386
1 changed files with 2 additions and 0 deletions

View File

@ -1300,6 +1300,7 @@ zfs_parse_bootfs(char *bpath, char *outpath)
return (error); return (error);
} }
#ifdef HAVE_MLSLABEL
/* /*
* zfs_check_global_label: * zfs_check_global_label:
* Check that the hex label string is appropriate for the dataset * Check that the hex label string is appropriate for the dataset
@ -1327,6 +1328,7 @@ zfs_check_global_label(const char *dsname, const char *hexsl)
} }
return (EACCES); return (EACCES);
} }
#endif /* HAVE_MLSLABEL */
/* /*
* zfs_mount_label_policy: * zfs_mount_label_policy: