Whamcloud - gitweb
LU-10830 utils: fix create mode for lfs setstripe 47/31747/4
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 23 Mar 2018 06:01:58 +0000 (00:01 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 9 Apr 2018 19:44:57 +0000 (19:44 +0000)
commit543f1fbe260174a511d9226b9fe1b544b75ac241
tree171406f5e129a2d3e7c4834ad72de1fe84ceb34c
parent6987c10e6e9d69f49acc8cf9b2a89d695ed4b4e0
LU-10830 utils: fix create mode for lfs setstripe

Fix create mode for files created by "lfs setstripe" and also
"lfs mirror create" to match regular file creates, which are
filtered by umask to determine the final file create mode.

Add test case to verify umask is working correctly in all cases.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I0c9d6730f437dbfbafda4902a035cc0f0ed916b0
Reviewed-on: https://review.whamcloud.com/31747
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi_layout.c