From owner-freebsd-fs@FreeBSD.ORG  Sat Sep  1 09:24:04 2007
Return-Path: <owner-freebsd-fs@FreeBSD.ORG>
Delivered-To: fs@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D7CE816A419
	for <fs@freebsd.org>; Sat,  1 Sep 2007 09:24:04 +0000 (UTC)
	(envelope-from yar@comp.chem.msu.su)
Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97])
	by mx1.freebsd.org (Postfix) with ESMTP id 7DB8213C469
	for <fs@freebsd.org>; Sat,  1 Sep 2007 09:24:01 +0000 (UTC)
	(envelope-from yar@comp.chem.msu.su)
Received: from comp.chem.msu.su (localhost [127.0.0.1])
	by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l819NBCL017493;
	Sat, 1 Sep 2007 13:23:11 +0400 (MSD)
	(envelope-from yar@comp.chem.msu.su)
Received: (from yar@localhost)
	by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l819NAAW017492;
	Sat, 1 Sep 2007 13:23:10 +0400 (MSD) (envelope-from yar)
Date: Sat, 1 Sep 2007 13:23:10 +0400
From: Yar Tikhiy <yar@comp.chem.msu.su>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Message-ID: <20070901092310.GO85633@comp.chem.msu.su>
References: <20070901074803.GM85633@comp.chem.msu.su>
	<3842.1188634387@critter.freebsd.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3842.1188634387@critter.freebsd.dk>
User-Agent: Mutt/1.5.9i
Cc: Dmitry Morozovsky <marck@rinet.ru>, 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
List-Id: Filesystems <freebsd-fs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>,
	<mailto:freebsd-fs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-fs>
List-Post: <mailto:freebsd-fs@freebsd.org>
List-Help: <mailto:freebsd-fs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-fs>,
	<mailto:freebsd-fs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 01 Sep 2007 09:24:04 -0000

On Sat, Sep 01, 2007 at 08:13:07AM +0000, Poul-Henning Kamp wrote:
> In message <20070901074803.GM85633@comp.chem.msu.su>, Yar Tikhiy writes:
> >Hi all,
> >
> >With some geom(4) modules saving their metadata in the last sectors
> >of block devices such as disks and partitions, 
> 
> 1.  If those geom modules do not reduce their providers to prevent
> this metadata from being overwritten, they are buggy.

In some scenarios, it can be desirable to newfs first, geom later.

> 2.  Why not simply allow the -s argument to newfs to be negative so
>     "-s -200" means "reserve 200 sectors" ?

A negative argument to -s has been invalid till now, so we propose
a new option for people to express their intentions explicitly.
Personally, I don't mind the "-s -200" syntax, but many people
consider overloaded arguments unintuitive and error-prone.

-- 
Yar