Whamcloud - gitweb
LU-8816 utils: Check /etc/hostid instead of failing for ZFS 04/23804/4
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Wed, 16 Nov 2016 16:52:57 +0000 (11:52 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 18 Nov 2016 20:06:53 +0000 (20:06 +0000)
commit13a18655ac57b3f22813be7b44c627a2fb1c2396
tree5325ef4d239177f2914ed9ecd568123067b24ac6
parent5763c175c9a1a330b664a01bc08f329b2bee54f7
LU-8816 utils: Check /etc/hostid instead of failing for ZFS

Since ZFS doesn't check /etc/hostid until a pool is created or
imported.  Check for it's existance instead of just failing after
spl_hostid is checked.

Test-Parameters: trivial

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: Ia00b1e357c629ad6a7a2b636a2fc149036d03546
Reviewed-on: http://review.whamcloud.com/23804
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/mount_utils_zfs.c