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

            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: