[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 24/29] btrfs: export btrfs_subvol and btrfs_subvolid
From: |
Neal Gompa |
Subject: |
Re: [PATCH v3 24/29] btrfs: export btrfs_subvol and btrfs_subvolid |
Date: |
Fri, 18 Oct 2024 13:35:48 -0400 |
On Mon, Oct 14, 2024 at 1:10 PM Leo Sandoval <lsandova@redhat.com> wrote:
>
> From: Michael Chang <mchang@suse.com>
>
> We should export btrfs_subvol and btrfs_subvolid to have both visible
> to subsidiary configuration files loaded using configfile.
>
> Signed-off-by: Michael Chang <mchang@suse.com>
> ---
> grub-core/fs/btrfs.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
> index 8e2b1e9f7..14e38a4df 100644
> --- a/grub-core/fs/btrfs.c
> +++ b/grub-core/fs/btrfs.c
> @@ -2920,6 +2920,8 @@ GRUB_MOD_INIT (btrfs)
> subvol_set_env);
> grub_register_variable_hook ("btrfs_subvolid", subvolid_get_env,
> subvolid_set_env);
> + grub_env_export ("btrfs_subvol");
> + grub_env_export ("btrfs_subvolid");
> }
>
> GRUB_MOD_FINI (btrfs)
> --
> 2.46.2
>
LGTM. :)
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
--
真実はいつも一つ!/ Always, there's only one truth!
- Re: [PATCH v3 22/29] btrfs: Add ability to boot from subvolumes, (continued)
[PATCH v3 20/29] grub-get-kernel-settings.in: Add grub-get-kernel-settings and use it in 10_linux, Leo Sandoval, 2024/10/14
[PATCH v3 23/29] btrfs: fix a bad null check, Leo Sandoval, 2024/10/14
[PATCH v3 24/29] btrfs: export btrfs_subvol and btrfs_subvolid, Leo Sandoval, 2024/10/14
[PATCH v3 25/29] btrfs: Allow specifying btrfs_relative_path to follow the default subvolume, Leo Sandoval, 2024/10/14
[PATCH v3 29/29] chainloader: Use grub_efi_...() memory helpers where reasonable., Leo Sandoval, 2024/10/14
[PATCH v3 28/29] efi: Add grub_efi_allocate_pool() and grub_efi_free_pool() wrappers., Leo Sandoval, 2024/10/14
[PATCH v3 26/29] grub-mkconfig: Add GRUB_BTRFS_SNAPSHOT_BOOTING simple configuration, Leo Sandoval, 2024/10/14
[PATCH v3 27/29] btrfs: add btrfs-get-default-subvol command, Leo Sandoval, 2024/10/14