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

ll_lookup_it() checks for O_CREAT in it_create_mode

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.5.0
    • Lustre 2.5.0
    • 3
    • 8850

    Description

      ll_lookup_it() checks for O_CREAT in it_create_mode which is nonsensical, as it_flags is used for open flags (O_RDWR, O_CREAT, ...), while it_create_mode is used for file mode bits (S_IFREG, S_IRUSR, ...):

              if (it->it_op & IT_CREAT ||
                  (it->it_op & IT_OPEN && it->it_create_mode & O_CREAT))
      		opc = LUSTRE_OPC_CREATE;
              else
                      opc = LUSTRE_OPC_ANY;
      

      The same is true of llu_lookup_it().

      Attachments

        Activity

          [LU-3517] ll_lookup_it() checks for O_CREAT in it_create_mode
          jhammond John Hammond made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          jhammond John Hammond added a comment -

          Patch landed to mazaster.

          jhammond John Hammond added a comment - Patch landed to mazaster.
          jlevi Jodi Levi (Inactive) made changes -
          Fix Version/s New: Lustre 2.5.0 [ 10295 ]
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]
          jhammond John Hammond added a comment - Please see http://review.whamcloud.com/6786 .
          jhammond John Hammond made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          jhammond John Hammond made changes -
          Assignee Original: WC Triage [ wc-triage ] New: John Hammond [ jhammond ]
          jhammond John Hammond created issue -

          People

            jhammond John Hammond
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: