Whamcloud - gitweb
LU-15593 mdt: Add option to disable use of SOM
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 4 Mar 2022 19:28:27 +0000 (14:28 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Wed, 23 Mar 2022 14:32:48 +0000 (14:32 +0000)
commitd053ce30ca2f67be23e1f99e0a427dd4674cc606
tree7a56012bb81a342dbdbe5337d984ef297d17879e
parent0be8bae577100f3c10c204a1ed786fe6f993b740
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.

Lustre-change: https://review.whamcloud.com/46683/
Lustre-commit: 2867d497b92f43f06edd7c378828f1fb8c3b300c (tbd)

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I338fa7e4dd423b07df0f3c5bad4ec6f02e935fea
Reviewed-on: https://review.whamcloud.com/46709
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@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