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

View File

@ -1300,6 +1300,7 @@ zfs_parse_bootfs(char *bpath, char *outpath)
return (error);
}
#ifdef HAVE_MLSLABEL
/*
* zfs_check_global_label:
* 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);
}
#endif /* HAVE_MLSLABEL */
/*
* zfs_mount_label_policy: