tst_run_cmd: const correctness

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
tst_run_cmd: Make the tst_run_cmd survive SIGCHLD

The tst_sig() installs poisoned signal handlers for all signals the test
is not expected to get, this causes abort in tst_run_cmd right after the
child exits and parent starts running.

This commit makes the tst_run_cmd temporarily disable the handler for
SIGCHLD (the handler is set to SIG_DFL at the start of the tst_run_cmd
function and restored at the end of it) so that we don't have to disable
the poisoned handler in each test using tst_run_cmd.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
lib: Add tst_mkfs() function.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/inotify: Cleanups.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/mount: Big cleanup.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls/umount: Big cleanup.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
syscalls: Add tst_mkfs() to all tests with DEVICE.

All tests that take DEVICE as a parameter now formats it before use.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
runltp: Drop the mkfs on DEVICE from preparation

This is no longer needed because of previous commit.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>