[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] exfat: Read the contiguous flag from the correct extension
From: |
Andrei Borzenkov |
Subject: |
Re: [PATCH] exfat: Read the contiguous flag from the correct extension |
Date: |
Thu, 20 Oct 2016 20:38:51 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
19.10.2016 18:20, Carlo Caione пишет:
> From: Carlo Caione <address@hidden>
>
> dir.is_contiguous flag is being set reading into the wrong struct.
> This is causing a fragmented file not to be readable from an exfat
> partition since the NoFatChain bit is wrong. Fix this.
>
> Signed-off-by: Carlo Caione <address@hidden>
> ---
> grub-core/fs/fat.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/grub-core/fs/fat.c b/grub-core/fs/fat.c
> index d5212c2..dd8850a 100644
> --- a/grub-core/fs/fat.c
> +++ b/grub-core/fs/fat.c
> @@ -684,7 +684,7 @@ grub_fat_iterate_dir_next (grub_disk_t disk, struct
> grub_fat_data *data,
> ctxt->dir.file_size
> = grub_cpu_to_le64
> (sec.type_specific.stream_extension.file_size);
> ctxt->dir.have_stream = 1;
> - ctxt->dir.is_contiguous =
> !!(dir.type_specific.stream_extension.flags
> + ctxt->dir.is_contiguous =
> !!(sec.type_specific.stream_extension.flags
This is fixed almost a year ago. Please always check current git whether
problem still exists. Thank you.
> & grub_cpu_to_le16_compile_time
> (FLAG_CONTIGUOUS));
> break;
> case 0xc1:
>