usr.sbin/fstyp: Port fstyp from FreeBSD
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 18 May 2016 07:58:01 +0000 (16:58 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 2 Jun 2016 22:42:53 +0000 (07:42 +0900)
commit551c4c362a7f8c4ae74e04ff6405c1b9eea40751
treebd525408775951e463cf0b08fa566e0f138fa8cf
parentca7294164d097ddba87f8b85282cdedee3fa7641
usr.sbin/fstyp: Port fstyp from FreeBSD

Brought in from FreeBSD@GitHub 3e3c248f832f796881ac2ce0d45049552e8d9a9b.
Needed by autofs.

Removed ZFS and GEOM support.
Added HAMMER support.

Note that fstyp has been changed to test a filesystem type vector
fsvtypes[] in addition to the existing fstypes[]. This is a bit
ad-hoc, but was necessary to support partial volume(s) for HAMMER
without a major code rewrite.
usr.sbin/fstyp/Makefile [new file with mode: 0644]
usr.sbin/fstyp/cd9660.c [new file with mode: 0644]
usr.sbin/fstyp/ext2fs.c [new file with mode: 0644]
usr.sbin/fstyp/fstyp.8 [new file with mode: 0644]
usr.sbin/fstyp/fstyp.c [new file with mode: 0644]
usr.sbin/fstyp/fstyp.h [new file with mode: 0644]
usr.sbin/fstyp/hammer.c [new file with mode: 0644]
usr.sbin/fstyp/msdosfs.c [new file with mode: 0644]
usr.sbin/fstyp/msdosfs.h [new file with mode: 0644]
usr.sbin/fstyp/ntfs.c [new file with mode: 0644]
usr.sbin/fstyp/ufs.c [new file with mode: 0644]