Details
-
Bug
-
Resolution: Fixed
-
Minor
-
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.
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13673/
Subject:
LU-6221utils: hsm_root is also required for --dry-runProject: fs/lustre-release
Branch: master
Current Patch Set:
Commit: adb39ea50c881a9f36d4a9fd2f8693eaec06b5d1