From: Karel Zak Date: Mon, 3 Jul 2017 08:23:16 +0000 (+0200) Subject: libfdisk: add comment X-Git-Tag: v2.31-rc1~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d034857f28910638b549ed2040eae86957fd679;p=thirdparty%2Futil-linux.git libfdisk: add comment Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/partition.c b/libfdisk/src/partition.c index 248e40b8be..daa73a4ed2 100644 --- a/libfdisk/src/partition.c +++ b/libfdisk/src/partition.c @@ -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