Whamcloud - gitweb
LU-18643 tests: Do not create subdirectory on client mount 07/57807/11
authorMarc Vef <mvef@whamcloud.com>
Thu, 16 Jan 2025 18:03:14 +0000 (19:03 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Mar 2025 23:33:11 +0000 (23:33 +0000)
commit8815ca5e73084e687a987d6509da021a140712b7
tree5a25d7aaae768e3eb202a3aaa74e6f0f1c83f6c7
parentf718723bc62ae1a83a2629c10d92fbd8409f7e05
LU-18643 tests: Do not create subdirectory on client mount

When calling zconf_mount_clients() with a FILESET, the Lustre client
is mounted at the corresponding subdirectory specified by the FILESET.

However, when the subdirectory does not exist, it automatically
creates it transparently. This may hide bugs, e.g., when a test needs
to verify that mounting against a non-existing directory is not
possible.

This patch removes the silent creation of the directory on client
mount, so that it is the caller's responsibility that the subdirectory
exists before mounting. Currently, no tests are relying on this
functionality as they already create the subdirectory themselves.
Therefore no test needs to be modified.

Test-Parameters: mdtcount=4 mdscount=2 env=ONLY="247 413" testlist=sanity
Signed-off-by: Marc Vef <mvef@whamcloud.com>
Change-Id: I900c4bff79e6b5bde541eb4e852e42cde01820e3
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57807
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
lustre/tests/test-framework.sh