[PATCH] fs: ext4: fix files seen as symlink during deletion
Tom Rini
trini at konsulko.com
Mon Mar 20 18:01:15 CET 2023
On Fri, Mar 17, 2023 at 01:15:12PM +0100, Corentin GUILLEVIC wrote:
> The deletion process handles special case for symlinks whose target are
> small enough that it fits in struct ext2_inode.b.symlink. So no block had
> been allocated. But the check of file type wrongly considered regular
> files as symlink. So, no block was freed. So, the EXT4 partition could be
> corrupted because of no free block available.
>
> Signed-off-by: Corentin GUILLEVIC <corentin.guillevic at smile.fr>
> ---
>
> fs/ext4/ext4_write.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Can we update test/py/tests/test_fs/ somewhere to have a test for this
case? Thanks.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230320/4be9bc60/attachment.sig>
More information about the U-Boot
mailing list