From 56226f9c300b40110c6e7781415df253668207e1 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Wed, 26 Apr 2017 19:34:41 +0000 Subject: [PATCH] Make fstyp(8) recognize exFAT even without the -u option. While it's not directly mountable with mount(8), it's something that's mountable - differently from GELI or zpools. MFC after: 2 weeks --- usr.sbin/fstyp/fstyp.8 | 6 +++--- usr.sbin/fstyp/fstyp.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/fstyp/fstyp.8 b/usr.sbin/fstyp/fstyp.8 index 500d0af1dfef..cb8f97f85588 100644 --- a/usr.sbin/fstyp/fstyp.8 +++ b/usr.sbin/fstyp/fstyp.8 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 13, 2017 +.Dd April 26, 2017 .Dt FSTYP 8 .Os .Sh NAME @@ -43,7 +43,7 @@ The .Nm utility is used to determine the filesystem type on a given device. -It can recognize ISO-9660, Ext2, FAT, NTFS, and UFS filesystems. +It can recognize ISO-9660, exFAT, Ext2, FAT, NTFS, and UFS filesystems. When the .Fl u flag is specified, @@ -51,7 +51,7 @@ flag is specified, also recognizes certain additional metadata formats that cannot be handled using .Xr mount 8 , -such as exFAT filesystems, +such as .Xr geli 8 providers, and ZFS pools. diff --git a/usr.sbin/fstyp/fstyp.c b/usr.sbin/fstyp/fstyp.c index 76ec7948ca0d..4678a5e3e959 100644 --- a/usr.sbin/fstyp/fstyp.c +++ b/usr.sbin/fstyp/fstyp.c @@ -57,7 +57,7 @@ static struct { bool unmountable; } fstypes[] = { { "cd9660", &fstyp_cd9660, false }, - { "exfat", &fstyp_exfat, true }, + { "exfat", &fstyp_exfat, false }, { "ext2fs", &fstyp_ext2fs, false }, { "geli", &fstyp_geli, true }, { "msdosfs", &fstyp_msdosfs, false },