grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] kern/fs: honour file->read_hook in grub_fs_blocklist_read()


From: Rasmus Villemoes
Subject: Re: [PATCH] kern/fs: honour file->read_hook in grub_fs_blocklist_read()
Date: Mon, 16 Sep 2024 11:08:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Rasmus Villemoes <rasmus.villemoes@prevas.dk> writes:

> Unlike files accessed via a normal file system, the file->read_hook is
> not honoured when using blocklist notation.
>
> This means that when trying to use a dedicated, 1KiB, raw partition
> for the environment block and hence does something like
>
>   save_env --file=(hd0,gpt9)0+2 X Y Z
>
> this fails with "sparse file not allowed", which is rather unexpected,
> as I've explicitly said exactly which blocks should be used. Adding a
> little debugging reveals that grub_file_size (file) is 1024 as
> expected, but total_length is 0, simply because the callback was never
> invoked, so blocklists is an empty list.
>
> Fix that by honouring the ->read_hook set by the caller, also when a
> "file" is specified with blocklist notation.

Gentle ping.

This is my first patch to grub so please advise if I have done anything
wrong, including if I should/should not explicitly cc maintainers and/or
if I should just have more patience :)

Rasmus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]