future support
This commit is contained in:
parent
d03e6e8201
commit
ff007bca7f
@ -52,21 +52,37 @@ namespace repertory {
|
|||||||
struct local_s3 final {
|
struct local_s3 final {
|
||||||
static constexpr const provider_type type{provider_type::s3};
|
static constexpr const provider_type type{provider_type::s3};
|
||||||
static constexpr const provider_type type2{provider_type::s3};
|
static constexpr const provider_type type2{provider_type::s3};
|
||||||
|
static constexpr const bool swapped{false};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct local_sia final {
|
struct local_sia final {
|
||||||
static constexpr const provider_type type{provider_type::sia};
|
static constexpr const provider_type type{provider_type::sia};
|
||||||
static constexpr const provider_type type2{provider_type::sia};
|
static constexpr const provider_type type2{provider_type::sia};
|
||||||
|
static constexpr const bool swapped{false};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct remote_s3 final {
|
struct remote_s3 final {
|
||||||
static constexpr const provider_type type{provider_type::remote};
|
static constexpr const provider_type type{provider_type::remote};
|
||||||
static constexpr const provider_type type2{provider_type::s3};
|
static constexpr const provider_type type2{provider_type::s3};
|
||||||
|
static constexpr const bool swapped{false};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct remote_sia final {
|
struct remote_sia final {
|
||||||
static constexpr const provider_type type{provider_type::remote};
|
static constexpr const provider_type type{provider_type::remote};
|
||||||
static constexpr const provider_type type2{provider_type::sia};
|
static constexpr const provider_type type2{provider_type::sia};
|
||||||
|
static constexpr const bool swapped{false};
|
||||||
|
};
|
||||||
|
|
||||||
|
struct remote_winfsp_s3 final {
|
||||||
|
static constexpr const provider_type type{provider_type::remote};
|
||||||
|
static constexpr const provider_type type2{provider_type::s3};
|
||||||
|
static constexpr const bool swapped{true};
|
||||||
|
};
|
||||||
|
|
||||||
|
struct remote_winfsp_sia final {
|
||||||
|
static constexpr const provider_type type{provider_type::remote};
|
||||||
|
static constexpr const provider_type type2{provider_type::sia};
|
||||||
|
static constexpr const bool swapped{true};
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename provider_t> class fuse_test : public ::testing::Test {
|
template <typename provider_t> class fuse_test : public ::testing::Test {
|
||||||
@ -126,6 +142,8 @@ protected:
|
|||||||
execute_mount(drive_args, mount_location);
|
execute_mount(drive_args, mount_location);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const auto mount_winfsp_s3 = [&]() {};
|
||||||
|
|
||||||
const auto mount_sia = [&]() {
|
const auto mount_sia = [&]() {
|
||||||
{
|
{
|
||||||
auto test_directory = utils::path::combine(
|
auto test_directory = utils::path::combine(
|
||||||
@ -168,6 +186,8 @@ protected:
|
|||||||
execute_mount(drive_args, mount_location);
|
execute_mount(drive_args, mount_location);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const auto mount_winfsp_sia = [&]() {};
|
||||||
|
|
||||||
const auto mount_remote = [&]() {
|
const auto mount_remote = [&]() {
|
||||||
{
|
{
|
||||||
mount_location2 = mount_location;
|
mount_location2 = mount_location;
|
||||||
@ -215,11 +235,19 @@ protected:
|
|||||||
case provider_type::remote: {
|
case provider_type::remote: {
|
||||||
switch (provider_t::type2) {
|
switch (provider_t::type2) {
|
||||||
case provider_type::s3: {
|
case provider_type::s3: {
|
||||||
|
if (provider_t::swapped) {
|
||||||
|
mount_winfsp_s3();
|
||||||
|
} else {
|
||||||
mount_s3();
|
mount_s3();
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case provider_type::sia: {
|
case provider_type::sia: {
|
||||||
|
if (provider_t::swapped) {
|
||||||
|
mount_winfsp_sia();
|
||||||
|
} else {
|
||||||
mount_sia();
|
mount_sia();
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user