From owner-cvs-src-old@FreeBSD.ORG Tue Jun 16 12:33:47 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94B971065752 for ; Tue, 16 Jun 2009 12:33:47 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 81CB28FC13 for ; Tue, 16 Jun 2009 12:33:47 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5GCXlwV044308 for ; Tue, 16 Jun 2009 12:33:47 GMT (envelope-from edwin@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5GCXldg044307 for cvs-src-old@freebsd.org; Tue, 16 Jun 2009 12:33:47 GMT (envelope-from edwin@repoman.freebsd.org) Message-Id: <200906161233.n5GCXldg044307@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to edwin@repoman.freebsd.org using -f From: Edwin Groothuis Date: Tue, 16 Jun 2009 12:33:38 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/tools/tools/nanobsd nanobsd.sh X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2009 12:33:47 -0000 edwin 2009-06-16 12:33:38 UTC FreeBSD src repository Modified files: tools/tools/nanobsd nanobsd.sh Log: SVN rev 194288 on 2009-06-16 12:33:38Z by edwin Fix NanoBSD when the data partition size is defined as a negative number. It is possible to ask nanobsd.sh to create a 'data' partition, separate from the system or configuration partitions, and furthermore, by specifying a negative value for its size to request that it use all space unused by those partitions for its own size. Because the two lines of code that calculate how much space is available for this data partition are written in perl-like syntax, the awk code that does the processing performs the calculation incorrectly. [note - this was already fixed by r174936] Furthermore, a comparison later down fails to newfs the partition when the size is negative. PR: misc/127759 Submitted by: Cyrus Rahman MFC after: 1 week Revision Changes Path 1.47 +1 -1 src/tools/tools/nanobsd/nanobsd.sh