criu/test/zdtm/static/mnt_ext_root.hook
Pavel Tikhomirov 007501f985 zdtm: add new mnt_ext_root test
This test simply creates a) root external mount and b) "deeper"
bindmount for it (deeper in terms of mnt_depth). Our mount restore code
tries to mount (b) first and fails (without previous patch ordering
external mounts before their binds).

Cherry-picked from Virtuozzo criu:
https://src.openvz.org/projects/OVZ/repos/criu/commits/d31954669

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
2022-04-28 17:53:52 -07:00

12 lines
168 B
Bash
Executable file

#!/bin/bash
[ "$1" == "--clean" ] || exit 0
TMP="/tmp/zdtm_ext_root.tmp"
echo "Cleanup mnt_ext_sharing"
umount "$TMP"
rm -rf $TMP
rm -rf "mnt_ext_root.test"
exit 0