All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rasmus Villemoes via Grub-devel <grub-devel@gnu.org>
To: Grub-devel <grub-devel@gnu.org>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
	Daniel Kiper <daniel.kiper@oracle.com>,
	Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Subject: Re: [PATCH] kern/fs: honour file->read_hook in grub_fs_blocklist_read()
Date: Mon, 16 Sep 2024 11:08:39 +0200	[thread overview]
Message-ID: <87ikuwdkyw.fsf@prevas.dk> (raw)
In-Reply-To: <20240829110102.4062070-1-rasmus.villemoes@prevas.dk> (Rasmus Villemoes via Grub-devel's message of "Thu, 29 Aug 2024 13:01:02 +0200")

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

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  reply	other threads:[~2024-09-16  9:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29 11:01 [PATCH] kern/fs: honour file->read_hook in grub_fs_blocklist_read() Rasmus Villemoes via Grub-devel
2024-09-16  9:08 ` Rasmus Villemoes via Grub-devel [this message]
2024-09-16 15:46 ` Vladimir 'phcoder' Serbinenko
2024-10-11 18:12   ` Rasmus Villemoes via Grub-devel
2024-10-15 14:10     ` Daniel Kiper
2024-11-11 11:11       ` Rasmus Villemoes via Grub-devel
2024-11-12 16:08         ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ikuwdkyw.fsf@prevas.dk \
    --to=grub-devel@gnu.org \
    --cc=daniel.kiper@oracle.com \
    --cc=phcoder@gmail.com \
    --cc=rasmus.villemoes@prevas.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.