From 189b41b6b48786a51eb2b8bc450cb7d560f030f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Tue, 14 Jan 2020 19:49:41 +0100 Subject: [PATCH] libblkid-tiny: fix f2fs labels by increasing label buffer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit f2fs max label length is 1024B (512 * uint16_t) which is way above current 256B used in `struct blkid_struct_probe` which renders labels on f2fs system unusable: $ mkfs.f2fs -l drive /dev/sda1 $ block info /dev/sda1 label buffer too small 1024 > 255 So increase the label buffer again in order to make enough space for f2fs labels. Fixes: FS#2735 Signed-off-by: Petr Å tetiar --- libblkid-tiny/libblkid-tiny.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid-tiny/libblkid-tiny.h b/libblkid-tiny/libblkid-tiny.h index f0922b5..e476e7b 100644 --- a/libblkid-tiny/libblkid-tiny.h +++ b/libblkid-tiny/libblkid-tiny.h @@ -56,7 +56,7 @@ struct blkid_struct_probe int err; char dev[32]; char uuid[64]; - char label[256]; + char label[1025]; char version[64]; struct list_head buffers; /* list of buffers */ -- 2.25.1