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
This commit is contained in:
parent
d43409ee19
commit
69905bdec3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user