[PATCH v3] erofs-utils: adjust volume label maximum length to the kernel implementation

Gao Xiang hsiangkao at linux.alibaba.com
Fri Aug 16 16:32:12 AEST 2024



On 2024/8/16 11:13, Naoto Yamaguchi wrote:
> The erofs implementation of kernel has limitation of the volume label length.
> The volume label data size of super block is 16 bytes.
> The kernel implementation requires to null terminate inside a that 16 bytes.
> 
> Logs:
>    $ ./mkfs/mkfs.erofs test16.erofs -L 0123456789abcdef test/
>    $ mount -o loop ./test16.erofs ./mnt/
>    $ dmesg
>    [26477.019283] erofs: (device loop0): erofs_read_superblock: bad volume name without NIL terminator
> 
>    $ ./mkfs/mkfs.erofs test15.erofs -L 0123456789abcde test/
>    $ mount -o loop ./test15.erofs ./mnt/
>    $ dmesg
>    [26500.516871] erofs: (device loop0): mounted with root inode @ nid 36.
> 
> This patch adjusts volume label maximum length to the kernel implementation.
> 
> Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi at aisin.co.jp>

Thanks, applied.

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list