Loading include/client/logging.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ static const auto constexpr all = log_level::print_all; static const auto constexpr help = log_level::print_help; static const auto constexpr level_names = utils::make_array( util::make_array( "syscall", "syscall", // sycall_entry uses the same name as syscall "info", Loading include/client/make_array.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ #define LIBGKFS_UTILS_MAKE_ARRAY_HPP namespace gkfs { namespace utils { namespace util { template <typename... T> constexpr auto make_array(T&&... values) -> Loading @@ -29,7 +29,7 @@ constexpr auto make_array(T&&... values) -> sizeof...(T)>{std::forward<T>(values)...}; } } // namespace utils } // namespace util } // namespace gkfs #endif // LIBGKFS_UTILS_MAKE_ARRAY_HPP include/client/preload_util.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ extern std::unique_ptr<hermes::async_engine> ld_network_service; // function definitions namespace gkfs { namespace client { namespace util { template<typename E> constexpr typename std::underlying_type<E>::type to_underlying(E e) { return static_cast<typename std::underlying_type<E>::type>(e); Loading include/client/rpc/rpc_types.hpp +14 −14 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ struct fs_config { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::fs_config; constexpr static const auto name = gkfs::rpc::tag::fs_config; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -267,7 +267,7 @@ struct create { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::create; constexpr static const auto name = gkfs::rpc::tag::create; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -385,7 +385,7 @@ struct stat { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::stat; constexpr static const auto name = gkfs::rpc::tag::stat; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -506,7 +506,7 @@ struct remove { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::remove; constexpr static const auto name = gkfs::rpc::tag::remove; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -615,7 +615,7 @@ struct decr_size { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::decr_size; constexpr static const auto name = gkfs::rpc::tag::decr_size; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -732,7 +732,7 @@ struct update_metadentry { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::update_metadentry; constexpr static const auto name = gkfs::rpc::tag::update_metadentry; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1001,7 +1001,7 @@ struct get_metadentry_size { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::get_metadentry_size; constexpr static const auto name = gkfs::rpc::tag::get_metadentry_size; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1119,7 +1119,7 @@ struct update_metadentry_size { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::update_metadentry_size; constexpr static const auto name = gkfs::rpc::tag::update_metadentry_size; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1266,7 +1266,7 @@ struct mk_symlink { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::mk_symlink; constexpr static const auto name = gkfs::rpc::tag::mk_symlink; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1386,7 +1386,7 @@ struct write_data { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::write_data; constexpr static const auto name = gkfs::rpc::tag::write; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1586,7 +1586,7 @@ struct read_data { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::read_data; constexpr static const auto name = gkfs::rpc::tag::read; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1786,7 +1786,7 @@ struct trunc_data { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::trunc_data; constexpr static const auto name = gkfs::rpc::tag::truncate; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1907,7 +1907,7 @@ struct get_dirents { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::get_dirents; constexpr static const auto name = gkfs::rpc::tag::get_dirents; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -2037,7 +2037,7 @@ struct chunk_stat { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::chunk_stat; constexpr static const auto name = gkfs::rpc::tag::get_chunk_stat; // requires response? constexpr static const auto requires_response = true; Loading include/client/syscalls/args.hpp +9 −9 Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ format_whence_arg_to(FmtBuffer& buffer, /* Names for lseek() whence arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(SEEK_SET), FLAG_ENTRY(SEEK_CUR), FLAG_ENTRY(SEEK_END) Loading @@ -317,7 +317,7 @@ format_mmap_prot_arg_to(FmtBuffer& buffer, /* Names for mmap() prot arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(PROT_NONE), FLAG_ENTRY(PROT_READ), FLAG_ENTRY(PROT_WRITE), Loading @@ -343,7 +343,7 @@ format_mmap_flags_arg_to(FmtBuffer& buffer, /* Names for mmap() flags arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(MAP_SHARED), FLAG_ENTRY(MAP_PRIVATE), #ifdef MAP_SHARED_VALIDATE Loading Loading @@ -384,7 +384,7 @@ format_clone_flags_arg_to(FmtBuffer& buffer, /* Names for clone() flags arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(CLONE_VM), FLAG_ENTRY(CLONE_FS), FLAG_ENTRY(CLONE_FILES), Loading Loading @@ -437,7 +437,7 @@ format_signum_arg_to(FmtBuffer& buffer, /* Names for signum args */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(SIGHUP), FLAG_ENTRY(SIGINT), FLAG_ENTRY(SIGQUIT), Loading Loading @@ -492,7 +492,7 @@ format_sigproc_how_arg_to(FmtBuffer& buffer, /* Names for sigproc how args */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(SIG_BLOCK), FLAG_ENTRY(SIG_UNBLOCK), FLAG_ENTRY(SIG_SETMASK)); Loading Loading @@ -583,13 +583,13 @@ format_open_flags_to(FmtBuffer& buffer, /* Names for O_ACCMODE args */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(O_RDONLY), FLAG_ENTRY(O_WRONLY), FLAG_ENTRY(O_RDWR)); const auto extra_flag_names = utils::make_array( util::make_array( #ifdef O_EXEC FLAG_ENTRY(O_EXEC), #endif Loading Loading
include/client/logging.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ static const auto constexpr all = log_level::print_all; static const auto constexpr help = log_level::print_help; static const auto constexpr level_names = utils::make_array( util::make_array( "syscall", "syscall", // sycall_entry uses the same name as syscall "info", Loading
include/client/make_array.hpp +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ #define LIBGKFS_UTILS_MAKE_ARRAY_HPP namespace gkfs { namespace utils { namespace util { template <typename... T> constexpr auto make_array(T&&... values) -> Loading @@ -29,7 +29,7 @@ constexpr auto make_array(T&&... values) -> sizeof...(T)>{std::forward<T>(values)...}; } } // namespace utils } // namespace util } // namespace gkfs #endif // LIBGKFS_UTILS_MAKE_ARRAY_HPP
include/client/preload_util.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ extern std::unique_ptr<hermes::async_engine> ld_network_service; // function definitions namespace gkfs { namespace client { namespace util { template<typename E> constexpr typename std::underlying_type<E>::type to_underlying(E e) { return static_cast<typename std::underlying_type<E>::type>(e); Loading
include/client/rpc/rpc_types.hpp +14 −14 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ struct fs_config { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::fs_config; constexpr static const auto name = gkfs::rpc::tag::fs_config; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -267,7 +267,7 @@ struct create { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::create; constexpr static const auto name = gkfs::rpc::tag::create; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -385,7 +385,7 @@ struct stat { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::stat; constexpr static const auto name = gkfs::rpc::tag::stat; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -506,7 +506,7 @@ struct remove { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::remove; constexpr static const auto name = gkfs::rpc::tag::remove; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -615,7 +615,7 @@ struct decr_size { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::decr_size; constexpr static const auto name = gkfs::rpc::tag::decr_size; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -732,7 +732,7 @@ struct update_metadentry { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::update_metadentry; constexpr static const auto name = gkfs::rpc::tag::update_metadentry; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1001,7 +1001,7 @@ struct get_metadentry_size { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::get_metadentry_size; constexpr static const auto name = gkfs::rpc::tag::get_metadentry_size; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1119,7 +1119,7 @@ struct update_metadentry_size { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::update_metadentry_size; constexpr static const auto name = gkfs::rpc::tag::update_metadentry_size; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1266,7 +1266,7 @@ struct mk_symlink { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::mk_symlink; constexpr static const auto name = gkfs::rpc::tag::mk_symlink; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1386,7 +1386,7 @@ struct write_data { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::write_data; constexpr static const auto name = gkfs::rpc::tag::write; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1586,7 +1586,7 @@ struct read_data { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::read_data; constexpr static const auto name = gkfs::rpc::tag::read; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1786,7 +1786,7 @@ struct trunc_data { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::trunc_data; constexpr static const auto name = gkfs::rpc::tag::truncate; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -1907,7 +1907,7 @@ struct get_dirents { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::get_dirents; constexpr static const auto name = gkfs::rpc::tag::get_dirents; // requires response? constexpr static const auto requires_response = true; Loading Loading @@ -2037,7 +2037,7 @@ struct chunk_stat { constexpr static const hg_id_t mercury_id = public_id; // RPC name constexpr static const auto name = gkfs::hg_tag::chunk_stat; constexpr static const auto name = gkfs::rpc::tag::get_chunk_stat; // requires response? constexpr static const auto requires_response = true; Loading
include/client/syscalls/args.hpp +9 −9 Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ format_whence_arg_to(FmtBuffer& buffer, /* Names for lseek() whence arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(SEEK_SET), FLAG_ENTRY(SEEK_CUR), FLAG_ENTRY(SEEK_END) Loading @@ -317,7 +317,7 @@ format_mmap_prot_arg_to(FmtBuffer& buffer, /* Names for mmap() prot arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(PROT_NONE), FLAG_ENTRY(PROT_READ), FLAG_ENTRY(PROT_WRITE), Loading @@ -343,7 +343,7 @@ format_mmap_flags_arg_to(FmtBuffer& buffer, /* Names for mmap() flags arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(MAP_SHARED), FLAG_ENTRY(MAP_PRIVATE), #ifdef MAP_SHARED_VALIDATE Loading Loading @@ -384,7 +384,7 @@ format_clone_flags_arg_to(FmtBuffer& buffer, /* Names for clone() flags arg */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(CLONE_VM), FLAG_ENTRY(CLONE_FS), FLAG_ENTRY(CLONE_FILES), Loading Loading @@ -437,7 +437,7 @@ format_signum_arg_to(FmtBuffer& buffer, /* Names for signum args */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(SIGHUP), FLAG_ENTRY(SIGINT), FLAG_ENTRY(SIGQUIT), Loading Loading @@ -492,7 +492,7 @@ format_sigproc_how_arg_to(FmtBuffer& buffer, /* Names for sigproc how args */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(SIG_BLOCK), FLAG_ENTRY(SIG_UNBLOCK), FLAG_ENTRY(SIG_SETMASK)); Loading Loading @@ -583,13 +583,13 @@ format_open_flags_to(FmtBuffer& buffer, /* Names for O_ACCMODE args */ const auto flag_names = utils::make_array( util::make_array( FLAG_ENTRY(O_RDONLY), FLAG_ENTRY(O_WRONLY), FLAG_ENTRY(O_RDWR)); const auto extra_flag_names = utils::make_array( util::make_array( #ifdef O_EXEC FLAG_ENTRY(O_EXEC), #endif Loading