From 0d034857f28910638b549ed2040eae86957fd679 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 3 Jul 2017 10:23:16 +0200 Subject: [PATCH] libfdisk: add comment Signed-off-by: Karel Zak --- libfdisk/src/partition.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3