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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.13.0, Lustre 2.12.1
    • Lustre 2.12.0
    • None
    • 3
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: