diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-02-26 01:14:27 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-02-26 01:14:27 +0000 |
commit | f0df387d8416e8fa18a3e6e923a4b45b5e8771d4 (patch) | |
tree | fc9111877d18382c6d76139cc79472cce73691e5 /sbin/newfs/mkfs.c | |
parent | 1de257deb3229812024de5861eb0aaa41e471448 (diff) | |
download | FreeBSD-src-f0df387d8416e8fa18a3e6e923a4b45b5e8771d4.zip FreeBSD-src-f0df387d8416e8fa18a3e6e923a4b45b5e8771d4.tar.gz |
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
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r-- | sbin/newfs/mkfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. |