FW: [Orca-dev] Re: One stray system with disk problems

Blair Zajac blair at orcaware.com
Sat Jul 3 23:05:42 PDT 2004


Jon Tankersley wrote:

> 
> -----Original Message-----
> From: Jon Tankersley [mailto:jon.tankersley at eds.com] 
> Sent: Saturday, July 03, 2004 11:33 PM
> To: 'Blair Zajac'; 'Paul Haldane'; 'Dmitry Berezin'
> Subject: RE: [Orca-dev] Re: One stray system with disk problems
> 
> 
> I think I found it...
> It is a bit nasty and I don't know why it happens, but...
> In orcallator.se 1.36 and in (1.37) there is a section of code...  It
> doesn't check to see if GLOBAL_disk_info[j].short_name is nil or not.  It
> is, so the strcpy dies.
>       for (j=0; j<MAX_RAWDISKS; ++j) {
>         strcpy(short_name, GLOBAL_disk_info[j].short_name);
> 
> I just put an if in place before the strcpy:
>         if (GLOBAL_disk_info[j].short_name == nil) { break; }

This is good to know how to patch the symptom of the problem, but we need to 
figure out what short_name is nil in the first place and fix the root cause.

Best,
Blair
-- 
Blair Zajac <blair at orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/



More information about the Orca-dev mailing list