Whamcloud - gitweb
LU-15593 mdt: Add option to disable use of SOM 83/46683/7
authorPatrick Farrell <pfarrell@whamcloud.com>
Mon, 7 Mar 2022 20:31:34 +0000 (15:31 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 27 Jun 2022 04:39:58 +0000 (04:39 +0000)
commita3f1c4622a3acc82bf916825d603d68b89b6d771
treebc9b0d83636511b1063f61ef3c60c7b07c47206b
parent9b973ad37f66a10eb7db1ced6865708497ecc02b
LU-15593 mdt: Add option to disable use of SOM

There's currently no way to disable use of strict SOM,
which is a problem if there's ever a SOM bug.  This is
tricky to do from the client, but easy on the MDT.

The test just verifies that the size stays the same with
strict SOM disabled, because there's no easy way to check
SOM is disabled unless SOM is broken.  (Since it gives the
same value for stat.)

Note this patch requires LU-15609 to be fixed on the client
or the client will see size as 0 when SOM is disabled.

Test-Parameters: testlist=sanity-flr env="ONLY=44e,ONLY_REPEAT=20"
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I338fa7e4dd423b07df0f3c5bad4ec6f02e935fea
Reviewed-on: https://review.whamcloud.com/46683
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/mdt/mdt_som.c
lustre/tests/sanity-flr.sh