Whamcloud - gitweb
LU-8264 lod: lfs setstripe fix for pool. 01/31401/2
authorHongchao Zhang <hongchao.zhang@intel.com>
Sat, 13 Jan 2018 09:01:54 +0000 (17:01 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 5 Apr 2018 18:28:37 +0000 (18:28 +0000)
commit585643bfe764ee236bd761ba1f824962c7940644
tree9b9b5595f18e9ed66bff514cd9e25ccd58e5aa37
parente797705545f66e5a6510f59aca2a637fc8b27f5d
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.

This is a port of a lustre-master patch.
Lustre-change: https://review.whamcloud.com/#/c/20849/
Lustre-commit: c62ba699c51237ae1a04b59dd23201d8fe852a67

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>
(cherry picked from commit c62ba699c51237ae1a04b59dd23201d8fe852a67)
Reviewed-on: https://review.whamcloud.com/31401
Reviewed-by: John L. Hammond <john.hammond@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