[OpenAFS-devel] Kdump on ia64_linux26

Mike Becher Mike.Becher@lrz-muenchen.de
Thu, 16 Dec 2004 19:43:01 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--8323584-43841819-1103222581=:26077
Content-Type: TEXT/PLAIN; charset=US-ASCII

This patch make kdump work on ia64_linux26. It is nice to find out more 
about kernel structures ;-).

Summary:
  * src/venus/Makefile 
    changes to install kdump binary as kdump-<kernelversion>
    Old version overwrites kdump script with binary.
  * src/venus/kdump.c
    - let CPP overwrite flock64 with flock for IA64
    - int is 4 bytes on ia64 so I use long instead for address calculation
      and to read kernel structures

comment:
  It works only on ia64_linux26 but not on {i386,amd64}_linux26.

best regards,
  mike 
--8323584-43841819-1103222581=:26077
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="kdump-1.3.76.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.58.0412161943010.26077@lxmbe01.lrz.lrz-muenchen.de>
Content-Description: kdump-1.3.76.patch
Content-Disposition: attachment; filename="kdump-1.3.76.patch"

ZGlmZiAtdSAtciAtTiBvcGVuYWZzLTEuMy43Ni5vcmlnL3NyYy92ZW51cy9N
YWtlZmlsZS5pbiBvcGVuYWZzLTEuMy43Ni9zcmMvdmVudXMvTWFrZWZpbGUu
aW4NCi0tLSBvcGVuYWZzLTEuMy43Ni5vcmlnL3NyYy92ZW51cy9NYWtlZmls
ZS5pbgkyMDA0LTA2LTI0IDE5OjM4OjM3LjAwMDAwMDAwMCArMDIwMA0KKysr
IG9wZW5hZnMtMS4zLjc2L3NyYy92ZW51cy9NYWtlZmlsZS5pbgkyMDA0LTEy
LTE2IDE0OjI1OjQ3LjAwMDAwMDAwMCArMDEwMA0KQEAgLTI4Niw3ICsyODYs
NyBAQA0KIAkJJHtJTlNUQUxMfSAtcyBrZHVtcC1hbHBoYV9saW51eC0ke0xJ
TlVYX1ZFUlNJT059ICRA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