[Bug 242225] "fstyp -l" does not report exfat filesystem volume label
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Feb 2 21:14:22 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242225
--- Comment #15 from commit-hook at FreeBSD.org ---
A commit in branch stable/12 references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=58a9e1ca85797a050d3a39bffa6babcb9d3463a4
commit 58a9e1ca85797a050d3a39bffa6babcb9d3463a4
Author: Conrad Meyer <cem at FreeBSD.org>
AuthorDate: 2019-12-22 03:19:17 +0000
Commit: Ed Maste <emaste at FreeBSD.org>
CommitDate: 2021-02-02 21:12:04 +0000
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>
(cherry picked from commit 85b4c344c8c69ff7993bc0ac833aaf9a8108b88d)
fstyp(8): Fix WITHOUT_ICONV build
Reported by: olivier
(cherry picked from commit 5ab1cb52b21fdc5524bd970e9b5cdff21a5bcabf)
usr.sbin/fstyp/Makefile | 4 +
usr.sbin/fstyp/exfat.c | 303 ++++++++++++++++++++++++++++++++++++-
usr.sbin/fstyp/fstyp.c | 49 ++++--
usr.sbin/fstyp/fstyp.h | 7 +
usr.sbin/fstyp/ntfs.c | 6 +
usr.sbin/fstyp/tests/fstyp_test.sh | 10 ++
6 files changed, 367 insertions(+), 12 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list