diff options
author | gordon <gordon@FreeBSD.org> | 2003-02-01 04:17:10 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2003-02-01 04:17:10 +0000 |
commit | f340c1ac9e703e24d41cc4afe89b152b2cf7ebfa (patch) | |
tree | 2d33c52f2fec2a53d09438d913937daf82c605e6 /sbin/newfs/mkfs.c | |
parent | a7fd524f8e3d3856a304114d97f9450fc2645b58 (diff) | |
download | FreeBSD-src-f340c1ac9e703e24d41cc4afe89b152b2cf7ebfa.zip FreeBSD-src-f340c1ac9e703e24d41cc4afe89b152b2cf7ebfa.tar.gz |
Bring in support for volume labels to the filesystem utilities.
Reviewed by: mckusick
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 4b78f9b..de8140f 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -140,6 +140,8 @@ mkfs(struct partition *pp, char *fsys) sblock.fs_flags = 0; if (Uflag) sblock.fs_flags |= FS_DOSOFTDEP; + if (Lflag) + strlcpy(sblock.fs_volname, volumelabel, MAXVOLLEN); /* * Validate the given file system size. * Verify that its last block can actually be accessed. |