Whamcloud - gitweb
LU-11264 llapi: clean up llapi_file_create_foreign() 93/35093/5
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 7 Jun 2019 03:45:37 +0000 (21:45 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 9 Aug 2019 04:39:34 +0000 (04:39 +0000)
commitefe6615d7558ee6bda106546c55d92758bec528d
tree8f78fb5e36256044abdf717a5f9e0ede5ee6ceac
parent0a92632538d8c985e024def73512d18d1570d5ca
LU-11264 llapi: clean up llapi_file_create_foreign()

Clean up the error handling in llapi_file_create_foreign() to always
set errno, and avoid printing a duplicate error message when run on
a non-Lustre filesystem.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I610748f5d07566fb81c2f0b6f59507e97e03158f
Reviewed-on: https://review.whamcloud.com/35093
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/liblustreapi.c