From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Subject: PXE directory listing incorrectly reported as "success"
Date: Tue, 26 Jan 2010 18:08:18 +0100 [thread overview]
Message-ID: <20100126170818.GA30854@thorin> (raw)
Hi,
It appears that directory listing isn't supported by TFTP protocol (so
says our wiki).
Our pxe.c implements grub_pxefs_dir() as a dummy stub that returns
GRUB_ERR_NONE. This is obviously wrong, as it prevents the user from
noticing that there was a problem, and silently reports an "empty"
directory. Instead, it should call grub_error ().
Unfortunately, kern/fs.c relies on grub_pxefs_dir() returning
GRUB_ERR_NONE in order to consider probing to be succesful. If pxe
returned an error, it wouldn't be considered a valid filesystem by
the kernel.
So I'm wondering, what would be a good solution to this? We could add
a proper probe() function and switch all filesystems to it, but only
for the benefit of pxe it seems a bit overkill.
Does someone have a better idea?
--
Robert Millan
"Be the change you want to see in the world" -- Gandhi
next reply other threads:[~2010-01-26 17:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 17:08 Robert Millan [this message]
2010-01-26 18:03 ` PXE directory listing incorrectly reported as "success" Seth Goldberg
2010-01-27 0:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
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=20100126170818.GA30854@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.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 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.