From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 9 09:04:52 2014 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E55BEF33; Tue, 9 Dec 2014 09:04:52 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2FFE3EF; Tue, 9 Dec 2014 09:04:52 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 6A4C66A6008; Tue, 9 Dec 2014 10:04:49 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id sB994ngG027516; Tue, 9 Dec 2014 10:04:49 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id sB994mip027265; Tue, 9 Dec 2014 10:04:48 +0100 (CET) (envelope-from lars) Date: Tue, 9 Dec 2014 10:04:48 +0100 From: Lars Engels To: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= Subject: Re: fstyp(8) Message-ID: <20141209090448.GF68024@e-new.0x20.net> References: <20141205114635.GA12557@brick.home> <20141208131107.GD68024@e-new.0x20.net> <02915D00-6415-4C9C-B841-7351B0886BC0@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pZtAG9wM4xcPQMtr" Content-Disposition: inline In-Reply-To: <02915D00-6415-4C9C-B841-7351B0886BC0@FreeBSD.org> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p16 User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailman-Approved-At: Tue, 09 Dec 2014 12:48:35 +0000 Cc: "hackers@FreeBSD.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 09:04:53 -0000 --pZtAG9wM4xcPQMtr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 08, 2014 at 05:59:17PM +0100, Edward Tomasz Napiera=C5=82a wrot= e: > Dnia 8 gru 2014 o godz. 14:11 Lars Engels napisa= =C5=82(a): >=20 > >> On Fri, Dec 05, 2014 at 12:46:35PM +0100, Edward Tomasz Napiera=C5=82a= wrote: > >> 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). > >>=20 > >> 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. > >>=20 > >> You can join the review at https://reviews.freebsd.org/D1255. > >=20 > > Will it be possible to run "mount /dev/da$foo" without specifying a file > > system type? >=20 > No, but it's possible to run "mount -t `fstyp /dev/da$foo` /dev/da$foo > /mnt". Or, with upcoming "-media" autofs map, just "cd > /media/da$foo". Okay, that's a candidate for some shell alias then :) --pZtAG9wM4xcPQMtr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJUhrswXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tFFAH/ApFaVtA3K/PTrIHrzDHQZhZ HIPruEGyRb2VEH+LkznZrxSKiWLluHcbB9cW0ojdd21wNOQ3ms08d0TKhc34q9KF gz7L3tQnI4FU0jj63DVJAwJNVmxlJX84zvIAsjxOrfZ4yFNuRUWgcU/TaT6IDGm8 yzIsP8f7ru8Z4lcKW/cat7W0hFwyfItFrDbishE8drKOd8vPiDuhwADmzkL65e+1 mP0ynw8G231wo48C2b0PxetLGgdXTDiNgz6njVjQrx+x6192tpQAVaBG+038dnGZ lGt0TBv97WsSx7RyRLl4zg86o0CqiP/g/9S2bJsPVtUr+Gi0KosvZfrzJNyOKS8= =ftXf -----END PGP SIGNATURE----- --pZtAG9wM4xcPQMtr--