Whamcloud - gitweb
LU-12130 lod: make pool inheritance policy more consistent 36/34536/7
authorVladimir Saveliev <vlaidimir.saveliev@hpe.com>
Fri, 24 Dec 2021 21:02:13 +0000 (00:02 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Jan 2022 05:14:08 +0000 (05:14 +0000)
commit6e59408f1a1c0679e8bfce0c3d9e14137a45abe1
tree8d746cc0fc1e981b233d8ca1c5929d2318aaf45a
parent8e04e4ff8a1d0807d107a65a2c1bf76aea9b4ce5
LU-12130 lod: make pool inheritance policy more consistent

If directory's striping includes pool info, setstriping behaves
differently in relation to pool inheritance:
- if setstriping non-PFL layout the pool is inherited
- otherwise, it is not

Make inheritance policy consistent:
- when specified PFL does not include pool information - embed current
  pool specification into new layout

sanity.sh:test_65n is modified to illustrate the case.

HPE-bug-id: LUS-7180
Signed-off-by: Vladimir Saveliev <vlaidimir.saveliev@hpe.com>
Change-Id: I92b415e18ba7aadd2059da702878905249dd33c3
Reviewed-on: https://review.whamcloud.com/34536
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_object.c
lustre/tests/sanity.sh