From: Marc Vef Date: Thu, 16 Jan 2025 18:03:14 +0000 (+0100) Subject: LU-18643 tests: Do not create subdirectory on client mount X-Git-Tag: 2.16.53~16 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=8815ca5e73084e687a987d6509da021a140712b7;p=fs%2Flustre-release.git 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 Change-Id: I900c4bff79e6b5bde541eb4e852e42cde01820e3 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57807 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 672a61d..2bbc39a 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2812,7 +2812,6 @@ zconf_mount() { do_nodes $client lctl get_param -n \ mdc.$FSNAME-MDT0000*.import | grep -q subtree || device=$MGSNID:/$FSNAME - do_node $client mkdir -p $mnt/$FILESET do_node $client "! grep -q $mnt' ' /proc/mounts || umount $mnt" fi @@ -2999,7 +2998,6 @@ zconf_mount_clients() { do_nodes $clients lctl get_param -n \ mdc.$FSNAME-MDT0000*.import | grep -q subtree || device=$MGSNID:/$FSNAME - do_nodes $clients mkdir -p $mnt/$FILESET do_nodes $clients "! grep -q $mnt' ' /proc/mounts || umount $mnt" fi