Verified Commit 06ee81b5 authored by Marc Vef's avatar Marc Vef
Browse files

Changed all hooks to new method. Squash

parent a745b58d
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -56,8 +56,6 @@ struct FsConfig {

enum class RelativizeStatus {
    ok,
    internal,
    external,
    fd_unknown,
    fd_not_a_dir
};
@@ -126,9 +124,9 @@ public:

    bool is_gkfs_path(std::string& path);

    RelativizeStatus normalize_path(int dirfd, const char* raw_path, std::string& normalized_path);
    RelativizeStatus normalize_path(int dirfd, const char* raw_path, std::string& normalized_path, bool resolve_last_link = true);

    RelativizeStatus normalize_path(const char* raw_path, std::string& normalized_path);
    std::string normalize_path(const char* raw_path, bool resolve_last_link = true);

    RelativizeStatus relativize_fd_path(int dirfd,
                                        const char* raw_path,
+9 −0
Original line number Diff line number Diff line
@@ -68,6 +68,15 @@ namespace rocksdb {
constexpr auto use_write_ahead_log = false;
} // namespace rocksdb

namespace preload {
/*
 * This option allows a symlink outside of the GekkoFS namespace into the GekkoFS namespace.
 * This is by default disabled as it incurs a significant overhead during GekkoFS' path resolution.
 * Therefore, it is recommended to keep it disabled
 */
constexpr auto allow_symlinks_into_gkfs = false;
}

} // namespace gkfs
} // namespace config

+145 −143

File changed.

Preview size limit exceeded, changes collapsed.

+83 −70

File changed.

Preview size limit exceeded, changes collapsed.