]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkdiscard: do not probe for signatures on --force
authorKarel Zak <kzak@redhat.com>
Thu, 13 May 2021 08:34:14 +0000 (10:34 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 13 May 2021 08:34:14 +0000 (10:34 +0200)
commite304441936a6198864812063f9c52c2fb587fe94
tree069e94a07742bd3a2c31fd658ed2f876d0ce2b47
parentcef52b197a1472c10c8f0cc0d7bc1e3fd90cc394
blkdiscard: do not probe for signatures on --force

The command-line option --force is defined as "disable all checks",
but the current code does not follow this idea. We need a way how to
disable read from the device (for example for dm-integrity devices).

Fixes: https://github.com/karelzak/util-linux/issues/1308
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/blkdiscard.c