]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Warn user when value entered is greated than the amount supported
authorMaxim Sobolev <sobomax@FreeBSD.org>
Sat, 22 Jan 2011 05:21:20 +0000 (05:21 +0000)
committerMaxim Sobolev <sobomax@FreeBSD.org>
Sat, 22 Jan 2011 05:21:20 +0000 (05:21 +0000)
commit68df7abe8a19c7dac48f1a063029d8b8fc2c74bf
treeb087da1b2c7584c30ec0a6e4c3ee6a04c69c0787
parentb2b953afeebf4bc6b885d06eaa919ccb44762a3a
Warn user when value entered is greated than the amount supported
by the MBR for the given parameter and set that parameter to the
maximum value instead of just truncating the most significant part
silently.

Could happen for example if the capacity of the device is more
than 2TB, so that the number of sectors is greater than 2Mib.

MFC after: 1 month
sbin/fdisk/fdisk.c