]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: add comment
authorKarel Zak <kzak@redhat.com>
Mon, 3 Jul 2017 08:23:16 +0000 (10:23 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 14 Jul 2017 09:34:55 +0000 (11:34 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/partition.c

index 248e40b8beb0a61e83b6cfe3f18d21c86eae7841..daa73a4ed26bffa9ea185680f75b24a8cbc6e42e 100644 (file)
@@ -1474,6 +1474,9 @@ int fdisk_delete_all_partitions(struct fdisk_context *cxt)
  * @cxt: context
  * @n: partition number (0 is the first partition)
  *
+ * Check if the partition number @n is used by partition table. This function
+ * does not check if the device is used (e.g. mounted) by system!
+ *
  * This is faster than fdisk_get_partition() + fdisk_partition_is_used().
  *
  * Returns: 0 or 1