mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 09:10:10 +00:00
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>
12 lines
168 B
Bash
Executable file
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
|