mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
c69a7a718d
only being able to create 1TB partitions: o) Use an unsigned 32-bit quantity to store the number of disk sectors. o) Detect overflow of said 32-bit quantity and clamp to 2^32. o) Rather than returning the disk sector count from get_params, return 0 on success, since its return value is only ever compared to -1 to detect failure. This would cause returning 2^32 sectors to be interpreted as an error. Reviewed by: bde ("good for a quick fix") |
||
---|---|---|
.. | ||
fdisk.8 | ||
fdisk.c | ||
Makefile | ||
runtest.sh |