Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ned14/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas <s_github@nedprod.com>2022-09-07 18:07:48 +0300
committerNiall Douglas <s_github@nedprod.com>2022-09-07 18:07:48 +0300
commitae7f9c5a92879285ad5100c89efc47ce1cb0031b (patch)
tree477afa0c1a0ee5156ded1f22d5ea6c70732d982c
parent90fdf0e2d52373313128e65b03d4142c8e1b84c2 (diff)
path_discovery: Log warnings if path discovery could not find suitable paths for storage_backed_temporary_files_directory() and memory_backed_temporary_files_directory().all_tests_passed_ae7f9c5a92879285ad5100c89efc47ce1cb0031b
-rw-r--r--include/llfio/v2.0/detail/impl/path_discovery.ipp14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/llfio/v2.0/detail/impl/path_discovery.ipp b/include/llfio/v2.0/detail/impl/path_discovery.ipp
index 41dbd0de..27f59d17 100644
--- a/include/llfio/v2.0/detail/impl/path_discovery.ipp
+++ b/include/llfio/v2.0/detail/impl/path_discovery.ipp
@@ -263,6 +263,20 @@ namespace path_discovery
LLFIO_LOG_FATAL(nullptr, "path_discovery::verified_temporary_directories() saw unknown exception throw");
abort();
}
+#ifndef LLFIO_PATH_DISCOVERY_DISABLE_STORAGE_BACKED_TEMPORARY_FILES_DIRECTORY_WARNING
+ if(!ps.storage_backed.is_valid())
+ {
+ LLFIO_LOG_WARN(nullptr, "path_discovery:verified_temporary_directories() found no suitable path for storage_backed_temporary_files_directory(), creation "
+ "of storage backed temporary files will fail with bad_file_descriptor!");
+ }
+#endif
+#ifndef LLFIO_PATH_DISCOVERY_DISABLE_MEMORY_BACKED_TEMPORARY_FILES_DIRECTORY_WARNING
+ if(!ps.memory_backed.is_valid())
+ {
+ LLFIO_LOG_WARN(nullptr, "path_discovery:verified_temporary_directories() found no suitable path for memory_backed_temporary_files_directory(), creation "
+ "of memory backed temporary files will fail with bad_file_descriptor!");
+ }
+#endif
return ps.verified;
}