diff options
author | Karel Zak | 2017-07-03 10:23:16 +0200 |
---|---|---|
committer | Karel Zak | 2017-07-14 11:34:55 +0200 |
commit | 0d034857f28910638b549ed2040eae86957fd679 (patch) | |
tree | 0dd21ae8c84b9d08d931f5adaf6bb31f966c2b40 /libfdisk/src/partition.c | |
parent | sfdisk: use fdisk_device_is_used() (diff) | |
download | kernel-qcow2-util-linux-0d034857f28910638b549ed2040eae86957fd679.tar.gz kernel-qcow2-util-linux-0d034857f28910638b549ed2040eae86957fd679.tar.xz kernel-qcow2-util-linux-0d034857f28910638b549ed2040eae86957fd679.zip |
libfdisk: add comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/partition.c')
-rw-r--r-- | libfdisk/src/partition.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libfdisk/src/partition.c b/libfdisk/src/partition.c index 248e40b8b..daa73a4ed 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 |