summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 41b249c..76e243e 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -34,6 +34,7 @@
* $FreeBSD$
*/
+#include "opt_mac.h"
#include "opt_quota.h"
#include "opt_ufs.h"
@@ -729,6 +730,22 @@ ffs_mountfs(devvp, mp, td, malloctype)
vfs_getnewfsid(mp);
mp->mnt_maxsymlinklen = fs->fs_maxsymlinklen;
mp->mnt_flag |= MNT_LOCAL;
+ if ((fs->fs_flags & FS_MULTILABEL) != 0)
+#ifdef MAC
+ mp->mnt_flag |= MNT_MULTILABEL;
+#else
+ printf(
+"WARNING: %s: multilabel flag on fs but no MAC support\n",
+ fs->fs_fsmnt);
+#endif
+ if ((fs->fs_flags & FS_ACLS) != 0)
+#ifdef UFS_ACL
+ mp->mnt_flag |= MNT_ACLS;
+#else
+ printf(
+"WARNING: %s: ACLs flag on fs but no ACLs support\n",
+ fs->fs_fsmnt);
+#endif
ump->um_mountp = mp;
ump->um_dev = dev;
ump->um_devvp = devvp;
OpenPOWER on IntegriCloud