Source-Changes-HG archive

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

[src/trunk]: src/sbin/newfs_msdos Change the default volume label from "NO NA...



details:   https://anonhg.NetBSD.org/src/rev/e0f1c9ab0b21
branches:  trunk
changeset: 570086:e0f1c9ab0b21
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Sep 22 23:52:38 2004 +0000

description:
Change the default volume label from "NO NAME" to "NO_NAME".  Note the
default in the manual page.

diffstat:

 sbin/newfs_msdos/newfs_msdos.8 |  4 +++-
 sbin/newfs_msdos/newfs_msdos.c |  6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 2d73cd000fcf -r e0f1c9ab0b21 sbin/newfs_msdos/newfs_msdos.8
--- a/sbin/newfs_msdos/newfs_msdos.8    Wed Sep 22 23:46:38 2004 +0000
+++ b/sbin/newfs_msdos/newfs_msdos.8    Wed Sep 22 23:52:38 2004 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: newfs_msdos.8,v 1.13 2004/09/22 23:46:38 thorpej Exp $
+.\" $NetBSD: newfs_msdos.8,v 1.14 2004/09/22 23:52:38 thorpej Exp $
 .\"
 .\" Copyright (c) 1998 Robert Nordier
 .\" All rights reserved.
@@ -83,6 +83,8 @@
 Volume label (up to 11 characters).
 The label should consist of only those characters permitted
 in regular DOS (8+3) filenames.
+The default is
+.Qq Li "NO_NAME" .
 .It Fl O Ar OEM
 OEM string (up to 8 characters).
 The default is
diff -r 2d73cd000fcf -r e0f1c9ab0b21 sbin/newfs_msdos/newfs_msdos.c
--- a/sbin/newfs_msdos/newfs_msdos.c    Wed Sep 22 23:46:38 2004 +0000
+++ b/sbin/newfs_msdos/newfs_msdos.c    Wed Sep 22 23:52:38 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newfs_msdos.c,v 1.16 2004/09/22 23:46:38 thorpej Exp $ */
+/*     $NetBSD: newfs_msdos.c,v 1.17 2004/09/22 23:52:38 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998 Robert Nordier
@@ -33,7 +33,7 @@
 static const char rcsid[] =
   "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $";
 #else
-__RCSID("$NetBSD: newfs_msdos.c,v 1.16 2004/09/22 23:46:38 thorpej Exp $");
+__RCSID("$NetBSD: newfs_msdos.c,v 1.17 2004/09/22 23:52:38 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -656,7 +656,7 @@
                         ((u_int)tm->tm_hour << 8 |
                          (u_int)tm->tm_min));
                mk4(bsx->volid, x);
-               mklabel(bsx->label, opt_L ? opt_L : "NO NAME");
+               mklabel(bsx->label, opt_L ? opt_L : "NO_NAME");
                snprintf(buf, sizeof(buf), "FAT%u", fat);
                setstr(bsx->type, buf, sizeof(bsx->type));
                if (!opt_B) {



Home | Main Index | Thread Index | Old Index