criu/test/zdtm/static/mnt_root_ext.hook
Pavel Tikhomirov f29d51560e zdtm: add mnt_root_ext test
This test has one external mount [criumntns] /zdtm_root_ext.tmp ->
[testmntns] /mnt_root_ext.test, and it specifically gives '--external
mnt[MNT]:.zdtm_root_ext.tmp' option on restore without '/' to make
dirname on it return static '.' path (see glibc dirname() code) and
reproduce a segfault in resolve_mountpoint().

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
2022-06-22 10:20:33 -07:00

5 lines
72 B
Bash
Executable file

#!/bin/bash
[ "$1" == "--clean" ] || exit 0
rmdir /.zdtm_root_ext.tmp