From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- qa/client/30_subdir_mount.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 qa/client/30_subdir_mount.sh (limited to 'qa/client/30_subdir_mount.sh') diff --git a/qa/client/30_subdir_mount.sh b/qa/client/30_subdir_mount.sh new file mode 100755 index 000000000..0bdf2ed1a --- /dev/null +++ b/qa/client/30_subdir_mount.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +set -x + +basedir=`echo $0 | sed 's/[^/]*$//g'`. +. $basedir/common.sh + +client_mount +mkdir -p $mnt/sub +echo sub > $mnt/sub/file +client_umount + +mkdir -p $mnt/1 +mkdir -p $mnt/2 +/bin/mount -t ceph $monhost:/sub $mnt/1 +grep sub $mnt/1/file + +/bin/mount -t ceph $monhost:/ $mnt/2 +grep sub $mnt/2/sub/file + +/bin/umount $mnt/1 +grep sub $mnt/2/sub/file + +/bin/umount $mnt/2 -- cgit v1.2.3