fence_scsi_test: add option for strict verification
Add new option --strict (-s) that will enable strict verification that
registrations are created on all paths. Previously this was the
default behavior. Strict verification will compare the number of times
the registration key exists on a device and the number of paths. This
is useful when testing multipath configurations. If this option is not
specified, the verification will simply check to make sure the
registration keys exist on the device.
@@ -322,6 +324,7 @@ sub get_options ()
@@ -608,6 +611,7 @@ sub print_usage
print " -k, --key=VALUE Key to use with current action.
print " -d, --devices=LIST Devices used for the current
+ print " -s, --strict Perform strict verification.
print " -h, --help Display this help and exit.
print " -v, --verbose Verbose mode.
diff --git a/fence/man/fence_scsi_test.8 b/fence/man/fence_scsi_test.8
index 57c3713..596bc2d 100644
@@ -77,6 +77,14 @@ specified, fence_scsi_test will automatically use all
devices found in
+Perform strict verification that registrations exist on all
+paths. This option is recommended when testing multipath
+configurations. When specified, fence_scsi_test will compare the
+number of paths to the number of times the registration key exists on
+the I_T nexus. This option only is only used with the "on" action.
Print out a help message describing available options, then exit.