Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 21:18:31 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269953 - head/sbin/newfs_msdos
Message-ID:  <201408132118.s7DLIVP9046742@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Wed Aug 13 21:18:31 2014
New Revision: 269953
URL: http://svnweb.freebsd.org/changeset/base/269953

Log:
  Use "NO NAME" as the default unnamed label.
  
  Microsoft recommends avoiding the use of spaces in the
  string structures for FAT. Unfortunately they do just
  that by default in the case of unlabeled filesystems.
  
  Follow the default MS behavior to avoid confusion in
  common tools like file(1). This was actually the
  default behavior before r203868.
  
  Obtained from:	NetBSD (CVS rev. 1.39)
  MFC after:	3 days

Modified:
  head/sbin/newfs_msdos/newfs_msdos.c

Modified: head/sbin/newfs_msdos/newfs_msdos.c
==============================================================================
--- head/sbin/newfs_msdos/newfs_msdos.c	Wed Aug 13 19:55:14 2014	(r269952)
+++ head/sbin/newfs_msdos/newfs_msdos.c	Wed Aug 13 21:18:31 2014	(r269953)
@@ -689,7 +689,7 @@ main(int argc, char *argv[])
 			 ((u_int)tm->tm_hour << 8 |
 			  (u_int)tm->tm_min));
 		mk4(bsx->exVolumeID, x);
-		mklabel(bsx->exVolumeLabel, opt_L ? opt_L : "NO_NAME");
+		mklabel(bsx->exVolumeLabel, opt_L ? opt_L : "NO NAME");
 		sprintf(buf, "FAT%u", fat);
 		setstr(bsx->exFileSysType, buf, sizeof(bsx->exFileSysType));
 		if (!opt_B) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408132118.s7DLIVP9046742>