From owner-freebsd-arch@FreeBSD.ORG Fri Sep 17 01:11:18 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D87F816A4CE; Fri, 17 Sep 2004 01:11:18 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7864043D4C; Fri, 17 Sep 2004 01:11:18 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i8H1BHrK006754; Thu, 16 Sep 2004 20:11:17 -0500 (CDT) (envelope-from dan) Date: Thu, 16 Sep 2004 20:11:17 -0500 From: Dan Nelson To: Giorgos Keramidas Message-ID: <20040917011116.GG29528@dan.emsphone.com> References: <20040916184201.GD30151@darkness.comp.waw.pl> <20040916224929.GA50482@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040916224929.GA50482@gothmog.gr> X-OS: FreeBSD 5.3-BETA3 X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: Pawel Jakub Dawidek cc: freebsd-arch@freebsd.org Subject: Re: New libutil function: parse_capacity(3). X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 01:11:19 -0000 In the last episode (Sep 17), Giorgos Keramidas said: > On 2004-09-16 20:42, Pawel Jakub Dawidek wrote: > > http://people.freebsd.org/~pjd/patches/parse_capacity.patch > > Any comments before committing? > > Is it intentional that it works even for "negative" capacities? > > : $ ./foo > : -10 fffffffffffffff6 | -10 fffffffffffffff6 > : -10240 ffffffffffffd800 | -10k ffffffffffffd800 I'd call that a feature. Imagine a "resizefs" command, where you would enter a positive number to grow, and a negative one to shrink. -- Dan Nelson dnelson@allantgroup.com