refactor
This commit is contained in:
parent
472b1f0da1
commit
544765e408
@ -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<const char *>(__FUNCTION__);
|
||||
|
Loading…
x
Reference in New Issue
Block a user