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

"lfs getsom" returns "24" (sizeof lustre_som_attr) to userspace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.12.0
    • Fix Version/s: Lustre 2.13.0, Lustre 2.12.1
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      The "lfs getsom" command always returns "24" to userspace because "rc = 24" (sizeof (struct lustre_som_attrs)) after fetching the xattr from the kernel. If the lfs_getsom()->lgetxattr() call returns a positive value, then this is the size of the xattr < sizeof(*attrs) and rc should be set to 0 in that case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                qian_wc Qian Yingjin
                Reporter:
                adilger Andreas Dilger
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: