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

Provide optional <archive_id> argument for lfs hsm_set and lfs hsm_clear

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.11.0, Lustre 2.10.3
    • Lustre 2.10.1
    • CentOS 7.4/Debian 8/Lustre 2.10
    • HSM
    • 9223372036854775807

    Description

      Setting HSM flags in

      static int lfs_hsm_change_flags(int argc, char **argv, int mode)
      
      
      

      does not allow to specify the archive_id, that is,

      llapi_hsm_state_set(path, mask, 0, 0 /* archive_id */);
      
      
      

      archive_id 0 is always set.

      Add an optional parameter of the form:

      usage: hsm_set [--norelease=<archive_id>] [--noarchive=<archive_id>] 
                  [--dirty=<archive_id>] [--exists=<archive_id>]
      
      
      

      for having full flexibility to specify the archive_id. If archive_id is not provided, then use default value archive_id=0. I will provided a simple patch for this problem

      Attachments

        Activity

          [LU-10256] Provide optional <archive_id> argument for lfs hsm_set and lfs hsm_clear

          John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/30500/
          Subject: LU-10256 hsm: enable setting archive_id in hsm_set
          Project: fs/lustre-release
          Branch: b2_10
          Current Patch Set:
          Commit: 302e4ec4bd923b79690d8c9e7004e0ae0c67be98

          gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/30500/ Subject: LU-10256 hsm: enable setting archive_id in hsm_set Project: fs/lustre-release Branch: b2_10 Current Patch Set: Commit: 302e4ec4bd923b79690d8c9e7004e0ae0c67be98

          Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/30500
          Subject: LU-10256 hsm: enable setting archive_id in hsm_set
          Project: fs/lustre-release
          Branch: b2_10
          Current Patch Set: 1
          Commit: e11c15e85c297a5b6e946776ccb36b19b71e0eb1

          gerrit Gerrit Updater added a comment - Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/30500 Subject: LU-10256 hsm: enable setting archive_id in hsm_set Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: e11c15e85c297a5b6e946776ccb36b19b71e0eb1
          pjones Peter Jones added a comment -

          Landed for 2.11

          pjones Peter Jones added a comment - Landed for 2.11

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30150/
          Subject: LU-10256 hsm: enable setting archive_id in hsm_set
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: d1855f8e22a929066a69470c7e3d082c70478575

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30150/ Subject: LU-10256 hsm: enable setting archive_id in hsm_set Project: fs/lustre-release Branch: master Current Patch Set: Commit: d1855f8e22a929066a69470c7e3d082c70478575

          Thomas Stibor (t.stibor@gsi.de) uploaded a new patch: https://review.whamcloud.com/30150
          Subject: LU-10256 hsm: optional archive_id hsm_set/clear
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: df2bcf0bd223e94cb7f659fed4d67eaf02db0331

          gerrit Gerrit Updater added a comment - Thomas Stibor (t.stibor@gsi.de) uploaded a new patch: https://review.whamcloud.com/30150 Subject: LU-10256 hsm: optional archive_id hsm_set/clear Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: df2bcf0bd223e94cb7f659fed4d67eaf02db0331

          People

            wc-triage WC Triage
            thomas.stibor Thomas Stibor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: