Whamcloud - gitweb
LU-4298 utils: do not create file with no striping info 35/12335/3
authorJames Nunez <james.a.nunez@intel.com>
Fri, 18 Jul 2014 15:06:36 +0000 (09:06 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Nov 2014 18:39:48 +0000 (18:39 +0000)
commit1aef1561e03bf55432ccec219d2fdd88068d0c43
tree0b016dd8e7d71ff08954f0498579d9b780fb6b6f
parenta4f066b3f04ef0ffca4d34feab4d71bd3d8ea1bf
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.

Lustre-commit: 823147fa760752c8c2ff11a5bd74f71f819f9e4e
Lustre-change: http://review.whamcloud.com/8375

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