]> sourceware.org Git - lvm2.git/commit
wipe_lv: use BLKZEROOUT when possible
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 2 Oct 2020 17:32:28 +0000 (19:32 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 2 Oct 2020 19:04:16 +0000 (21:04 +0200)
commite7fff97b8dc4c0a9170bed84388f9ccf55b09169
tree65ad08080d64609cfcd54b5735ccf71505894dd8
parentc65d3a6b8a79b7ba68f56194a12d66b9c5f41547
wipe_lv: use BLKZEROOUT when possible

Since BLKZEROOUT ioctl should be supposedly fastest
way how to clear block device start using this ioctl
for zeroing a device. Commonly we do zero typically
small portion of a device (8KiB) - however since we now
also started to zero metadata devices, in the case
of i.e. thin-pool metadata this can go upto ~16GiB
and here the performance starts to be noticable.
WHATS_NEW
lib/metadata/lv_manip.c
This page took 0.032217 seconds and 5 git commands to generate.