From 544765e40850a3caff84521ea9e3a01cbb598f3c Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 7 Jun 2024 18:27:29 -0500 Subject: [PATCH] refactor --- .../src/drives/fuse/fuse_base.cpp | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/repertory/librepertory/src/drives/fuse/fuse_base.cpp b/repertory/librepertory/src/drives/fuse/fuse_base.cpp index f07eb545..1155e298 100644 --- a/repertory/librepertory/src/drives/fuse/fuse_base.cpp +++ b/repertory/librepertory/src/drives/fuse/fuse_base.cpp @@ -352,21 +352,9 @@ auto fuse_base::init_(struct fuse_conn_info *conn) -> void * { #if FUSE_USE_VERSION >= 30 auto fuse_base::init_impl([[maybe_unused]] struct fuse_conn_info *conn, struct fuse_config *cfg) -> void * { - utils::file::change_to_process_directory(); - repertory::project_initialize(); - -#ifdef __APPLE__ - conn->want |= FUSE_CAP_VOL_RENAME; - conn->want |= FUSE_CAP_XTIMES; -#endif // __APPLE__ - - cfg->nullpath_ok = 0; - cfg->hard_remove = 1; - - return this; -} #else auto fuse_base::init_impl(struct fuse_conn_info *conn) -> void * { +#endif utils::file::change_to_process_directory(); repertory::project_initialize(); @@ -375,11 +363,13 @@ auto fuse_base::init_impl(struct fuse_conn_info *conn) -> void * { conn->want |= FUSE_CAP_XTIMES; #endif // __APPLE__ - conn->want |= FUSE_CAP_BIG_WRITES; +#if FUSE_USE_VERSION >= 30 + cfg->nullpath_ok = 0; + cfg->hard_remove = 1; +#endif return this; } -#endif auto fuse_base::mkdir_(const char *path, mode_t mode) -> int { constexpr const auto *function_name = static_cast(__FUNCTION__);