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

llapi_layout_pattern_set() rejects valid pattern values

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

    Description

      The input validation for this function appears to have a typo. Presumably "&&" was intended instead of "||":

      	if (pattern != LLAPI_LAYOUT_DEFAULT ||
      	    pattern != LLAPI_LAYOUT_RAID0) {
      		errno = EOPNOTSUPP;
      		return -1;
      	}
      

      Attachments

        Activity

          People

            ys Yang Sheng
            rread Robert Read
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: