criu/test/zdtm/lib
Filipe Brandenburger 2e5e3e4b18 zdtm: fallback to mknod(/dev/ptmx) when CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
A kernel without that option configured does not have /dev/pts/ptmx, so
fallback to the previous way of creating it using mknod instead.

The previous code was trying to bind mount ptmx on top of a symlink, which does
not actually work... Keep only the symlink call and use a relative symlink
instead. Adjust the error message of the symlink case to mention symlink()
instead of mknod() and also /dev/ptmx instead of /dev/pts.

Tested:
- zdtm test suite runs on ^ns/static/.* before and after the change.
- Same on a kernel with CONFIG_DEVPTS_MULTIPLE_INSTANCES unset.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Acked-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-08-27 15:06:21 +04:00
..
arch zdtm: added the AArch64-specific implementation of bit operations 2014-04-11 15:19:21 +04:00
cpuid.h zdtm: Add cpuid.h 2012-12-21 17:35:44 +04:00
datagen.c zdtm: make datagen/datachk faster for big chunks 2013-03-06 00:34:02 +04:00
lock.c zdtm: simplify sys_gettid 2012-06-28 20:54:12 +04:00
lock.h zdtm/lock: add futex_add_and_wake and futex_wait_while_lt 2014-02-28 13:18:43 +04:00
Makefile make: respect USERCFLAGS in zdtm makefiles 2014-05-26 17:38:52 +04:00
msg.c zdtm: It's need add format to fprintf 2012-10-02 19:19:35 +04:00
ns.c zdtm: fallback to mknod(/dev/ptmx) when CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set 2014-08-27 15:06:21 +04:00
ns.h zdtm: fix race in test_waitsig for multithreaded tests 2013-03-06 00:31:14 +04:00
parseargs.c zdtm: close an external tty 2012-09-13 16:09:13 +04:00
parseargs.sh zdtm: Zero Downtime Migration Test Suite 2011-12-02 17:49:08 +04:00
stop_and_chk.sh zdtm: Zero Downtime Migration Test Suite 2011-12-02 17:49:08 +04:00
streamutil.c zdtm: Zero Downtime Migration Test Suite 2011-12-02 17:49:08 +04:00
tcp.c Drop crtools word from zdmt C code 2013-06-03 13:58:43 +04:00
test.c zdtm: Make it possible for test to get ZDTM_NEWNS variable 2014-06-06 12:18:50 +04:00
zdtmtst.h ZDTM build fixes 2014-07-11 20:39:52 +04:00