]> www.infradead.org Git - mtd-utils.git/commit
mkfs.ubifs: Fix incorrect dir size calculation in encryption scenario
authorZhihao Cheng <chengzhihao1@huawei.com>
Thu, 9 May 2024 12:30:08 +0000 (20:30 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 25 Sep 2024 07:08:41 +0000 (09:08 +0200)
commit21b1a69625263ec08a0272240988ab8f685fba92
tree95b7ec65b42bda49b56509a9780245376511d0ab
parentd17b14d953b2ab56c938d6c7829b70b91c736efe
mkfs.ubifs: Fix incorrect dir size calculation in encryption scenario

The size of directory should be the total length of encrypted entry name,
otherwise it could trigger errors while checking filesystem:
 dbg_check_filesystem [ubifs]: directory inode 89 size is 352, but
 calculated size is 400

Fixes: 4c55918dd747d ("Implement filename encryption")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c