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)
This commit is contained in:
Rebecca Cran 2010-07-22 17:35:36 +00:00
parent 033459c8f1
commit 1bc5b32ccb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210381

View file

@ -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();