Whamcloud - gitweb
LU-4825 osp: check max_create_count before use OSP 05/16105/19
authorLai Siyao <lai.siyao@intel.com>
Wed, 20 Jul 2016 23:22:09 +0000 (19:22 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Jul 2016 03:01:23 +0000 (03:01 +0000)
commitaa1a240338d18201f1047db62b31603e2cffcfe3
treece21d84127f11350ff21586d0bdfa0c7ec44bb0d
parent0f37c051158a399f7b00536eeec27f5dbdd54168
LU-4825 osp: check max_create_count before use OSP

in OSP precreate, if max_create_count is 0, return error directly
to use next OST, this can be used in OST migration.

add sanity.sh 311 for this.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I3f1cb84b30229911564969bcfc52b9e7c03a00d4
Reviewed-on: http://review.whamcloud.com/16105
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osp/osp_precreate.c
lustre/tests/sanity.sh