libfdisk: add comment

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-07-03 10:23:16 +02:00
parent ea0acfc335
commit 0d034857f2
1 changed files with 3 additions and 0 deletions

View 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