4 Commits

Author SHA1 Message Date
3917a3d160 refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
2025-02-12 14:18:17 -06:00
c3c4ead1a5 refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
2025-02-12 13:39:43 -06:00
fb8f6644ad updated CHANGELOG.md
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
2025-02-11 17:37:29 -06:00
9842aa238a updated version 2025-02-11 17:32:52 -06:00
4 changed files with 20 additions and 22 deletions

View File

@ -1,7 +1,18 @@
# Changelog # Changelog
## v2.0.4-rc
### Issues
* ~~\#12 [Unit Test] Complete all providers unit tests~~
* ~~\#21 [Unit Test] Complete WinFSP unit tests~~
* ~~\#22 [Unit Test] Complete FUSE unit tests~~
### Changes from v2.0.3-rc
## v2.0.3-rc ## v2.0.3-rc
<!-- markdownlint-disable-next-line -->
### Issues ### Issues
* \#28 \[bug\] Address slow directory responses in S3 mounts for deeply nested directories * \#28 \[bug\] Address slow directory responses in S3 mounts for deeply nested directories

View File

@ -10,7 +10,7 @@ PROJECT_DESC="Mount utility for Sia and S3"
PROJECT_MAJOR_VERSION=2 PROJECT_MAJOR_VERSION=2
PROJECT_MINOR_VERSION=0 PROJECT_MINOR_VERSION=0
PROJECT_REVISION_VERSION=3 PROJECT_REVISION_VERSION=4
PROJECT_RELEASE_NUM=0 PROJECT_RELEASE_NUM=0
PROJECT_RELEASE_ITER=rc PROJECT_RELEASE_ITER=rc

View File

@ -26,6 +26,7 @@
#include "comm/packet/packet_client.hpp" #include "comm/packet/packet_client.hpp"
#include "drives/remote/remote_open_file_table.hpp" #include "drives/remote/remote_open_file_table.hpp"
#include "drives/winfsp/remotewinfsp/i_remote_instance.hpp" #include "drives/winfsp/remotewinfsp/i_remote_instance.hpp"
#include "types/remote.hpp"
namespace repertory { namespace repertory {
class app_config; class app_config;

View File

@ -22,13 +22,11 @@
#include "drives/winfsp/remotewinfsp/remote_client.hpp" #include "drives/winfsp/remotewinfsp/remote_client.hpp"
#include "app_config.hpp" #include "app_config.hpp"
#include "drives/winfsp/remotewinfsp/i_remote_instance.hpp"
#include "events/event_system.hpp" #include "events/event_system.hpp"
#include "events/types/drive_mounted.hpp" #include "events/types/drive_mounted.hpp"
#include "events/types/drive_unmount_pending.hpp" #include "events/types/drive_unmount_pending.hpp"
#include "events/types/drive_unmounted.hpp" #include "events/types/drive_unmounted.hpp"
#include "types/repertory.hpp" #include "utils/string.hpp"
#include "utils/path.hpp"
#include "version.hpp" #include "version.hpp"
namespace repertory::remote_winfsp { namespace repertory::remote_winfsp {
@ -44,11 +42,7 @@ auto remote_client::winfsp_can_delete(PVOID file_desc, PWSTR file_name)
request.encode(file_name); request.encode(file_name);
std::uint32_t service_flags{}; std::uint32_t service_flags{};
auto ret{ return packet_client_.send(function_name, request, service_flags);
packet_client_.send(function_name, request, service_flags),
};
return ret;
} }
auto remote_client::json_create_directory_snapshot(const std::string &path, auto remote_client::json_create_directory_snapshot(const std::string &path,
@ -103,11 +97,7 @@ auto remote_client::json_release_directory_snapshot(
request.encode(handle); request.encode(handle);
std::uint32_t service_flags{}; std::uint32_t service_flags{};
auto ret{ return packet_client_.send(function_name, request, service_flags);
packet_client_.send(function_name, request, service_flags),
};
return ret;
} }
auto remote_client::winfsp_cleanup(PVOID file_desc, PWSTR file_name, auto remote_client::winfsp_cleanup(PVOID file_desc, PWSTR file_name,
@ -273,8 +263,8 @@ auto remote_client::winfsp_get_security_by_name(PWSTR file_name,
packet request; packet request;
request.encode(file_name); request.encode(file_name);
request.encode(static_cast<std::uint64_t>( request.encode(descriptor_size == nullptr ? std::uint64_t(0U)
descriptor_size == nullptr ? 0 : *descriptor_size)); : *descriptor_size);
request.encode(static_cast<std::uint8_t>(attributes != nullptr)); request.encode(static_cast<std::uint8_t>(attributes != nullptr));
packet response; packet response;
@ -417,7 +407,7 @@ auto remote_client::winfsp_read(PVOID file_desc, PVOID buffer, UINT64 offset,
ret = response.decode(buffer, *bytes_transferred); ret = response.decode(buffer, *bytes_transferred);
#if defined(_WIN32) #if defined(_WIN32)
if ((ret == STATUS_SUCCESS) && if ((ret == STATUS_SUCCESS) &&
(not*bytes_transferred || (*bytes_transferred != length))) { ((*bytes_transferred == 0U) || (*bytes_transferred != length))) {
::SetLastError(ERROR_HANDLE_EOF); ::SetLastError(ERROR_HANDLE_EOF);
} }
#endif #endif
@ -461,11 +451,7 @@ auto remote_client::winfsp_rename(PVOID file_desc, PWSTR file_name,
request.encode(replace_if_exists); request.encode(replace_if_exists);
std::uint32_t service_flags{}; std::uint32_t service_flags{};
auto ret{ return packet_client_.send(function_name, request, service_flags);
packet_client_.send(function_name, request, service_flags),
};
return ret;
} }
auto remote_client::winfsp_set_basic_info( auto remote_client::winfsp_set_basic_info(