Whamcloud - gitweb
LU-4694 hsm: Cleanup codes about return value 55/9455/3
authorJames Nunez <james.a.nunez@intel.com>
Thu, 15 May 2014 19:46:59 +0000 (13:46 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 1 Jul 2014 04:35:18 +0000 (04:35 +0000)
commit893b677180ae0ee36008522540c3ce743bade48d
tree23f49d6bc8da5b610453d3d0e6f5028681b4efa5
parent744b4f9253e1740eb7454a9a33fa6d4b06920dcb
LU-4694 hsm: Cleanup codes about return value

errno migh be zero when llapi_hsm_action_get_fd() returns a failure.
ct_archive() does not handle it correctly, which might cause HSM take
the operation as successful even if it actually fails.

The patch also cleanup other codes about return value.

Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I625da68836f98346b104533a556c72f06232e3ef
Reviewed-on: http://review.whamcloud.com/9455
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Robert Read <robert.read@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lhsmtool_posix.c
lustre/utils/liblustreapi_hsm.c