Whamcloud - gitweb
LU-17173 utils: cleanup lfs flushctx 04/52604/17
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 13 Nov 2023 10:02:24 +0000 (11:02 +0100)
committerOleg Drokin <green@whamcloud.com>
Sun, 4 Feb 2024 08:27:57 +0000 (08:27 +0000)
commitf0534544e3e3aef280ccc5f042e37d42d33b28d3
treefb32e27e0aba62673c31d845f2568721210e9546
parent02b456e4a445b9503b044df30932cc0fb5021f49
LU-17173 utils: cleanup lfs flushctx

When lfs flushctx is called without mount points, build the list of
all mounts first, and then call the ioctl to flush associated
contexts. Otherwise fetching the mount points unfortunately refreshes
the contexts being flushed, because the mount points are being
accessed.

Test-Parameters: trivial
Test-Parameters: kerberos=true testlist=sanity-krb5
Test-Parameters: testgroup=review-dne-selinux-ssk-part-2
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I75b9efe4c65ce66f5f692f9e49a28fde705d0140
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52604
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/Makefile.am
lustre/utils/lfs.c