Whamcloud - gitweb
LU-4298 utils: do not create file with no striping info 75/8375/8
authorJames Nunez <james.a.nunez@intel.com>
Fri, 18 Jul 2014 15:06:36 +0000 (09:06 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 17 Oct 2014 18:50:39 +0000 (18:50 +0000)
commit823147fa760752c8c2ff11a5bd74f71f819f9e4e
tree3020cfeacdaefdb474e87cfdf137b112de133bfc
parent6e2f7847c343679436e99ea521462f51812ec825
LU-4298 utils: do not create file with no striping info

'lfs setstripe' should not create a file with no striping
information if bad values are given. The input parameter
check in llapi_file_open_pool is moved before the file open
to catch bad parameters before the file is created.

A check is added to sanity test 27f to make sure
'lfs setstripe -s' does not create a file with no
striping information.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I19beef973dc3a62bf2cb443e02195896772702fc
Reviewed-on: http://review.whamcloud.com/8375
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c