On Sun, Apr 27, 2008 at 09:53:56PM -0400, bfields wrote:
> I'm running vblade on ubuntu 8.04 (from the ubuntu package
> vblade_14-1ubuntu1), trying to access an exported loopback device from a
> kvm host (running debian/sid, with aoetools_21-1).
>
> I run aoe-discover and aoe-stat on the client and get no output from
> either command.
>
> Running wireshark on vnet0 while issuing the aoe-discover shows one or
> two "AoE Query Config Information Request" broadcasts, with no response.
>
> If I strace vblade at the same time, I see that it does a single read at
> the moment of the aoe-discover, then goes back to blocking on read:
>
> # strace -s1024 -p24543
> Process 24543 attached - interrupt to quit
> read(4,
> "\377\377\377\377\377\377\0\26>\26M`\210\242\20\0\377\377\377\1\0\0\0\0\0\0\0\0\0\0\0\0",
> 65536) = 32
> read(4,
>
> Any ideas what's happening?
Hm. From a quick look at the source of the ubuntu vblade package, it
looks like it's discarding packets less than length 60, whereas this
discovery packet is length 24. The below seems to fix the problem.
--b.
diff --git a/aoe.c b/aoe.c
index ef7ed20..e655395 100644
--- a/aoe.c
+++ b/aoe.c
@@ -202,7 +202,7 @@ aoe(void)
perror("read network");
exit(1);
}
- if (n < 60)
+ if (n < 24)
continue;
p = (Aoehdr *) buf;
if (ntohs(p->type) != 0x88a2)
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Aoetools-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss