Date: Thu, 22 Jul 2010 17:35:36 +0000 (UTC) From: Bruce Cran <brucec@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210381 - head/usr.sbin/sysinstall Message-ID: <201007221735.o6MHZaxa013822@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brucec Date: Thu Jul 22 17:35:36 2010 New Revision: 210381 URL: http://svn.freebsd.org/changeset/base/210381 Log: If a size suffix isn't entered, just use the value entered. This fixes a bug caused by r209235 where entering a number of blocks after previously entering a size in MB/GB would result in the size of the previous partition being used. PR: bin/148266 Submitted by: jpaetzel Approved by: rrs (mentor) Modified: head/usr.sbin/sysinstall/label.c Modified: head/usr.sbin/sysinstall/label.c ============================================================================== --- head/usr.sbin/sysinstall/label.c Thu Jul 22 17:23:43 2010 (r210380) +++ head/usr.sbin/sysinstall/label.c Thu Jul 22 17:35:36 2010 (r210381) @@ -1036,7 +1036,10 @@ diskLabel(Device *dev) #endif else size = (daddr_t) dsize; + } else { + size = (daddr_t) dsize; } + if (size < FS_MIN_SIZE) { msgConfirm("The minimum filesystem size is %dMB", FS_MIN_SIZE / ONE_MEG); clear_wins();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007221735.o6MHZaxa013822>