diff options
author | Karel Zak | 2019-01-18 11:38:57 +0100 |
---|---|---|
committer | Karel Zak | 2019-01-18 11:38:57 +0100 |
commit | 8a74df7f74544ea7d8c3e564665803c68d5c32c1 (patch) | |
tree | 77f71d461f59cc884b2b3f41a1e482e935bbbd7b /libfdisk | |
parent | docs: update TODO (diff) | |
download | kernel-qcow2-util-linux-8a74df7f74544ea7d8c3e564665803c68d5c32c1.tar.gz kernel-qcow2-util-linux-8a74df7f74544ea7d8c3e564665803c68d5c32c1.tar.xz kernel-qcow2-util-linux-8a74df7f74544ea7d8c3e564665803c68d5c32c1.zip |
libfdisk: add comment to fdisk_set_first_lba()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk')
-rw-r--r-- | libfdisk/src/context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c index 18ebeba18..1e0e346a1 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) |