From 8a74df7f74544ea7d8c3e564665803c68d5c32c1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Jan 2019 11:38:57 +0100 Subject: [PATCH] libfdisk: add comment to fdisk_set_first_lba() Signed-off-by: Karel Zak --- libfdisk/src/context.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c index 18ebeba18f..1e0e346a1b 100644 --- a/libfdisk/src/context.c +++ b/libfdisk/src/context.c @@ -1230,6 +1230,11 @@ fdisk_sector_t fdisk_get_first_lba(struct fdisk_context *cxt) * partition tables like GPT protective MBR or hybrid partition tables on * bootable media where the first partition may start on very crazy offsets. * + * Note that this function changes only runtime information. It does not update + * any range in on-disk partition table. For example GPT Header contains First + * and Last usable LBA fields. These fields are not updated by this function. + * Be careful. + * * Returns: 0 on success, <0 on error. */ fdisk_sector_t fdisk_set_first_lba(struct fdisk_context *cxt, fdisk_sector_t lba) -- 2.47.3