Verified Commit 929181a4 authored by Marc Vef's avatar Marc Vef
Browse files

Proxy added (old version)

Hermes update

Integrate proxy into existing code base

small fixes

Missed adding some code

gkfs script updates, io500 config and mogon2 config update

gkfs run script proxy support

gkfs proxy runner bugfix

proxy client verbosity decrease

include missing

proxy create bug fix

Support lgetxattr()

remove proxy from script start and modify config.hpp

Adding get_chunk_stat proxy to client

Adding get_chunk_stat proxy to proxy

Adding get_chunk_stat proxy to daemon

Adding get_chunk_stat public id to client

Add warning when proxy is enabled but code is not run

Some Proxy log info

Adding get_dirents_single proxy to client

Adding get_dirents_single proxy to proxy

Adding get_dirents_single proxy to daemon

Adding get_dirents_single proxy public id to client

getdirents extended proxy bugfix
parent 0916c555
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
[submodule "external/hermes"]
	path = external/hermes
	url = https://github.com/bsc-ssrg/hermes.git
	url = https://github.com/marcvef/hermes.git
[submodule "tests/scripts/bats"]
	path = tests/scripts/bats
	url = https://github.com/bats-core/bats-core.git
+3 −1
Original line number Diff line number Diff line
@@ -309,6 +309,8 @@ include_directories(

add_subdirectory(src)
add_subdirectory(include)
add_subdirectory(src/proxy)
add_subdirectory(marc)

### Mark any CMake variables imported from {fmt} and spdlog as advanced, so
### that they don't appear in cmake-gui or ccmake. Similarly for FETCHCONTENT
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ static constexpr auto HOSTS_FILE = ADD_PREFIX("HOSTS_FILE");
#ifdef GKFS_ENABLE_FORWARDING
static constexpr auto FORWARDING_MAP_FILE = ADD_PREFIX("FORWARDING_MAP_FILE");
#endif
static constexpr auto PROXY_PID_FILE = ADD_PREFIX("PROXY_PID_FILE");

} // namespace gkfs::env

+3 −0
Original line number Diff line number Diff line
@@ -199,6 +199,9 @@ hook_fsync(unsigned int fd);
int
hook_getxattr(const char* path, const char* name, void* value, size_t size);

int
hook_lgetxattr(const char* path, const char* name, void* value, size_t size);

} // namespace gkfs::hook

#endif
+26 −0
Original line number Diff line number Diff line
@@ -98,6 +98,11 @@ private:
    std::string rpc_protocol_;
    bool auto_sm_{false};

    // proxy stuff
    bool use_proxy_{false};
    std::string proxy_address_str_;
    hermes::endpoint proxy_host_;

    bool interception_enabled_;

    std::bitset<GKFS_MAX_INTERNAL_FDS> internal_fds_;
@@ -178,6 +183,27 @@ public:
    relativize_path(const char* raw_path, std::string& relative_path,
                    bool resolve_last_link = true) const;

    bool
    use_proxy() const;

    void
    use_proxy(bool use_proxy);

    const std::string&
    proxy_address_str() const;

    void
    proxy_address_str(const std::string& proxy_address_str);

    const hermes::endpoint&
    proxy_host() const;

    void
    proxy_host(const hermes::endpoint& proxy_host);

    void
    clear_proxy_host();

    const std::shared_ptr<gkfs::filemap::OpenFileMap>&
    file_map() const;

Loading