]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: add comment to fdisk_set_first_lba()
authorKarel Zak <kzak@redhat.com>
Fri, 18 Jan 2019 10:38:57 +0000 (11:38 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Jan 2019 10:38:57 +0000 (11:38 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/context.c

index 18ebeba18fafed25f25955c99ded34f8579ffecc..1e0e346a1b20187ffd01bf5d6ae3e094dbc44b08 100644 (file)
@@ -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)