aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2024-09-16 14:50:43 +0200
committerKarel Zak <kzak@redhat.com>2024-09-17 13:19:09 +0200
commit8f6f35aeb63341ce90122259196501467e44734b (patch)
treebacc3c493b551bd62e7326c1ecba335a03cb21ff /bash-completion
parent123d4de40dd96c1e720b1e87a6b17d362cc244ce (diff)
downloadutil-linux-8f6f35aeb63341ce90122259196501467e44734b.tar.gz
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>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/sfdisk1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash-completion/sfdisk b/bash-completion/sfdisk
index b075ccc911..4dc57c4eaf 100644
--- a/bash-completion/sfdisk
+++ b/bash-completion/sfdisk
@@ -58,6 +58,7 @@ _sfdisk_module()
--show-geometry
--list
--list-free
+ --discard-free
--disk-id
--reorder
--show-size