updated build system
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -226,7 +226,7 @@ public:
|
||||
[[nodiscard]] auto
|
||||
winfsp_get_dir_buffer(PVOID /*file_desc*/,
|
||||
PVOID *& /*ptr*/) -> packet::error_type override {
|
||||
return STATUS_INVALID_HANDLE;
|
||||
return static_cast<packet::error_type>(STATUS_INVALID_HANDLE);
|
||||
}
|
||||
|
||||
[[nodiscard]] auto json_create_directory_snapshot(
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &client_id, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
std::wstring file_name;
|
||||
DECODE_OR_RETURN(request, file_name);
|
||||
@@ -156,7 +156,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -174,7 +174,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -191,7 +191,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
std::wstring file_name;
|
||||
DECODE_OR_RETURN(request, file_name);
|
||||
@@ -218,30 +218,30 @@ public:
|
||||
|
||||
return ret;
|
||||
}});
|
||||
handler_lookup_.insert({"::winfsp_get_volume_info",
|
||||
[this](std::uint32_t, const std::string &,
|
||||
std::uint64_t, const std::string &, packet *,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
handler_lookup_.insert(
|
||||
{"::winfsp_get_volume_info",
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
UINT64 total_size{};
|
||||
UINT64 free_size{};
|
||||
std::string volume_label;
|
||||
if ((ret = this->winfsp_get_volume_info(
|
||||
total_size, free_size, volume_label)) ==
|
||||
STATUS_SUCCESS) {
|
||||
response.encode(total_size);
|
||||
response.encode(free_size);
|
||||
response.encode(volume_label);
|
||||
}
|
||||
return ret;
|
||||
}});
|
||||
UINT64 total_size{};
|
||||
UINT64 free_size{};
|
||||
std::string volume_label;
|
||||
if ((ret = this->winfsp_get_volume_info(
|
||||
total_size, free_size, volume_label)) == STATUS_SUCCESS) {
|
||||
response.encode(total_size);
|
||||
response.encode(free_size);
|
||||
response.encode(volume_label);
|
||||
}
|
||||
return ret;
|
||||
}});
|
||||
handler_lookup_.insert(
|
||||
{"::winfsp_mounted",
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
std::string version;
|
||||
DECODE_OR_RETURN(request, version);
|
||||
@@ -257,7 +257,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &client_id, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
std::wstring file_name;
|
||||
DECODE_OR_RETURN(request, file_name);
|
||||
@@ -295,7 +295,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -323,7 +323,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -351,7 +351,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -378,7 +378,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -401,7 +401,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -435,7 +435,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
@@ -459,7 +459,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
std::wstring location;
|
||||
DECODE_OR_RETURN(request, location);
|
||||
@@ -471,7 +471,7 @@ public:
|
||||
[this](std::uint32_t, const std::string &, std::uint64_t,
|
||||
const std::string &, packet *request,
|
||||
packet &response) -> packet::error_type {
|
||||
auto ret = STATUS_SUCCESS;
|
||||
auto ret = static_cast<packet::error_type>(STATUS_SUCCESS);
|
||||
|
||||
HANDLE file_desc{};
|
||||
DECODE_OR_RETURN(request, file_desc);
|
||||
|
||||
Reference in New Issue
Block a user