<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Dave,<br><br>Really Nice information, I am running  Kernel 2.6.18-274 and will try to use the below pointers.<br><br>Regards,<br>Tipu.<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Thu, 16 Aug 2012 10:55:06 -0400<br>> From: anderson@redhat.com<br>> To: crash-utility@redhat.com<br>> Subject: Re: [Crash-utility] Question on how to check NFS Exported Filesystems in crash utility while analyzing vmcore file.<br>> <br>> <br>> <br>> ----- Original Message -----<br>> > <br>> <br>> > Now, that all being done, that search could have been signicantly simplified<br>> > given that the hash_table array is initialized to point to the static data<br>> > strucure "export_table":<br>> > <br>> >  struct cache_detail svc_export_cache = {<br>> >           .owner          = THIS_MODULE,<br>> >           .hash_size      = EXPORT_HASHMAX,<br>> >           .hash_table     = export_table,     <=====!
 <br>> >  ...<br>> > <br>> > So if you just dump its contents directly:<br>> > <br>> > crash> p export_table<br>> > export_table = $5 =<br>> >  {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> >  0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x<br>> > 0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> >  0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> >  0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0<br>> > x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0<br>> > , 0x0!
 , 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<!
 br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff810036155280,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x<br>> > 0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> >  0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> >  0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0<br>> > x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,<br>> > 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}<br>> > crash><br>> > <br>> > And then cast each non-zero entry in the array as an svc_export as<br>> > done above.<br>> > <br>> > At least I *think* that's how it works...<br>> <br>> BTW, you didn't mention what kernel version you're looking at,<br>&gt!
 ; but the sequence above looks like it would hold true through Linux <br>> version 2.6.39.  But I note that the NFS bookkeeping changed after<br>> that, so you'd have to adjust your plan of attack...<br>> <br>> Dave<br>> <br>> <br>> --<br>> Crash-utility mailing list<br>> Crash-utility@redhat.com<br>> https://www.redhat.com/mailman/listinfo/crash-utility<br></div>                                     </div></body>
</html>