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

some trusted xattrs are not coherent on the client

    XMLWordPrintable

Details

    • 3
    • 9458

    Description

      The value of trusted.link should change as hard links are added to files.

      # llmount.sh
      # cd /mnt/lustre
      # touch f0
      # getfattr -n trusted.link f0
      # file: f0
      trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=
      
      # getfattr -n trusted.link f0 | md5sum
      f0ea62a3d3c5efd8329b1147bf97ce7b  -
      # ln f0 f1
      # getfattr -n trusted.link f0 | md5sum
      f0ea62a3d3c5efd8329b1147bf97ce7b  -
      # sys_lea f0
      [0x200000007:0x1:0x0] 'f0'
      

      Before extended attribute caching landed the trusted.link attribute is updated and the interpreting the link EA has the expected result:

      # cd /mnt/lustre
      # touch f0
      # getfattr -n trusted.link f0
      # file: f0
      trusted.link=0s3/HqEQEAAAAsAAAAAAAAAAAAAAAAAAAAABQAAAACAAAABwAAAAEAAAAAZjA=
      
      # getfattr -n trusted.link f0 | md5sum
      f0ea62a3d3c5efd8329b1147bf97ce7b  -
      # ln f0 f1
      # getfattr -n trusted.link f0 | md5sum
      53753efeb8ce17a87df257ee317c7b68  -
      # sys_lea f0
      [0x200000007:0x1:0x0] 'f0'
      [0x200000007:0x1:0x0] 'f1'
      

      The lov xattrs appear to be immune to this issue since they are handled by special cases in ll_

      {get,set}

      xattr() but I did not verify this in all cases. Some other attributes (trusted.hsm) which are modified outside of the normal MDS_SETXATTR path are also affected.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: