Whamcloud - gitweb
LU-18738 utils: avoid statx() of root of mounted FS 21/58321/2
authorOlaf P. Faaland <faaland1@llnl.gov>
Sat, 22 Feb 2025 05:29:55 +0000 (21:29 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 9 May 2025 01:45:57 +0000 (01:45 +0000)
commit971bf36247ce11f18d7b68dfcc364f74d3603b37
tree16f29a053a9ad0d334a7cf91bd65341c25e468c6
parent0b367203de00005ea4d24879910bdb905ddf5ad8
LU-18738 utils: avoid statx() of root of mounted FS

When looking for a specific mounted lustre file system by path, avoid
the stat() or statx() call on lustre file systems whose mountpoints do
not match the given path.

This avoids hangs if the client is disconnected from MDT0 of other
mounted file systems, but the desired file system is reachable.

Lustre-change: https://review.whamcloud.com/58135
Lustre-commit: 2da8542e7069af71566a5d36d53fdc840a63228a

Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Change-Id: I1c67214f107ae2afe34d050470155807063bda51
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58321
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/liblustreapi.c