[LTP] [PATCH 1/1] tst_tmpdir: Print used temporary dir and its filesystem
Petr Vorel
pvorel@suse.cz
Wed Jul 24 09:11:22 CEST 2024
It helps debugging to know used filesystem (and in case of
.all_filesystems the underlying filesystem).
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
lib/tst_tmpdir.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/tst_tmpdir.c b/lib/tst_tmpdir.c
index 1fb1bd698e..dd817c9cc2 100644
--- a/lib/tst_tmpdir.c
+++ b/lib/tst_tmpdir.c
@@ -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)
--
2.45.2
More information about the ltp
mailing list