• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) International Business Machines  Corp., 2005
4# Copyright (c) 2021 Joerg Vehlow <joerg.vehlow@aox-tech.de>
5# Author: Avantika Mathur (mathurav@us.ibm.com)
6
7FS_BIND_TESTFUNC=test
8
9. fs_bind_lib.sh
10
11test()
12{
13	tst_res TINFO "cloneNS: namespace with unclonable mount"
14
15	fs_bind_makedir runbindable dir1
16	EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1
17	fs_bind_check "$FS_BIND_DISK1" dir1
18
19	fs_bind_create_ns
20
21	fs_bind_check -s "$FS_BIND_DISK1" dir1
22
23	EXPECT_PASS umount dir1
24	EXPECT_PASS umount dir1
25}
26
27tst_run
28