* PXE directory listing incorrectly reported as "success"
@ 2010-01-26 17:08 Robert Millan
2010-01-26 18:03 ` Seth Goldberg
2010-01-27 0:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 2 replies; 3+ messages in thread
From: Robert Millan @ 2010-01-26 17:08 UTC (permalink / raw)
To: grub-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PXE directory listing incorrectly reported as "success"
2010-01-26 17:08 PXE directory listing incorrectly reported as "success" Robert Millan
@ 2010-01-26 18:03 ` Seth Goldberg
2010-01-27 0:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 0 replies; 3+ messages in thread
From: Seth Goldberg @ 2010-01-26 18:03 UTC (permalink / raw)
To: The development of GNU GRUB
How about returning one entry named 'pxe/tftp doesn't support
directory listing' :).
--S
On Jan 26, 2010, at 12:08 PM, Robert Millan <rmh@aybabtu.com> wrote:
>
> 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
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PXE directory listing incorrectly reported as "success"
2010-01-26 17:08 PXE directory listing incorrectly reported as "success" Robert Millan
2010-01-26 18:03 ` Seth Goldberg
@ 2010-01-27 0:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 0 replies; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2010-01-27 0:03 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]
Robert Millan wrote:
> 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?
What about return GRUB_ERR_UNSUPPORTED or a separate GRUB_ERR_FS_NO_DIR
which would be ignored by probing routines?
> 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?
>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-27 0:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-26 17:08 PXE directory listing incorrectly reported as "success" Robert Millan
2010-01-26 18:03 ` Seth Goldberg
2010-01-27 0:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
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.