]> www.infradead.org Git - users/jedix/linux-maple.git/commit
erofs: allow 16-byte volume name again
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 25 Feb 2025 03:39:34 +0000 (11:39 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Mar 2025 17:21:36 +0000 (01:21 +0800)
commit579450277780159b8ba94a08b2f1d1da2002aec5
treececd2524fbfd5ba2415de62e0d4c1894d656e702
parent706e50e46af810f521f47e7bfd385f000c4556a0
erofs: allow 16-byte volume name again

Actually, volume name doesn't need to include the NIL terminator if
the string length matches the on-disk field size as mentioned in [1].

I tend to relax it together with the upcoming 48-bit block addressing
(or stable kernels which backport this fix) so that we could have a
chance to record a 16-byte volume name like ext4.

Since in-memory `volume_name` has no user, just get rid of the unneeded
check for now.  `sbi->uuid` is useless and avoid it too.

[1] https://lore.kernel.org/r/96efe46b-dcce-4490-bba1-a0b00932d1cc@linux.alibaba.com

Fixes: a64d9493f587 ("staging: erofs: refuse to mount images with malformed volume name")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250225033934.2542635-1-hsiangkao@linux.alibaba.com
fs/erofs/internal.h
fs/erofs/super.c