#!/usr/bin/env bash # - fallocate -z deallocates because BLKDEV_ZERO_NOUNMAP hint is ignored by # krbd # # - big unaligned blkdiscard and fallocate -z/-p leave the objects in place set -ex # no blkdiscard(8) in trusty function py_blkdiscard() { local offset=$1 python3 <