]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (bcache) report label
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 3 Jun 2023 08:50:26 +0000 (10:50 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 3 Jun 2023 11:51:09 +0000 (13:51 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/superblocks/bcache.c
tests/expected/blkid/low-probe-bcache-journal

index d1c8977eedede8807d7207facb789a26d24626a8..c3c84105a04115d044137b7bee4e9d2d3fe04c0a 100644 (file)
@@ -187,6 +187,9 @@ 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;
 
+       if (blkid_probe_set_label(pr, bcs->label, sizeof(bcs->label)) < 0)
+               return BLKID_PROBE_NONE;
+
        blkid_probe_set_wiper(pr, 0, BCACHE_SB_OFF);
 
        return BLKID_PROBE_OK;
index c46ba22214571a7b95bcf9c4cd843a5b1e0ec7ab..d61ea279f0ba77433aa4b6099e1741109d591d23 100644 (file)
@@ -1,3 +1,5 @@
+ID_FS_LABEL=journal-cache
+ID_FS_LABEL_ENC=journal-cache
 ID_FS_TYPE=bcache
 ID_FS_USAGE=other
 ID_FS_UUID=fc6ea56f-372e-474e-bc5b-2ddc8430ddd1