Line data Source code
1 : /* 2 : Copyright 2018-2024, Barcelona Supercomputing Center (BSC), Spain 3 : Copyright 2015-2024, Johannes Gutenberg Universitaet Mainz, Germany 4 : 5 : This software was partially supported by the 6 : EC H2020 funded project NEXTGenIO (Project ID: 671951, www.nextgenio.eu). 7 : 8 : This software was partially supported by the 9 : ADA-FS project under the SPPEXA project funded by the DFG. 10 : 11 : This file is part of GekkoFS' POSIX interface. 12 : 13 : GekkoFS' POSIX interface is free software: you can redistribute it and/or 14 : modify it under the terms of the GNU Lesser General Public License as 15 : published by the Free Software Foundation, either version 3 of the License, 16 : or (at your option) any later version. 17 : 18 : GekkoFS' POSIX interface is distributed in the hope that it will be useful, 19 : but WITHOUT ANY WARRANTY; without even the implied warranty of 20 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 : GNU Lesser General Public License for more details. 22 : 23 : You should have received a copy of the GNU Lesser General Public License 24 : along with GekkoFS' POSIX interface. If not, see 25 : <https://www.gnu.org/licenses/>. 26 : 27 : SPDX-License-Identifier: LGPL-3.0-or-later 28 : */ 29 : 30 : #include <hermes.hpp> 31 : #include <client/rpc/rpc_types.hpp> 32 : 33 : //============================================================================== 34 : // register request types so that they can be used by users and the engine 35 : // 36 : void 37 248 : hermes::detail::register_user_request_types() { 38 248 : (void) registered_requests().add<gkfs::rpc::fs_config>(); 39 248 : (void) registered_requests().add<gkfs::rpc::create>(); 40 248 : (void) registered_requests().add<gkfs::rpc::stat>(); 41 248 : (void) registered_requests().add<gkfs::rpc::remove_metadata>(); 42 248 : (void) registered_requests().add<gkfs::rpc::decr_size>(); 43 248 : (void) registered_requests().add<gkfs::rpc::update_metadentry>(); 44 248 : (void) registered_requests().add<gkfs::rpc::get_metadentry_size>(); 45 248 : (void) registered_requests().add<gkfs::rpc::update_metadentry_size>(); 46 : 47 : #ifdef HAS_SYMLINKS 48 248 : (void) registered_requests().add<gkfs::rpc::mk_symlink>(); 49 : #endif // HAS_SYMLINKS 50 248 : (void) registered_requests().add<gkfs::rpc::remove_data>(); 51 248 : (void) registered_requests().add<gkfs::rpc::write_data>(); 52 248 : (void) registered_requests().add<gkfs::rpc::read_data>(); 53 248 : (void) registered_requests().add<gkfs::rpc::trunc_data>(); 54 248 : (void) registered_requests().add<gkfs::rpc::get_dirents>(); 55 248 : (void) registered_requests().add<gkfs::rpc::chunk_stat>(); 56 248 : (void) registered_requests().add<gkfs::rpc::get_dirents_extended>(); 57 248 : }