From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 8 16:59:23 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 51E3757D for ; Mon, 8 Dec 2014 16:59:23 +0000 (UTC) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D521AD73 for ; Mon, 8 Dec 2014 16:59:22 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id x13so4195359wgg.33 for ; Mon, 08 Dec 2014 08:59:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=tRsaPZk7kZiD7tw1Jq63yD7xP9wtGsMjHENnBtoHQXA=; b=0AGZDqQhU5ubQ6iOHQM0gG1ZLC2dayIwGyLeZ/yhNcJQPcGZ4fRPMtPvcMK3KD/lEz gX3RCCEwn+g8Q5jWl2ON5dsQH9RB0HuXuPvzTknePsi8aCyXYOdU7hBjrWuApZJ5cyCH BPBM2vF9i3xxVNuVyumwUIhuLKnMhBrT1Yp3fhLOH63EMMxUM7sTI0njG3feHeby4GOj LLPAUnwIINV8UaBRurT8NjPQAXUt8Nfl9h/gfHC6DeRWeb68xtA0dqJiIUoJLkfG0YRG ApakEtq8TsyZs0f2j287XC0AtUQAOV2OX9ZqX3VmtKfBi6t0kIjURw8K9Cjemx9Eukcp InQQ== X-Received: by 10.180.73.235 with SMTP id o11mr25410403wiv.51.1418057961181; Mon, 08 Dec 2014 08:59:21 -0800 (PST) Received: from [77.113.95.134] (apn-77-113-95-134.dynamic.gprs.plus.pl. [77.113.95.134]) by mx.google.com with ESMTPSA id eu8sm10464043wib.21.2014.12.08.08.59.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 08:59:20 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: fstyp(8) From: =?utf-8?Q?Edward_Tomasz_Napiera=C5=82a?= X-Mailer: iPhone Mail (12B435) In-Reply-To: <20141208131107.GD68024@e-new.0x20.net> Date: Mon, 8 Dec 2014 17:59:17 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <02915D00-6415-4C9C-B841-7351B0886BC0@FreeBSD.org> References: <20141205114635.GA12557@brick.home> <20141208131107.GD68024@e-new.0x20.net> To: Lars Engels 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: Mon, 08 Dec 2014 16:59:23 -0000 Dnia 8 gru 2014 o godz. 14:11 Lars Engels napisa=C5=82= (a): >> On Fri, Dec 05, 2014 at 12:46:35PM +0100, Edward Tomasz Napiera=C5=82a wr= ote: >> 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? 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".