]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: improve list_freespace()
authorKarel Zak <kzak@redhat.com>
Fri, 12 Apr 2024 09:13:39 +0000 (11:13 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Apr 2024 07:31:45 +0000 (09:31 +0200)
commit9bdcf863bedec6d401d0ecd165a8c6c5e237084a
tree5a56290d7fc9ffe295219019776168c46c91ef8f
parent3f95c0d61c6c7f8029fb94e5e6601ae6fff777c3
fdisk: improve list_freespace()

Make the function usable in other dialogs:

* Return a table of the free spaces.
* Return the "best" table entry (to be used as the default in
  dialogs).
* Print the order number of entries.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk-list.c
disk-utils/fdisk-list.h