Whamcloud - gitweb
LU-11461 scripts: Support symlink target 97/33597/3
authorNathaniel Clark <nclark@whamcloud.com>
Thu, 1 Nov 2018 15:13:26 +0000 (11:13 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 5 Jan 2019 06:52:01 +0000 (06:52 +0000)
commit14236f475f7fecd35934289b966d2bfe16a0d163
tree57f81a0006f7f6e9dfd671b114e74f53d8c3e7e2
parentd936fdca9e00e05cecd4b21c6e4bbbf7107dc9b4
LU-11461 scripts: Support symlink target

Support if configured target is symlink to real device, for instance
/dev/disk/by-id/scsi-WWID.  Also check against bare target for
ZPOOL/DEVICE which will return an empty string when passed to
realpath.
Also fix usage function, so it prints usage and doesn't just error
out.

Lustre-change: https://review.whamcloud.com/33277
Lustre-commit: c36d70272541d3ba3dd9051e6f50cf89eaba639f

Test-Parameters: trivial
Signed-off-by: Nathaniel Clark <nclark@whamcloud.com>
Change-Id: I699b1fd36c1e53e99a8d0e6b691374eca42fccc9
Reviewed-by: Joe Grund <jgrund@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33597
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
contrib/scripts/pacemaker/Lustre