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

hsm: files are not dirtied when modified by someone else than their owner

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • Upstream
    • 3
    • 9223372036854775807

    Description

      Assuming you have a mounted lustre file system at /mnt/lustre, and a running copytool for it, the next commands should reproduce the issue:

      [root] # useradd alice
      [root] # mkdir /mnt/lustre/alice
      [root] # chown alice: /mnt/lustre/alice
      [root] # su - alice
      [alice] $ touch /mnt/lustre/alice/file
      [alice] $ chmod o+w /mnt/lustre/alice/file
      [alice] $ exit
      logout
      [root] # lfs hsm_archive /mnt/lustre/alice/file
      [root] # lfs hsm_state /mnt/lustre/alice/file
      /mnt/lustre/alice/file: (0x00000009) exists archived, archive_id:1
      [root] # useradd bob
      [root] # su - bob
      [bob] $ echo "123" > /mnt/lustre/alice/file
      [bob] $ exit
      logout
      [root] # lfs hsm_state /mnt/lustre/alice/file
      /mnt/lustre/alice/file: (0x00000009) exists archived, archive_id:1
      [root] # dmesg | tail -n 2
      [  336.217465] LustreError: 11513:0:(mdt_reint.c:661:mdt_add_dirty_flag()) file attribute change error for [0x200000401:0x2:0x0]: -1
      [  336.225859] LustreError: 11520:0:(mdt_reint.c:661:mdt_add_dirty_flag()) file attribute change error for [0x200000401:0x2:0x0]: -1
      

      Attachments

        Activity

          [LU-11369] hsm: files are not dirtied when modified by someone else than their owner
          pjones Peter Jones added a comment -

          Landed for 2.12

          pjones Peter Jones added a comment - Landed for 2.12

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33158/
          Subject: LU-11369 hsm: allow non-owner writers to set HSM state dirty
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: a9e48fa940c45e51fd792c5d9fc4c647f64ed94e

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33158/ Subject: LU-11369 hsm: allow non-owner writers to set HSM state dirty Project: fs/lustre-release Branch: master Current Patch Set: Commit: a9e48fa940c45e51fd792c5d9fc4c647f64ed94e

          John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33158
          Subject: LU-11369 hsm: allow non-owner writers to set HSM state dirty
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: e1b046661d557e460c5a78fd19832bf62efbb397

          gerrit Gerrit Updater added a comment - John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33158 Subject: LU-11369 hsm: allow non-owner writers to set HSM state dirty Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e1b046661d557e460c5a78fd19832bf62efbb397

          People

            jhammond John Hammond
            cealustre CEA
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: