Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-07-03 11:57:35 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-07-03 11:57:35 +0300
commit6efe2493a65540d3f484a8b7f27d5298d49c9da4 (patch)
tree55ff8924a57c370c16eb69ab90b35ff7d723bf78 /programs
parent53d415a3b69d2680c15ae2c56a9baf9b149ad71d (diff)
Lots more afio => llfio renaming
Diffstat (limited to 'programs')
-rw-r--r--programs/benchmark-iostreams/main.cpp2
-rw-r--r--programs/benchmark-locking/main.cpp2
-rw-r--r--programs/fs-probe/main.cpp8
-rw-r--r--programs/key-value-store/include/key_value_store.hpp4
-rw-r--r--programs/key-value-store/main.cpp28
5 files changed, 22 insertions, 22 deletions
diff --git a/programs/benchmark-iostreams/main.cpp b/programs/benchmark-iostreams/main.cpp
index 8c680a14..3e005cdf 100644
--- a/programs/benchmark-iostreams/main.cpp
+++ b/programs/benchmark-iostreams/main.cpp
@@ -38,7 +38,7 @@ Distributed under the Boost Software License, Version 1.0.
#include <iostream>
#include <vector>
-namespace afio = AFIO_V2_NAMESPACE;
+namespace afio = LLFIO_V2_NAMESPACE;
using QUICKCPPLIB_NAMESPACE::algorithm::small_prng::small_prng;
inline uint64_t ticksclock()
diff --git a/programs/benchmark-locking/main.cpp b/programs/benchmark-locking/main.cpp
index 16d7bbb9..10a71920 100644
--- a/programs/benchmark-locking/main.cpp
+++ b/programs/benchmark-locking/main.cpp
@@ -63,7 +63,7 @@ bool kbhit()
}
#endif
-namespace afio = AFIO_V2_NAMESPACE;
+namespace afio = LLFIO_V2_NAMESPACE;
namespace child_process = KERNELTEST_V1_NAMESPACE::child_process;
static volatile size_t *shared_memory;
diff --git a/programs/fs-probe/main.cpp b/programs/fs-probe/main.cpp
index 94121c57..22c2b49b 100644
--- a/programs/fs-probe/main.cpp
+++ b/programs/fs-probe/main.cpp
@@ -31,13 +31,13 @@ Distributed under the Boost Software License, Version 1.0.
#include <iostream>
#ifdef __linux__
-#define file_handle AFIO_V2_NAMESPACE::file_handle
+#define file_handle LLFIO_V2_NAMESPACE::file_handle
#endif
constexpr unsigned permute_flags_max = 4;
static const std::regex sp_preamble{"(system|storage).*"};
-static AFIO_V2_NAMESPACE::storage_profile::storage_profile profile[permute_flags_max];
+static LLFIO_V2_NAMESPACE::storage_profile::storage_profile profile[permute_flags_max];
#define RETCHECK(expr) \
{ \
@@ -51,8 +51,8 @@ static AFIO_V2_NAMESPACE::storage_profile::storage_profile profile[permute_flags
int main(int argc, char *argv[])
{
- using namespace AFIO_V2_NAMESPACE;
- using AFIO_V2_NAMESPACE::byte;
+ using namespace LLFIO_V2_NAMESPACE;
+ using LLFIO_V2_NAMESPACE::byte;
std::regex torun(".*");
bool regexvalid = false;
unsigned torunflags = (1 << permute_flags_max) - 1;
diff --git a/programs/key-value-store/include/key_value_store.hpp b/programs/key-value-store/include/key_value_store.hpp
index 9ef3af06..5fa6fbda 100644
--- a/programs/key-value-store/include/key_value_store.hpp
+++ b/programs/key-value-store/include/key_value_store.hpp
@@ -36,7 +36,7 @@ Distributed under the Boost Software License, Version 1.0.
namespace key_value_store
{
- namespace afio = AFIO_V2_NAMESPACE;
+ namespace afio = LLFIO_V2_NAMESPACE;
template <class T> using optional = afio::optional<T>;
template <class T> using span = afio::span<T>;
using afio::undoer;
@@ -127,7 +127,7 @@ namespace key_value_store
- uint128 key 16 bytes
- value_history 104 bytes
*/
- using open_hash_index = basic_open_hash_index<atomic_linear_memory_policy<key_type, value_history, 0>, AFIO_V2_NAMESPACE::algorithm::mapped_span>;
+ using open_hash_index = basic_open_hash_index<atomic_linear_memory_policy<key_type, value_history, 0>, LLFIO_V2_NAMESPACE::algorithm::mapped_span>;
static_assert(sizeof(open_hash_index::value_type) == 128, "open_hash_index::value_type is wrong size");
struct index
diff --git a/programs/key-value-store/main.cpp b/programs/key-value-store/main.cpp
index 96a4eb17..fd5a9632 100644
--- a/programs/key-value-store/main.cpp
+++ b/programs/key-value-store/main.cpp
@@ -26,17 +26,17 @@ Distributed under the Boost Software License, Version 1.0.
namespace stackoverflow
{
- namespace filesystem = AFIO_V2_NAMESPACE::filesystem;
- using string_view = AFIO_V2_NAMESPACE::string_view;
- template <class T> using optional = AFIO_V2_NAMESPACE::optional<T>;
+ namespace filesystem = LLFIO_V2_NAMESPACE::filesystem;
+ using string_view = LLFIO_V2_NAMESPACE::string_view;
+ template <class T> using optional = LLFIO_V2_NAMESPACE::optional<T>;
// Try to read first line from file at path, returning no string if file does not exist,
// throwing exception for any other error
optional<std::string> read_first_line(filesystem::path path)
{
- using namespace AFIO_V2_NAMESPACE;
- using AFIO_V2_NAMESPACE::file_handle;
- using AFIO_V2_NAMESPACE::byte;
+ using namespace LLFIO_V2_NAMESPACE;
+ using LLFIO_V2_NAMESPACE::file_handle;
+ using LLFIO_V2_NAMESPACE::byte;
// The result<T> is from WG21 P0762, it looks quite like an `expected<T, std::error_code>` object
// See Outcome v2 at https://ned14.github.io/outcome/ and https://lists.boost.org/boost-announce/2017/06/0510.php
@@ -97,7 +97,7 @@ void benchmark(key_value_store::basic_key_value_store &store, const char *desc)
std::cout << " Generating 1M key-value pairs ..." << std::endl;
for(size_t n = 0; n < 1000000; n++)
{
- std::string randomvalue = AFIO_V2_NAMESPACE::utils::random_string(1024 / 2);
+ std::string randomvalue = LLFIO_V2_NAMESPACE::utils::random_string(1024 / 2);
values.push_back({100 + n, randomvalue});
}
}
@@ -150,7 +150,7 @@ int main()
{
{
std::error_code ec;
- AFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
+ LLFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
}
{
key_value_store::basic_key_value_store store("teststore", 10);
@@ -224,7 +224,7 @@ int main()
}
{
std::error_code ec;
- AFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
+ LLFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
}
{
key_value_store::basic_key_value_store store("teststore", 2000000);
@@ -232,7 +232,7 @@ int main()
}
{
std::error_code ec;
- AFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
+ LLFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
}
{
key_value_store::basic_key_value_store store("teststore", 2000000, true);
@@ -240,7 +240,7 @@ int main()
}
{
std::error_code ec;
- AFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
+ LLFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
}
{
key_value_store::basic_key_value_store store("teststore", 2000000);
@@ -249,7 +249,7 @@ int main()
}
{
std::error_code ec;
- AFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
+ LLFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
}
{
key_value_store::basic_key_value_store store("teststore", 2000000, true);
@@ -258,10 +258,10 @@ int main()
}
{
std::error_code ec;
- AFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
+ LLFIO_V2_NAMESPACE::filesystem::remove_all("teststore", ec);
}
{
- key_value_store::basic_key_value_store store("teststore", 2000000, true, AFIO_V2_NAMESPACE::file_handle::mode::write, AFIO_V2_NAMESPACE::file_handle::caching::reads);
+ key_value_store::basic_key_value_store store("teststore", 2000000, true, LLFIO_V2_NAMESPACE::file_handle::mode::write, LLFIO_V2_NAMESPACE::file_handle::caching::reads);
store.use_mmaps();
benchmark(store, "integrity, durability, mmaps");
}