From owner-freebsd-fs@FreeBSD.ORG Mon Sep 3 11:48:58 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 667BF16A41A; Mon, 3 Sep 2007 11:48:58 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id CED2213C457; Mon, 3 Sep 2007 11:48:57 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l83BmRi1058328; Mon, 3 Sep 2007 13:48:27 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l83BmM7n097583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Sep 2007 13:48:22 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l83BmLKL068273; Mon, 3 Sep 2007 13:48:21 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l83BmLN4068272; Mon, 3 Sep 2007 13:48:21 +0200 (CEST) (envelope-from ticso) Date: Mon, 3 Sep 2007 13:48:21 +0200 From: Bernd Walter To: Ivan Voras Message-ID: <20070903114821.GQ54895@cicely12.cicely.de> References: <20070901074803.GM85633@comp.chem.msu.su> <20070902233930.O1113@woozle.rinet.ru> <20070903095344.P17354@woozle.rinet.ru> <9bbcef730709022313i72f93e34ye5fd9f69642b3286@mail.gmail.com> <20070903091253.GL54895@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-fs@freebsd.org Subject: Re: New option for newfs(3) to make life with GEOM easier X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 11:48:58 -0000 On Mon, Sep 03, 2007 at 01:20:12PM +0200, Ivan Voras wrote: > Bernd Walter wrote: > > >Don't get me wrong, I'm not against cutting a few sectors per default, > >just want to have a fallback. > > Fallback would be to say "-r 0", presumably. > > >However, I would still prefer if users get a warning if they try to > >use a filesystem, which overflows the media. > >I guess the foot-shooting is quite common about this point. > > How would the file system overflow the media? The case discussed here is > shrinking the file system to be a few sectors smaller than the media > size (i.e. those few sectors would be unused by the fs). In case the media shrinks due to adding gmirror and the fielsystem wasn't reduced. I've seen an unbelieveable amount of systems were this was simply forgotten, fortunately almost all of them mirror the whole device and fdisk leaves quite a few sectors untouched in many cases. It is a different point, but about the same problem. Changing newfs defaults will help about new installations, but not updating older systems, and it even catches those that already use gmirror in such a faulty confguration. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de