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

ll_lookup_it() checks for O_CREAT in it_create_mode

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: