From owner-cvs-src-old@FreeBSD.ORG Tue Jun 23 22:22:32 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 7E8841065672 for ; Tue, 23 Jun 2009 22:22:32 +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 6BDA88FC0C for ; Tue, 23 Jun 2009 22:22:32 +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 n5NMMWVE078631 for ; Tue, 23 Jun 2009 22:22:32 GMT (envelope-from edwin@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5NMMWtr078630 for cvs-src-old@freebsd.org; Tue, 23 Jun 2009 22:22:32 GMT (envelope-from edwin@repoman.freebsd.org) Message-Id: <200906232222.n5NMMWtr078630@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to edwin@repoman.freebsd.org using -f From: Edwin Groothuis Date: Tue, 23 Jun 2009 22:22:20 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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, 23 Jun 2009 22:22:32 -0000 edwin 2009-06-23 22:22:20 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) tools/tools/nanobsd nanobsd.sh Log: SVN rev 194782 on 2009-06-23 22:22:20Z 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 Revision Changes Path 1.28.2.3 +1 -1 src/tools/tools/nanobsd/nanobsd.sh