Compare commits

..

3 Commits

Author SHA1 Message Date
d664c6a884 fix winfsp rename
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
2025-04-17 13:20:00 -05:00
430fc1a651 fix test 2025-04-17 11:26:12 -05:00
314ee5b664 enable all winfsp tests 2025-04-17 11:07:02 -05:00
2 changed files with 13 additions and 7 deletions

View File

@ -1023,8 +1023,15 @@ auto winfsp_drive::Rename(PVOID /*file_node*/, PVOID /*file_desc*/,
const auto handle_error = [this, &from_api_path,
&to_api_path](api_error error) -> NTSTATUS {
return this->handle_error(function_name, from_api_path + '|' + to_api_path,
error, nullptr, 0U);
auto ret = this->handle_error(
function_name, from_api_path + '|' + to_api_path, error, nullptr, 0U);
if (ret == FspNtStatusFromWin32(ERROR_FILE_EXISTS)) {
ret = FspNtStatusFromWin32(ERROR_ALREADY_EXISTS);
} else if (ret == STATUS_OBJECT_NAME_EXISTS) {
ret = STATUS_ACCESS_DENIED;
}
return ret;
};
bool exists{};

View File

@ -141,7 +141,7 @@ protected:
ASSERT_TRUE(utils::file::directory(cfg_directory).create_directory());
auto config =
std::make_unique<app_config>(provider_type::s3, cfg_directory);
std::make_unique<app_config>(provider_type::sia, cfg_directory);
{
app_config src_cfg{
provider_type::sia,
@ -299,10 +299,9 @@ std::string winfsp_test<provider_t>::mount_location;
template <typename provider_t>
std::string winfsp_test<provider_t>::mount_location2;
// using winfsp_provider_types = ::testing::Types<local_s3, remote_s3,
// local_sia, remote_sia>;
// using winfsp_provider_types = ::testing::Types<local_s3, remote_s3>;
using winfsp_provider_types = ::testing::Types<remote_winfsp_to_linux>;
using winfsp_provider_types =
::testing::Types<local_s3, remote_s3, local_sia, remote_sia,
remote_winfsp_to_linux>;
} // namespace repertory
#endif // defined(_WIN32)