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-06-30 01:05:44 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-06-30 01:05:44 +0300
commitbd06afea35d760e6de395b047a9524c55bf44588 (patch)
tree2564d484d67c3955900b1e010ad16f9e71baa1e8 /example
parent6321c6aa08472a02862f0aa1b66cdc4bbf0a891b (diff)
Add begin and end to buffer types so Ranges can iterate their bytes.
Add warning about gather write use case. Restore detail::append_path_info().
Diffstat (limited to 'example')
-rw-r--r--example/use_cases.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/use_cases.cpp b/example/use_cases.cpp
index 1df10604..b8f93bee 100644
--- a/example/use_cases.cpp
+++ b/example/use_cases.cpp
@@ -153,6 +153,12 @@ void read_entire_file2()
void scatter_write()
{
+ /* WARNING: This example cannot possibly work because files opened with caching::only_metadata
+ are required by the operating system to be supplied with buffers aligned to, and be a multiple of,
+ the device's native block size (often 4Kb). So the gather buffers below would need to be each 4Kb
+ long, and aligned to 4Kb boundaries. If you would like this example to work as-is, change the
+ caching::only_metadata to caching::all.
+ */
//! [scatter_write]
namespace afio = AFIO_V2_NAMESPACE;