Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1005

fix spurious libcfs_debug_str2mask() warning

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.2.0
    • Labels:
    • Story Points:
      1
    • Rank (Obsolete):
      10275

      Description

      In many tests I see the warning message:

      libcfs_debug_str2mask()) You are trying to use a numerical value for the mask -
      this will be deprecated in a future release.

      due to the use of numerical PTLDEBUG mask in the test framework cfg/local.sh file.

      Since we are trying to deprecate the usage of numerical debug masks in favor of strings, and to remove extraneous garbage from our test results, this warning should be fixed.

      The current PTLDEBUG mask is 0x33f0484, which used to be the default debug mask at startup. The default debug mask is now:

      unsigned int libcfs_debug = (D_EMERG | D_ERROR | D_WARNING | D_CONSOLE |
                                   D_NETERROR | D_HA | D_CONFIG | D_IOCTL);
      

      which breaks down to (0x40000 | 0x20000 | 0x400 | 0x2000000 | 0x100 | 0x80000 | 0x1000000 | 0x80) = 0x30e0580.

      I'm not against keeping the 0x33f0484 debug mask for testing, but it should be converted to a string. It looks like the following should work:

      PTLDEBUG="super warning dlmtrace error emerg ha rpctrace vfstrace config console"

        Attachments

          Activity

            People

            • Assignee:
              yujian Jian Yu
              Reporter:
              adilger Andreas Dilger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: