If you create a cd9660 filesystem with no label, makefs stores a string of 32 spaces in the volume's label field. usr.sbin/fstyp/cd9660.c contains logic intended to truncate that label down to "" when printing the label. However, there appears to be an off-by-one error. fstyp will print " " as the label. # mkdir dir # mkdir dir/emptyfile # makefs -t cd9660 -Z -s 64m cd9660.img dir # fstyp -l cd9660.img | xxd 00000000: 6364 3936 3630 2020 0a cd9660 .
Could you test https://reviews.freebsd.org/D2830?
Isn't that exactly the same thing as https://reviews.freebsd.org/D2800 ?
No idea how did I manage to miss that one. Still, stay tuned - there is a similar fix needed for msdosfs, and both need patching in geom_label(4). Will submit an updated patch shortly.
A commit references this bug: Author: trasz Date: Thu Jun 18 21:55:57 UTC 2015 New revision: 284582 URL: https://svnweb.freebsd.org/changeset/base/284582 Log: Fix off-by-one error in fstyp(8) and geom_label(4) that made them use a single space (" ") as a CD9660 label name when no label was present. Similar problem was also present in msdosfs label recognition. PR: 200828 Differential Revision: https://reviews.freebsd.org/D2830 Reviewed by: asomers@, emaste@ MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Changes: head/sys/geom/label/g_label.c head/sys/geom/label/g_label.h head/sys/geom/label/g_label_iso9660.c head/sys/geom/label/g_label_msdosfs.c head/usr.sbin/fstyp/cd9660.c head/usr.sbin/fstyp/fstyp.c head/usr.sbin/fstyp/fstyp.h head/usr.sbin/fstyp/msdosfs.c
Fixed by trasz in 284582