cem 73773fcda9 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
..
2019-10-19 14:56:44 +00:00
2019-12-11 17:37:53 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 13:23:09 +00:00
2019-08-13 20:06:55 +00:00
2019-12-02 05:24:16 +00:00
2019-12-11 17:37:53 +00:00
2019-06-09 02:06:31 +00:00
2019-03-14 14:34:36 +00:00
2019-12-04 16:56:11 +00:00
2019-02-04 21:28:25 +00:00
2018-06-06 18:52:33 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2019-05-04 02:09:30 +00:00
2018-01-02 16:50:57 +00:00
2019-12-11 17:37:53 +00:00
2019-08-08 21:08:13 +00:00
2018-10-22 02:34:10 +00:00
2019-09-04 13:47:38 +00:00
2018-05-19 20:57:22 +00:00
2019-12-11 17:37:53 +00:00
2019-12-13 05:54:38 +00:00
2019-05-22 01:22:33 +00:00
2019-02-04 21:28:25 +00:00
2018-06-17 17:31:16 +00:00
2019-12-11 17:37:53 +00:00
2019-03-05 02:53:41 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-04-22 17:52:46 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2018-12-19 22:47:37 +00:00
2019-11-21 01:24:49 +00:00
2019-12-11 17:37:37 +00:00
2019-12-11 17:37:53 +00:00
2017-10-31 00:07:04 +00:00
2019-10-31 21:01:34 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00