From: Petr Štetiar Date: Tue, 14 Jan 2020 18:49:41 +0000 (+0100) Subject: libblkid-tiny: fix f2fs labels by increasing label buffer X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=189b41b6b48786a51eb2b8bc450cb7d560f030f0;p=oweals%2Ffstools.git libblkid-tiny: fix f2fs labels by increasing label buffer 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 --- 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 */