]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (dos) Recalculate number of cylinders after changing number of heads and...
authorPali Rohár <pali.rohar@gmail.com>
Mon, 5 Jul 2021 20:13:11 +0000 (22:13 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Thu, 15 Jul 2021 19:49:30 +0000 (21:49 +0200)
commitb27ebfe59a414471b4068947291b74e66472ce3a
tree1829c072669be1bd3d520ac66694b973e06a4421
parent913829559b19a6a13e3574a3e0746410a7005ffb
libfdisk: (dos) Recalculate number of cylinders after changing number of heads and sectors

After geometry is changes it is required to recalculate total number of
cylinders. Otherwise total disk capacity is either reduced or extended.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libfdisk/src/dos.c