[pve-devel] [PATCH V3 pve-storage] lvm: use blkdiscard instead cstream to saferemove drive
DERUMIER, Alexandre
alexandre.derumier at groupe-cyllene.com
Mon Oct 20 16:37:52 CEST 2025
>
> "There are no restrictions when using blkdiscard -z, although
> blkdiscard performs roughly the same as dd if the storage does not
> support write same."
>>At a glance, the implementation of blkdiscard doesn't seem to have a
>>fallback and will just exit with error if the BLKZEROOUT ioctl()
>>fails:
>>https://github.com/util-linux/util-linux/blob/stable/v2.41/sys-
>>utils/blkdiscard.c#L303
Thanks to have looked at it!
So I'll readd the cstream as fallback to be sure && keep
saferemove_throughput too ?
More information about the pve-devel
mailing list