[Mauiusers] Bug in MFSProcessOConfig?

Åke Sandgren ake.sandgren at hpc2n.umu.se
Wed Nov 1 06:05:10 MST 2006


Hi!
In MFSProcessOConfig there seems to be a bug in handling the FSPOLICY
argument.
    case pFSPolicy:

      if (strchr(SVal,'%'))
        MSched.PercentBasedFS = TRUE;

      if (MUBoolFromString(SVal,FALSE) == TRUE)
        {
        /* enable backlevel support */

        F->FSPolicy = fspDPS;
        }
      else
        {
        F->FSPolicy = MUGetIndex(SVal,MFSPolicyType,FALSE,F->FSPolicy);
        }

If SVal contains % the MUGetIndex will always fail as far as i can see,
i.e. returning the Default.

Will this work? This of course assumes the the '%' is always at the end.
    case pFSPolicy:

      if ((p = strchr(SVal,'%')) != NULL) {
        MSched.PercentBasedFS = TRUE;
        *p = '\0';
      }

-- 
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ake at hpc2n.umu.se   Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se



More information about the mauiusers mailing list