Commit 1cadd1c3 authored by Dmitrii Shcherbakov's avatar Dmitrii Shcherbakov Committed by Pavel Emelyanov

zdtm:mnt_ext_dev: output a message if ZDTM_MNT_EXT_DEV is not set

Should be easier to debug if the variable is not passed by accident.

travis-ci: success for series starting with [1/2] zdtm:mnt_ext_auto: avoid segfault if ZDTM_NEWNS is not set
Signed-off-by: 's avatarDmitrii Shcherbakov <dshcherbakov@virtuozzo.com>
Acked-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 99e77674
......@@ -29,8 +29,10 @@ int main(int argc, char **argv)
mkdir(dirname, 0777);
loop = getenv("ZDTM_MNT_EXT_DEV");
if (loop == NULL)
if (loop == NULL) {
pr_perror("ZDTM_MNT_EXT_DEV is not set");
return 1;
}
if (mount(loop, dirname, "ext4", 0, NULL) == -1) {
pr_perror("mount");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment