fstyp(8)

Edward Tomasz Napierała trasz at FreeBSD.org
Fri Dec 5 11:46:40 UTC 2014


I'm slowly working on making autofs suitable for mounting removable
media, and one of the things required is filesystem detection.  It's
kind of possible to use file(1), but it's, well, "suboptimal" for this
task.  So, I went and wrote fstyp(8).

This utility, named after SVR4 command with same weird name, detects
filesystems.  It's mostly based on glabel code.  The output is machine
parseable, it can print out filesystem labels, and runs capsicated.

You can join the review at https://reviews.freebsd.org/D1255.



More information about the freebsd-hackers mailing list