[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V2] fs/ext2: fix the file not found error when symlink filesi
From: |
Daniel Kiper |
Subject: |
Re: [PATCH V2] fs/ext2: fix the file not found error when symlink filesize is 60 |
Date: |
Sat, 27 Feb 2021 13:33:07 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Fri, Jan 08, 2021 at 08:39:47AM +0800, Yi Zhao wrote:
> We encountered a file not found error when the symlink filesize is 60:
> $ ls -l initrd
> lrwxrwxrwx 1 root root 60 Jan 6 16:37 initrd ->
> secure-core-image-initramfs-5.10.2-yoctodev-standard.cpio.gz
>
> When booting, we got the following error in grub:
> error: file `/initrd' not found
>
> The root cause is although the size of diro->inode.symlink is 60, it
> includes the trailing '\0'. So if the symlink filesize is exactly 60, it
> is also stored in a separate block rather than in the inode.
>
> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH V2] fs/ext2: fix the file not found error when symlink filesize is 60,
Daniel Kiper <=