]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: bcache: report wiped area
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 12 Apr 2021 12:11:15 +0000 (14:11 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 13 Sep 2022 07:57:44 +0000 (09:57 +0200)
make-bcache always clears the first 0x1000 bytes

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/superblocks/bcache.c

index a587eedf8ab02e543e780184cad0150be2915c1c..9f4da5e5d7f31022340fa5568170a7bc76aae398 100644 (file)
@@ -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;
 }