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

hsm: userspace can set about any HSM flags. Checks are inexistant.

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • Lustre 2.7.0, Lustre 2.5.3
    • 3
    • 16155

    Description

      Creating, opening and executing the following commands on a regular file:

      rc = llapi_hsm_state_set_fd(fd, HS_EXISTS, 0, -1789);
      rc = llapi_hsm_state_set_fd(fd, HS_DIRTY, 0, 0);
      rc = llapi_hsm_state_set_fd(fd, 0, HS_DIRTY, 0);
      rc = llapi_hsm_state_set_fd(fd, HS_ARCHIVED, 0, 0);
      rc = llapi_hsm_state_set_fd(fd, HS_RELEASED, 0, 0);
      rc = llapi_hsm_state_set_fd(fd, HS_NORELEASE, 0, 0);
      rc = llapi_hsm_state_set_fd(fd, HS_NOARCHIVE, 0, 0);
      rc = llapi_hsm_state_set_fd(fd, HS_LOST, 0, 0);
      rc = llapi_hsm_state_set_fd(fd, 0x00080000, 0, 0);
      rc = llapi_hsm_state_set_fd(fd, 0x80000000, 0, 0);
      

      results in this:

      # ../utils/lfs hsm_state /mnt/lustre/hsm_check_test
       /mnt/lustre/hsm_check_test: (0x8008007d) released exists archived never_release never_archive lost_from_hsm, archive_id:-1789
      

      Some of these flags should not be user settable. Unknown flags should not be set. The archive_id should not be anything but >=0 (or 1?) and <=32.

      Attachments

        Issue Links

          Activity

            [LU-5757] hsm: userspace can set about any HSM flags. Checks are inexistant.
            mdiep Minh Diep made changes -
            Link New: This issue is related to LU-6453 [ LU-6453 ]
            pjones Peter Jones made changes -
            Fix Version/s New: Lustre 2.8.0 [ 11113 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            fzago Frank Zago (Inactive) made changes -
            Attachment New: 5732-llapi-hsm-test2.diff [ 16710 ]
            jamesanunez James Nunez (Inactive) made changes -
            Assignee Original: James Nunez [ jamesanunez ] New: Bruno Faccini [ bfaccini ]
            jamesanunez James Nunez (Inactive) made changes -
            Labels New: hsm
            adilger Andreas Dilger made changes -
            Affects Version/s New: Lustre 2.5.3 [ 11100 ]
            Affects Version/s New: Lustre 2.7.0 [ 10631 ]
            cliffw Cliff White (Inactive) made changes -
            Assignee Original: WC Triage [ wc-triage ] New: James Nunez [ jamesanunez ]
            fzago Frank Zago (Inactive) created issue -

            People

              bfaccini Bruno Faccini (Inactive)
              fzago Frank Zago (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: