Date: Tue, 23 Jun 2009 22:22:20 +0000 (UTC) From: Edwin Groothuis <edwin@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/tools/tools/nanobsd nanobsd.sh Message-ID: <200906232222.n5NMMWtr078630@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <crahman@gmail.com> Revision Changes Path 1.28.2.3 +1 -1 src/tools/tools/nanobsd/nanobsd.sh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906232222.n5NMMWtr078630>