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

          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: