[RFC] mount can figure out fstype automatically

David O'Brien obrien at freebsd.org
Mon Jul 10 22:38:50 UTC 2006


On Sat, Jul 08, 2006 at 12:17:19PM -0400, Craig Rodrigues wrote:
> I was thinking of doing something like that.  You can basically
> get the same info by doing something like:
> file - < /dev/ad0s1e
> /dev/stdin: Unix Fast File system (little-endian)
> file - < /dev/ad0s4
> /dev/stdin: SGI XFS filesystem
> 
> I leaned away from this approach in mount(8) because:
> - I didn't want to tie mount(8) to file(1)

Why not?  We have libmagic for purposes like this.

-- 
-- David  (obrien at FreeBSD.org)
Q: Because it reverses the logical flow of conversation.
A: Why is top-posting (putting a reply at the top of the message) frowned upon?


More information about the freebsd-arch mailing list