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

Posix copytool --dry-run option flawed

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • None
    • Any
    • 3
    • 17397

    Description

      If the --dry-run option is used, the syntax checking allows --hsm-root to be omitted, which implies that the HSM root won't been dereferenced if doing a dry run. This does not appear to be the case.

      In particular, the command:

      $ lhsmtool_posix --max-sequence --dry-run /lustre

      will segfault. Other instances look like they will have the same problem.

      The check in ct_parseopts() that reads:

      if (!opt.o_dry_run && opt.o_hsm_root == NULL)

      should simply remove the "!opt.dry_run &&" clause. All valid operations require that the hsm root be specified.

      Attachments

        Activity

          [LU-6221] Posix copytool --dry-run option flawed

          Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13673/
          Subject: LU-6221 utils: hsm_root is also required for --dry-run
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: adb39ea50c881a9f36d4a9fd2f8693eaec06b5d1

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13673/ Subject: LU-6221 utils: hsm_root is also required for --dry-run Project: fs/lustre-release Branch: master Current Patch Set: Commit: adb39ea50c881a9f36d4a9fd2f8693eaec06b5d1
          bfaccini Bruno Faccini (Inactive) added a comment - Master patch is at http://review.whamcloud.com/13673 .

          Faccini Bruno (bruno.faccini@intel.com) uploaded a new patch: http://review.whamcloud.com/13673
          Subject: LU-6221 utils: hsm_root is also required for --dry-run
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 5c9cba320168c96918e8e71d1c2f6d54439fb677

          gerrit Gerrit Updater added a comment - Faccini Bruno (bruno.faccini@intel.com) uploaded a new patch: http://review.whamcloud.com/13673 Subject: LU-6221 utils: hsm_root is also required for --dry-run Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 5c9cba320168c96918e8e71d1c2f6d54439fb677

          People

            bfaccini Bruno Faccini (Inactive)
            bfaccini Bruno Faccini (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: