Skip to content

Commit

Permalink
tst_tmpdir: Print used temporary dir and its filesystem
Browse files Browse the repository at this point in the history
It helps debugging to know used filesystem (and in case of
.all_filesystems the underlying filesystem).

Link: https://lore.kernel.org/ltp/20240724071123.923397-1-pvorel@suse.cz/
Reviewed-by: Li Wang <liwang@redhat.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jul 26, 2024
1 parent c354ba2 commit 5cabf2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tst_tmpdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ void tst_tmpdir(void)

tst_exit();
}

tst_resm(TINFO, "Using %s as tmpdir (%s filesystem)", TESTDIR,
tst_fs_type_name(tst_fs_type(NULL, TESTDIR)));
}

void tst_rmdir(void)
Expand Down

0 comments on commit 5cabf2b

Please sign in to comment.