From owner-freebsd-current@FreeBSD.ORG Thu Jan 18 14:49:38 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 930AF16A412; Thu, 18 Jan 2007 14:49:38 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 7AB4813C44B; Thu, 18 Jan 2007 14:49:33 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l0IEnCAD039877; Thu, 18 Jan 2007 06:49:13 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l0IEnCDM039876; Thu, 18 Jan 2007 06:49:12 -0800 (PST) (envelope-from rizzo) Date: Thu, 18 Jan 2007 06:49:12 -0800 From: Luigi Rizzo To: Andrew Pantyukhin Message-ID: <20070118064912.A39777@xorpc.icir.org> References: <20070118134936.GA7391@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from infofarmer@freebsd.org on Thu, Jan 18, 2007 at 05:14:49PM +0300 Cc: Craig Rodrigues , freebsd-current@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFC] mount(8) can figure out fstype X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 14:49:38 -0000 On Thu, Jan 18, 2007 at 05:14:49PM +0300, Andrew Pantyukhin wrote: > On 1/18/07, Craig Rodrigues wrote: ... > > One of the pet peeves I have with FreeBSD is that > > if I have a device with a local filesystem that I want to mount, > > I need to explicitly know what type of filesystem is on the > > device in order to mount it from the command-line. ... > > Where this is particularly annoying is if I have multiple > > USB thumb drives with different filesystems on them. ... > > What I would like to do is: > > > > mount /dev/ad0s4 /mnt > > > > and if I do not specify a filesystem type with -t, the mount > > program should "magically" figure out how to mount the disk. > > This is closer to how the mount program behaves on Linux for example. > > > > In this patch, I only modified the userland mount program. ... > 2. "mount -t auto" might be closer to POLA great feature. I probably agree that "mount -t auto" might be a safer way to implement it, but other than that i'd love to have it too. cheers luigi