Whamcloud - gitweb
LU-16268 mdd: set effective changelog mask correctly 61/48961/3
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 25 Oct 2022 15:34:45 +0000 (18:34 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jan 2023 07:54:57 +0000 (07:54 +0000)
commit34556ca18a18a957a63b53877901896539a53d24
tree6a0158417532f039d9cf29aef2d74b4a4be8cb2f
parent445f85de2baddbaa8a84a709b98a9d0b8ed4231a
LU-16268 mdd: set effective changelog mask correctly

When changelog mask is changed from MINMASK to a particular
value then recalculation is missed, so effective mask could
stay unchanged against expectations.

Patch adds additional check that old mask is MINMASK or not
to decide if mask recalculation is needed.

Test 160o is extended for that issue.

Fixes: ffe259f81cda ("LU-13055 changelog: use default mask if server has no mask")
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Ia3c93e19daeb71ff1042ebdb555e918faf89f844
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48961
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdd/mdd_lproc.c
lustre/tests/sanity.sh