Whamcloud - gitweb
LU-17173 utils: cleanup lfs flushctx
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 13 Nov 2023 10:02:24 +0000 (11:02 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 14 Feb 2024 19:18:39 +0000 (19:18 +0000)
commit3a1c8669452edfa03e3f4e1ca5e0625de70c093b
tree3853ad602823222ed69578d48c60b82d240ca45e
parent1527822b1c02f9828bb2b6bd0587f9bd517128f3
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.

Lustre-change: https://review.whamcloud.com/52604
Lustre-commit: f0534544e3e3aef280ccc5f042e37d42d33b28d3

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-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53909
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/Makefile.am
lustre/utils/lfs.c