From 11d0724f789726fb6344ffb025e1754b7dcaa0c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sat, 3 Jun 2023 10:50:26 +0200 Subject: [PATCH] libblkid: (bcache) report label MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- libblkid/src/superblocks/bcache.c | 3 +++ tests/expected/blkid/low-probe-bcache-journal | 2 ++ 2 files changed, 5 insertions(+) diff --git a/libblkid/src/superblocks/bcache.c b/libblkid/src/superblocks/bcache.c index d1c8977eed..c3c84105a0 100644 --- a/libblkid/src/superblocks/bcache.c +++ b/libblkid/src/superblocks/bcache.c @@ -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; diff --git a/tests/expected/blkid/low-probe-bcache-journal b/tests/expected/blkid/low-probe-bcache-journal index c46ba22214..d61ea279f0 100644 --- a/tests/expected/blkid/low-probe-bcache-journal +++ b/tests/expected/blkid/low-probe-bcache-journal @@ -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 -- 2.47.3