summaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2003-06-09 09:26:02 +0000
committerjmallett <jmallett@FreeBSD.org>2003-06-09 09:26:02 +0000
commit6cb7abd9183a437f1bd6378438151100764aabd7 (patch)
tree204a6d7c9da4bb9e6ab056ab1c70bc0d85eb13da /sbin/dumpfs
parent1ae2acf92876a63147cc4b970d76567ab0d0b356 (diff)
downloadFreeBSD-src-6cb7abd9183a437f1bd6378438151100764aabd7.zip
FreeBSD-src-6cb7abd9183a437f1bd6378438151100764aabd7.tar.gz
Marshal newfs -L (filesystem volume names), the names are not marshalled
with any quoting, but that should be OK for re-input, regardless.
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r--sbin/dumpfs/dumpfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index c22b1f4..a81d896 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -336,6 +336,8 @@ marshal(const char *name)
printf("# newfs command for %s (%s)\n", name, disk.d_name);
printf("newfs ");
+ if (fs->fs_volname[0] != '\0')
+ printf("-L %s ", fs->fs_volname);
printf("-O %d ", disk.d_ufs);
if (fs->fs_flags & FS_DOSOFTDEP)
printf("-U ");
OpenPOWER on IntegriCloud