Whamcloud - gitweb
LU-8264 lod: lfs setstripe fix for pool. 49/20849/13
authorHongchao Zhang <hongchao.zhang@intel.com>
Sat, 13 Jan 2018 09:01:54 +0000 (17:01 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Jan 2018 04:45:45 +0000 (04:45 +0000)
commitc62ba699c51237ae1a04b59dd23201d8fe852a67
treed5b3168a2d039336db389c75d7aae55cf6b62393
parent14e8e8e8a6b1bfe370e3e1f9fef6e37ccfc23290
LU-8264 lod: lfs setstripe fix for pool.

If a file is created (with lfs) in the directory associated
with pool without -p pool_name option then limit stripe count
to number of osts in the pool as that directory is associated
with the pool. This patch fixes this problem.

Also removed the wrong check from ost-pools.sh, test_20 where
we were creating file in a directory associated with pool and
checking it as not part of the pool.

Add test cases in ost_pool.sh test_20.

Signed-off-by: Rahul Deshmukh <rahul.deshmukh@seagate.com>
Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Seagate-bug-id: MRP-3615
Change-Id: Id6dd5126856db7fc773a1fe9c837a214db8d6d70
Reviewed-on: https://review.whamcloud.com/20849
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_internal.h
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/mdt/mdt_open.c
lustre/tests/ost-pools.sh
lustre/tests/sanity.sh