freebsd-dev/usr.sbin/fstyp
Conrad Meyer 85b4c344c8 fstyp(8): Show exFAT volume labels with -l flag
exfat is fundamentally the same design as fat32.  The superblock differs
marginally, and there are some additional optional features irrelevant to
fstype(8); the structure of dirents has changed slightly to enable, among
other things, larger files; the directory entries are no longer DOS 8.3
ASCII or local 8-bit encoding, but instead explicitly UCS-2-LE.

(As a result, this change uses iconv to convert a found exfat volume label
to the user's locale.)

Locating the volume label is identical to FAT32: locate the root directory
and walk through dirents until you find a volume label.  Like FAT32, follow
the FAT chain between root directory clusters as necessary.

PR:		242225
Reported by:	Victor Sudakov <vas AT sibptus.ru>
2019-12-22 03:19:17 +00:00
..
tests fstyp(8): Show exFAT volume labels with -l flag 2019-12-22 03:19:17 +00:00
cd9660.c Fix off-by-one error in fstyp(8) and geom_label(4) that made them use 2015-06-18 21:55:55 +00:00
exfat.c fstyp(8): Show exFAT volume labels with -l flag 2019-12-22 03:19:17 +00:00
ext2fs.c Fix detection of ext2/ext3 filesystems that lack labels. 2015-01-13 13:59:48 +00:00
fstyp.8 Make fstyp(8) recognize exFAT even without the -u option. 2017-04-26 19:34:41 +00:00
fstyp.c fstyp(8): Show exFAT volume labels with -l flag 2019-12-22 03:19:17 +00:00
fstyp.h fstyp(8): Show exFAT volume labels with -l flag 2019-12-22 03:19:17 +00:00
geli.c Eliminate unneeded includes. 2015-12-28 08:53:31 +00:00
Makefile Do not blindly include illumos kernel headers instead of user-space. 2018-08-02 18:55:55 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
msdosfs.c Fix off-by-one error in fstyp(8) and geom_label(4) that made them use 2015-06-18 21:55:55 +00:00
msdosfs.h
ntfs.c Fix memory leaks. 2015-01-05 15:34:23 +00:00
ufs.c Normally when an attempt is made to mount a UFS/FFS filesystem whose 2018-12-06 00:09:39 +00:00
zfs.c Remove "All rights reserved" from my files. 2018-05-10 06:41:08 +00:00