Loading CHANGELOG.md +3 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### New - Support mtime with option gkfs::config::metadata::use_mtime ([!225](https://storage.bsc.es/gitlab/hpc/gekkofs/-/issues/225)) - Unify -d and -p flags in scripts/compile_dep.sh and dl_dep.sh ([!188](https://storage.bsc.es/gitlab/hpc/gekkofs/-/issues/188)). - Logfile per process for the client, activated with LIBGKFS_LOG_PER_PROCESS ([!278](https://storage.bsc.es/gitlab/hpc/gekkofs/-/issues/278)). - Additional tests to increase code coverage ([!141](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/141)). - GKFS_ENABLE_UNUSED_FUNCTIONS added to disable code to increase code coverage. ([!141](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/141)). Loading README.md +2 −1 Original line number Diff line number Diff line Loading @@ -200,7 +200,8 @@ usage: gkfs [-h/--help] [-r/--rootdir <path>] [-m/--mountdir <path>] [-a/--args The following environment variables can be used to enable logging in the client library: `LIBGKFS_LOG=<module>` and `LIBGKFS_LOG_OUTPUT=<path/to/file>` to configure the output module and set the path to the log file of the client library. If not path is specified in `LIBGKFS_LOG_OUTPUT`, the client library will send log messages to `/tmp/gkfs_client.log`. to `/tmp/gkfs_client.log`. With `LIBGKFS_LOG_PER_PROCESS=1` it is possible to write separate logs per client process. If so, the path specified in `LIBGKFS_LOG_OUTPUT` is a directory but should not end with a `/`. The following modules are available: Loading docs/sphinx/users/running.md +3 −2 Original line number Diff line number Diff line Loading @@ -180,7 +180,8 @@ usage: gkfs [-h/--help] [-r/--rootdir <path>] [-m/--mountdir <path>] [-a/--args The following environment variables can be used to enable logging in the client library: `LIBGKFS_LOG=<module>` and `LIBGKFS_LOG_OUTPUT=<path/to/file>` to configure the output module and set the path to the log file of the client library. If not path is specified in `LIBGKFS_LOG_OUTPUT`, the client library will send log messages to `/tmp/gkfs_client.log`. to `/tmp/gkfs_client.log`. With `LIBGKFS_LOG_PER_PROCESS=1` it is possible to write separate logs per client process. If so, the path specified in `LIBGKFS_LOG_OUTPUT` is a directory but should not end with a `/`. The following modules are available: Loading include/client/logging.hpp +2 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,8 @@ protected: struct logger { logger(const std::string& opts, const std::string& path, int log_per_process, bool trunc logger(const std::string& opts, const std::string& path, bool log_per_process, bool trunc #ifdef GKFS_DEBUG_BUILD , const std::string& filter, int verbosity Loading src/client/logging.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -284,7 +284,7 @@ process_log_filter(const std::string& log_filter) { #endif // GKFS_DEBUG_BUILD logger::logger(const std::string& opts, const std::string& path, int log_per_process, bool trunc bool log_per_process, bool trunc #ifdef GKFS_DEBUG_BUILD , const std::string& filter, int verbosity Loading Loading @@ -312,7 +312,7 @@ logger::logger(const std::string& opts, const std::string& path, std::string file_path = path; if(log_per_process) { fs::create_directories(path); file_path += "/" + std::to_string(log_process_id_); file_path = fmt::format("{}/{}", path, log_process_id_); } // we use ::open() here rather than ::syscall_no_intercept(SYS_open) Loading Loading
CHANGELOG.md +3 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### New - Support mtime with option gkfs::config::metadata::use_mtime ([!225](https://storage.bsc.es/gitlab/hpc/gekkofs/-/issues/225)) - Unify -d and -p flags in scripts/compile_dep.sh and dl_dep.sh ([!188](https://storage.bsc.es/gitlab/hpc/gekkofs/-/issues/188)). - Logfile per process for the client, activated with LIBGKFS_LOG_PER_PROCESS ([!278](https://storage.bsc.es/gitlab/hpc/gekkofs/-/issues/278)). - Additional tests to increase code coverage ([!141](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/141)). - GKFS_ENABLE_UNUSED_FUNCTIONS added to disable code to increase code coverage. ([!141](https://storage.bsc.es/gitlab/hpc/gekkofs/-/merge_requests/141)). Loading
README.md +2 −1 Original line number Diff line number Diff line Loading @@ -200,7 +200,8 @@ usage: gkfs [-h/--help] [-r/--rootdir <path>] [-m/--mountdir <path>] [-a/--args The following environment variables can be used to enable logging in the client library: `LIBGKFS_LOG=<module>` and `LIBGKFS_LOG_OUTPUT=<path/to/file>` to configure the output module and set the path to the log file of the client library. If not path is specified in `LIBGKFS_LOG_OUTPUT`, the client library will send log messages to `/tmp/gkfs_client.log`. to `/tmp/gkfs_client.log`. With `LIBGKFS_LOG_PER_PROCESS=1` it is possible to write separate logs per client process. If so, the path specified in `LIBGKFS_LOG_OUTPUT` is a directory but should not end with a `/`. The following modules are available: Loading
docs/sphinx/users/running.md +3 −2 Original line number Diff line number Diff line Loading @@ -180,7 +180,8 @@ usage: gkfs [-h/--help] [-r/--rootdir <path>] [-m/--mountdir <path>] [-a/--args The following environment variables can be used to enable logging in the client library: `LIBGKFS_LOG=<module>` and `LIBGKFS_LOG_OUTPUT=<path/to/file>` to configure the output module and set the path to the log file of the client library. If not path is specified in `LIBGKFS_LOG_OUTPUT`, the client library will send log messages to `/tmp/gkfs_client.log`. to `/tmp/gkfs_client.log`. With `LIBGKFS_LOG_PER_PROCESS=1` it is possible to write separate logs per client process. If so, the path specified in `LIBGKFS_LOG_OUTPUT` is a directory but should not end with a `/`. The following modules are available: Loading
include/client/logging.hpp +2 −1 Original line number Diff line number Diff line Loading @@ -273,7 +273,8 @@ protected: struct logger { logger(const std::string& opts, const std::string& path, int log_per_process, bool trunc logger(const std::string& opts, const std::string& path, bool log_per_process, bool trunc #ifdef GKFS_DEBUG_BUILD , const std::string& filter, int verbosity Loading
src/client/logging.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -284,7 +284,7 @@ process_log_filter(const std::string& log_filter) { #endif // GKFS_DEBUG_BUILD logger::logger(const std::string& opts, const std::string& path, int log_per_process, bool trunc bool log_per_process, bool trunc #ifdef GKFS_DEBUG_BUILD , const std::string& filter, int verbosity Loading Loading @@ -312,7 +312,7 @@ logger::logger(const std::string& opts, const std::string& path, std::string file_path = path; if(log_per_process) { fs::create_directories(path); file_path += "/" + std::to_string(log_process_id_); file_path = fmt::format("{}/{}", path, log_process_id_); } // we use ::open() here rather than ::syscall_no_intercept(SYS_open) Loading