diff options
author | Karel Zak | 2014-01-30 12:21:11 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:13 +0100 |
commit | 2cec7949947aa6d48112ea4f0928e6698174f342 (patch) | |
tree | cb3e63b0ef026c1f13bd7e9e99c8995aa817b8c8 /fdisks/fdisk.c | |
parent | cfdisk: add UI for linfdisk menus, ask for size (diff) | |
download | kernel-qcow2-util-linux-2cec7949947aa6d48112ea4f0928e6698174f342.tar.gz kernel-qcow2-util-linux-2cec7949947aa6d48112ea4f0928e6698174f342.tar.xz kernel-qcow2-util-linux-2cec7949947aa6d48112ea4f0928e6698174f342.zip |
libfdisk: rewrite freespace code
* use separate function to get free space
* allow to use label-specific get_freespace() function
(this is necessary for MBR extended partitions mess)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r-- | fdisks/fdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index fa74ec0ae..ba99fe74f 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -241,7 +241,7 @@ void list_disklabel(struct fdisk_context *cxt) fdisk_list_disklabel(cxt); /* print partitions */ - if (fdisk_get_table(cxt, &tb)) + if (fdisk_get_partitions(cxt, &tb)) return; if (fdisk_table_to_string(tb, cxt, NULL, 0, &str) == 0) { fputc('\n', stdout); |