Change the default volume label from "NO NAME" to "NO_NAME". Note the
default in the manual page.
This commit is contained in:
parent
3af81aff5a
commit
6e82649d8e
|
@ -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 ID.
|
|||
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
|
||||
|
|
|
@ -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 @@ main(int argc, char *argv[])
|
|||
((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) {
|
||||
|
|
Loading…
Reference in New Issue