From: Edward Shishkin <edward@redhat.com>
To: Johannes Hirte <johannes.hirte@fem.tu-ilmenau.de>
Cc: The development of BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: [patch 2/2] grub-0.97: btrfs multidevice configuration support
Date: Tue, 03 Nov 2009 01:59:39 +0100 [thread overview]
Message-ID: <4AEF807B.6050303@redhat.com> (raw)
In-Reply-To: <200911022316.39102.johannes.hirte@fem.tu-ilmenau.de>
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
Johannes Hirte wrote:
> Am Freitag 25 September 2009 00:06:40 schrieb Edward Shishkin:
>
>
> Hi Edward,
>
> I was pointed to a problem with this patch.
>
> +static u64 scan_grub_devices(struct btrfs_device *dev,
> + int (*discerner)(struct btrfs_device **, int),
> + int lookup)
> +{
> ...
> +#ifdef SUPPORT_NETBOOT
> + errnum = ERR_NONE;
> + if (network_ready &&
> + !get_diskinfo(NETWORK_DRIVE, &geom)) {
> + dev->drive = NETWORK_DRIVE;
> + dev->part = 0;
> + dev->length = geom.total_sectors;
> + if (discerner(&dev, lookup)) {
> + count++;
> + if (lookup)
> + goto exit;
> + }
> + }
> +#endif /* SUPPORT_NETBOOT */
> + exit:
> + return count;
> +}
>
> This won't compile since network_ready is undeclared.
Yup, indeed..
> Why is the btrfs code
> dealing with network devices at all?
>
Why not? :)
Well, would you please disable it for now with the attached patch?
Thanks,
Edward.
[-- Attachment #2: grub-btrfs-multidev-fixup.patch --]
[-- Type: text/plain, Size: 615 bytes --]
Disable booting from network devices.
Signed-off-by: Edward Shishkin <edward@redhat.com>
---
stage2/fsys_btrfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- grub-0.97.orig/stage2/fsys_btrfs.c
+++ grub-0.97/stage2/fsys_btrfs.c
@@ -452,7 +452,7 @@ static u64 scan_grub_devices(struct btrf
goto exit;
}
}
-#ifdef SUPPORT_NETBOOT
+#if 0
errnum = ERR_NONE;
if (network_ready &&
!get_diskinfo(NETWORK_DRIVE, &geom)) {
@@ -465,7 +465,7 @@ static u64 scan_grub_devices(struct btrf
goto exit;
}
}
-#endif /* SUPPORT_NETBOOT */
+#endif /* 0 */
exit:
return count;
}
next prev parent reply other threads:[~2009-11-03 0:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-24 22:06 [patch 2/2] grub-0.97: btrfs multidevice configuration support Edward Shishkin
2009-11-02 22:16 ` Johannes Hirte
2009-11-03 0:59 ` Edward Shishkin [this message]
2009-12-10 23:21 ` Johannes Hirte
2009-12-11 11:26 ` Edward Shishkin
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=4AEF807B.6050303@redhat.com \
--to=edward@redhat.com \
--cc=johannes.hirte@fem.tu-ilmenau.de \
--cc=linux-btrfs@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox