]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (dos) Add function dos_partition_sync_chs() for updating CHS values
authorPali Rohár <pali.rohar@gmail.com>
Fri, 30 Jul 2021 09:01:36 +0000 (11:01 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Fri, 30 Jul 2021 09:01:36 +0000 (11:01 +0200)
commite63d9ab1d604c786f3bc84f0206407433c241951
tree57465b80331e0e1e06cfaba06dd10eabd7f37544
parent8344a81f7a726cef4640f9368bd6728eff6987bc
libfdisk: (dos) Add function dos_partition_sync_chs() for updating CHS values

Call this function everytime after changing either relative LBA partition
offset or LBA partition size to ensure that CHS values are in sync with
LBA.

This should fix partition CHS values after moving or deleting partition.

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