#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) International Business Machines Corp., 2005 # Copyright (c) 2021 Joerg Vehlow # Author: Avantika Mathur (mathurav@us.ibm.com) FS_BIND_TESTFUNC=test test() { tst_res TINFO "move: uncloneable subtree to shared parent" fs_bind_makedir runbindable dir fs_bind_makedir rshared parent2 fs_bind_makedir rshared share2 EXPECT_PASS mount --bind parent2 share2 mkdir dir/grandchild mkdir parent2/child2 EXPECT_FAIL mount --move dir parent2/child2 EXPECT_PASS umount dir EXPECT_PASS umount share2 EXPECT_PASS umount share2 EXPECT_PASS umount parent2 } . fs_bind_lib.sh tst_run