[Crash-utility] [PATCH] crash: add dev_base_head support for net command

Dave Anderson anderson at redhat.com
Mon Mar 17 21:28:08 UTC 2008


Dave Anderson wrote:
 > > Eugene Teo wrote:
 > >
 > >    Hi Dave,
 > >
 > >    I found that the net command in crash 4.0-6.1 does not work with Fedora
 > >    kernel 2.6.23.14-115.fc8. There was a rework on dev_base[1] to replace
 > >    the use of dev_base variable, and dev->next pointer with for_each_netdev
 > >    loop. This patch fixes this problem.
 >
 >
 > Thanks Eugene -- queued for the next release.
 >
 > BTW, the patch looks to have a short shelf-life.  In 2.6.24, the
 > new dev_base_head list_head that your patch looks for no longer
 > exists.  So for now I've also updated the error message in
 > show_net_devices() to complain if both dev_base and dev_base_head
 > don't exist.
 >
 > I'll update the TODO list with the newer net command issue
 > if anybody wants to take a shot at fixing it.
 >
 > Thanks,
 >   Dave

The attached patch addresses the same issue for 2.6.24 and later kernels,
and which applies on top of Eugene's patch.

Dave


-------------- next part --------------
A non-text attachment was scrubbed...
Name: net.diff
Type: text/x-patch
Size: 3982 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20080317/f5d5e32c/attachment.bin>


More information about the Crash-utility mailing list