Whamcloud - gitweb
LU-15593 mdt: Add option to disable use of SOM 83/46683/4
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 4 Mar 2022 16:49:12 +0000 (11:49 -0500)
committerPatrick Farrell <pfarrell@whamcloud.com>
Fri, 4 Mar 2022 16:49:12 +0000 (11:49 -0500)
commit2867d497b92f43f06edd7c378828f1fb8c3b300c
treeb37a6f4dc1f6b4b35526380bb941791f70b63dae
parent91db60601be1e3ac1f06dc79185f67884598acd2
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.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I338fa7e4dd423b07df0f3c5bad4ec6f02e935fea
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