Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst When generating a script for disklabel(8) d...



details:   https://anonhg.NetBSD.org/src/rev/3a8b4cac3b21
branches:  trunk
changeset: 372611:3a8b4cac3b21
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Dec 11 19:32:57 2022 +0000

description:
When generating a script for disklabel(8) do not use the "pretty printed"
file system type names, but the raw ones that disklabel(8) actually
knows about.

diffstat:

 usr.sbin/sysinst/disklabel.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7cc3962fd987 -r 3a8b4cac3b21 usr.sbin/sysinst/disklabel.c
--- a/usr.sbin/sysinst/disklabel.c      Sun Dec 11 18:02:40 2022 +0000
+++ b/usr.sbin/sysinst/disklabel.c      Sun Dec 11 19:32:57 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disklabel.c,v 1.49 2022/06/24 22:28:11 tsutsui Exp $   */
+/*     $NetBSD: disklabel.c,v 1.50 2022/12/11 19:32:57 martin Exp $    */
 
 /*
  * Copyright 2018 The NetBSD Foundation, Inc.
@@ -435,7 +435,7 @@
                scripting_fprintf(f, "\t:p%c#%" PRIu32 ":o%c#%" PRIu32
                    ":t%c=%s:", 'a'+i, (uint32_t)lp[i].p_size,
                    'a'+i, (uint32_t)lp[i].p_offset, 'a'+i,
-                   getfslabelname(lp[i].p_fstype, 0));
+                   fstypenames[lp[i].p_fstype]);
                if (lp[i].p_fstype == FS_BSDLFS ||
                    lp[i].p_fstype == FS_BSDFFS)
                        scripting_fprintf (f, "b%c#%" PRIu32 ":f%c#%" PRIu32



Home | Main Index | Thread Index | Old Index