]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: add --discard-free
authorKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2024 12:50:43 +0000 (14:50 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Sep 2024 11:19:09 +0000 (13:19 +0200)
commit8f6f35aeb63341ce90122259196501467e44734b
treebacc3c493b551bd62e7326c1ecba335a03cb21ff
parent123d4de40dd96c1e720b1e87a6b17d362cc244ce
sfdisk: add --discard-free

Why do we need this? It can be difficult for end-users to discard
unpartitioned areas using blkdiscard, as it requires using fdisk to
obtain a list of free areas and then using blkdiscard with the correct
--offset and --length options. It is less risky for end-users to use
(s)fdisk, as they have a better understanding of the disk layout.

Addresses: https://github.com/util-linux/util-linux/issues/2804
Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/sfdisk
disk-utils/sfdisk.8.adoc
disk-utils/sfdisk.c
sys-utils/blkdiscard.8.adoc