In path2fid() propagate errors from 'lfs path2fid'. In
file_creation_failure() redirect the output of df to stderr so that it
is not captured by command substitution.
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I7fabf46af4aa36c6affef45cf8c9b044a7aa29dd
Reviewed-on: http://review.whamcloud.com/13154
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
path2fid() {
$LFS path2fid $1 | tr -d '[]'
+ return ${PIPESTATUS[0]}
}
get_hsm_flags() {
local f=$2
local err=$3
- df $MOUNT $MOUNT2
+ df $MOUNT $MOUNT2 >&2
error "cannot create $f with $cmd, status=$err"
}