From f0df387d8416e8fa18a3e6e923a4b45b5e8771d4 Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 26 Feb 2004 01:14:27 +0000 Subject: Add a "-l" flag to newfs, which sets the FS_MULTILABEL flag. This permits users of newfs to set the multilabel flag on UFS1 and UFS2 file systems from inception without using tunefs. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research --- sbin/newfs/mkfs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sbin/newfs/mkfs.c') diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 2ca9508..4e7b514 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -139,6 +139,8 @@ mkfs(struct partition *pp, char *fsys) sblock.fs_flags |= FS_DOSOFTDEP; if (Lflag) strlcpy(sblock.fs_volname, volumelabel, MAXVOLLEN); + if (lflag) + sblock.fs_flags |= FS_MULTILABEL; /* * Validate the given file system size. * Verify that its last block can actually be accessed. -- cgit v1.1