From: Thomas Weißschuh Date: Mon, 12 Apr 2021 12:11:15 +0000 (+0200) Subject: libblkid: bcache: report wiped area X-Git-Tag: v2.39-rc1~516^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1db1994e06047c2eac5fe21a0b474edd70d9120f;p=thirdparty%2Futil-linux.git libblkid: bcache: report wiped area make-bcache always clears the first 0x1000 bytes Signed-off-by: Thomas Weißschuh --- diff --git a/libblkid/src/superblocks/bcache.c b/libblkid/src/superblocks/bcache.c index a587eedf8a..9f4da5e5d7 100644 --- a/libblkid/src/superblocks/bcache.c +++ b/libblkid/src/superblocks/bcache.c @@ -69,6 +69,8 @@ static int probe_bcache (blkid_probe pr, const struct blkid_idmag *mag) if (blkid_probe_set_uuid(pr, bcs->uuid) < 0) return BLKID_PROBE_NONE; + blkid_probe_set_wiper(pr, 0, BCACHE_SB_OFF); + return BLKID_PROBE_OK; }