fix windows
This commit is contained in:
@@ -90,8 +90,7 @@ public:
|
||||
remote::file_handle handle)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_ftruncate(const char *path,
|
||||
remote::file_offset size,
|
||||
[[nodiscard]] auto fuse_ftruncate(const char *path, remote::file_offset size,
|
||||
remote::file_handle handle)
|
||||
-> packet::error_type override;
|
||||
|
||||
@@ -119,17 +118,17 @@ public:
|
||||
[[nodiscard]] auto fuse_mkdir(const char *path, remote::file_mode mode)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_opendir(const char *path, remote::file_handle handle)
|
||||
[[nodiscard]] auto fuse_opendir(const char *path, remote::file_handle &handle)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto
|
||||
fuse_create(const char *path, remote::file_mode mode,
|
||||
const remote::open_flags &flags, remote::file_handle handle)
|
||||
[[nodiscard]] auto fuse_create(const char *path, remote::file_mode mode,
|
||||
const remote::open_flags &flags,
|
||||
remote::file_handle &handle)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_open(const char *path,
|
||||
const remote::open_flags &flags,
|
||||
remote::file_handle handle)
|
||||
remote::file_handle &handle)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto
|
||||
@@ -140,10 +139,9 @@ public:
|
||||
[[nodiscard]] auto fuse_rename(const char *from, const char *to)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_write(const char *path, const char *buffer,
|
||||
remote::file_size write_size,
|
||||
remote::file_offset write_offset,
|
||||
remote::file_handle handle)
|
||||
[[nodiscard]] auto
|
||||
fuse_write(const char *path, const char *buffer, remote::file_size write_size,
|
||||
remote::file_offset write_offset, remote::file_handle handle)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_write_base64(const char *path, const char *buffer,
|
||||
@@ -152,9 +150,9 @@ public:
|
||||
remote::file_handle handle)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto
|
||||
fuse_readdir(const char *path, remote::file_offset offset,
|
||||
remote::file_handle handle, std::string &item_path)
|
||||
[[nodiscard]] auto fuse_readdir(const char *path, remote::file_offset offset,
|
||||
remote::file_handle handle,
|
||||
std::string &item_path)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_release(const char *path, remote::file_handle handle)
|
||||
@@ -181,8 +179,7 @@ public:
|
||||
remote::file_time chgtime)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_setcrtime(const char *path,
|
||||
remote::file_time crtime)
|
||||
[[nodiscard]] auto fuse_setcrtime(const char *path, remote::file_time crtime)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_setvolname(const char *volname)
|
||||
@@ -204,8 +201,7 @@ public:
|
||||
remote::statfs_x &r_stat)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_truncate(const char *path,
|
||||
remote::file_offset size)
|
||||
[[nodiscard]] auto fuse_truncate(const char *path, remote::file_offset size)
|
||||
-> packet::error_type override;
|
||||
|
||||
[[nodiscard]] auto fuse_unlink(const char *path)
|
||||
@@ -215,8 +211,8 @@ public:
|
||||
std::uint64_t op0, std::uint64_t op1)
|
||||
-> packet::error_type override;
|
||||
|
||||
void set_fuse_uid_gid(remote::user_id /* uid */,
|
||||
remote::group_id /* gid */) override {}
|
||||
void set_fuse_uid_gid(remote::user_id /* uid */,
|
||||
remote::group_id /* gid */) override {}
|
||||
|
||||
// JSON Layer
|
||||
[[nodiscard]] auto json_create_directory_snapshot(const std::string &path,
|
||||
|
@@ -131,8 +131,7 @@ auto remote_server::fuse_chflags(const char *path, std::uint32_t /*flags*/)
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_chmod(const char *path,
|
||||
remote::file_mode /*mode*/)
|
||||
auto remote_server::fuse_chmod(const char *path, remote::file_mode /*mode*/)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -142,10 +141,8 @@ auto remote_server::fuse_chmod(const char *path,
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_chown(const char *path,
|
||||
remote::user_id /*uid*/,
|
||||
remote::group_id /*gid*/)
|
||||
-> packet::error_type {
|
||||
auto remote_server::fuse_chown(const char *path, remote::user_id /*uid*/,
|
||||
remote::group_id /*gid*/) -> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
auto file_path = construct_path(path);
|
||||
@@ -211,8 +208,7 @@ auto remote_server::fuse_fsetattr_x(const char *path,
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_fsync(const char *path,
|
||||
std::int32_t /*datasync*/,
|
||||
auto remote_server::fuse_fsync(const char *path, std::int32_t /*datasync*/,
|
||||
remote::file_handle handle)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
@@ -241,8 +237,7 @@ auto remote_server::fuse_fsync(const char *path,
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_ftruncate(const char *path,
|
||||
remote::file_offset size,
|
||||
auto remote_server::fuse_ftruncate(const char *path, remote::file_offset size,
|
||||
remote::file_handle handle)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
@@ -336,8 +331,7 @@ construct_path(path); auto ret = STATUS_NOT_IMPLEMENTED;
|
||||
return ret;
|
||||
}*/
|
||||
|
||||
auto remote_server::fuse_mkdir(const char *path,
|
||||
remote::file_mode /*mode*/)
|
||||
auto remote_server::fuse_mkdir(const char *path, remote::file_mode /*mode*/)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -350,7 +344,7 @@ auto remote_server::fuse_mkdir(const char *path,
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_opendir(const char *path, remote::file_handle handle)
|
||||
auto remote_server::fuse_opendir(const char *path, remote::file_handle &handle)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -377,7 +371,7 @@ auto remote_server::fuse_opendir(const char *path, remote::file_handle handle)
|
||||
|
||||
auto remote_server::fuse_create(const char *path, remote::file_mode mode,
|
||||
const remote::open_flags &flags,
|
||||
remote::file_handle handle)
|
||||
remote::file_handle &handle)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -414,7 +408,7 @@ auto remote_server::fuse_create(const char *path, remote::file_mode mode,
|
||||
}
|
||||
|
||||
auto remote_server::fuse_open(const char *path, const remote::open_flags &flags,
|
||||
remote::file_handle handle)
|
||||
remote::file_handle &handle)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -531,17 +525,17 @@ auto remote_server::fuse_write(const char *path, const char *buffer,
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_write_base64(
|
||||
const char * /*path*/, const char * /*buffer*/,
|
||||
remote::file_size /*write_size*/,
|
||||
remote::file_offset /*write_offset*/,
|
||||
remote::file_handle /*handle*/) -> packet::error_type {
|
||||
auto remote_server::fuse_write_base64(const char * /*path*/,
|
||||
const char * /*buffer*/,
|
||||
remote::file_size /*write_size*/,
|
||||
remote::file_offset /*write_offset*/,
|
||||
remote::file_handle /*handle*/)
|
||||
-> packet::error_type {
|
||||
// DOES NOTHING
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_readdir(const char *path,
|
||||
remote::file_offset offset,
|
||||
auto remote_server::fuse_readdir(const char *path, remote::file_offset offset,
|
||||
remote::file_handle handle,
|
||||
std::string &item_path) -> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
@@ -623,7 +617,7 @@ auto remote_server::fuse_setattr_x(const char *path,
|
||||
}
|
||||
|
||||
auto remote_server::fuse_setbkuptime(const char *path,
|
||||
remote::file_time /*bkuptime*/)
|
||||
remote::file_time /*bkuptime*/)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -634,7 +628,7 @@ auto remote_server::fuse_setbkuptime(const char *path,
|
||||
}
|
||||
|
||||
auto remote_server::fuse_setchgtime(const char *path,
|
||||
remote::file_time /*chgtime*/)
|
||||
remote::file_time /*chgtime*/)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -645,7 +639,7 @@ auto remote_server::fuse_setchgtime(const char *path,
|
||||
}
|
||||
|
||||
auto remote_server::fuse_setcrtime(const char *path,
|
||||
remote::file_time /*crtime*/)
|
||||
remote::file_time /*crtime*/)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
@@ -725,8 +719,7 @@ auto remote_server::fuse_statfs_x(const char *path, std::uint64_t bsize,
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto remote_server::fuse_truncate(const char *path,
|
||||
remote::file_offset size)
|
||||
auto remote_server::fuse_truncate(const char *path, remote::file_offset size)
|
||||
-> packet::error_type {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
|
@@ -330,7 +330,7 @@ auto winfsp_drive::Create(PWSTR file_name, UINT32 create_options,
|
||||
auto now = utils::time::get_time_now();
|
||||
auto meta = create_meta_attributes(
|
||||
now, attributes, now, now, (attributes & FILE_ATTRIBUTE_DIRECTORY) != 0U,
|
||||
0U, "", 0U, now, 0U, 0U, 0U,
|
||||
0U, "", 0U, now, 0U, 0U,
|
||||
(attributes & FILE_ATTRIBUTE_DIRECTORY) != 0U
|
||||
? ""
|
||||
: utils::path::combine(config_.get_cache_directory(),
|
||||
|
Reference in New Issue
Block a user