Module Name: src Committed By: martin Date: Sun Dec 11 19:32:57 UTC 2022
Modified Files: src/usr.sbin/sysinst: disklabel.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/sysinst/disklabel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/disklabel.c diff -u src/usr.sbin/sysinst/disklabel.c:1.49 src/usr.sbin/sysinst/disklabel.c:1.50 --- src/usr.sbin/sysinst/disklabel.c:1.49 Fri Jun 24 22:28:11 2022 +++ src/usr.sbin/sysinst/disklabel.c Sun Dec 11 19:32:57 2022 @@ -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 @@ disklabel_write_to_disk(struct disk_part 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