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:
Diffstat (limited to 'classafio__v2__xxx_1_1file__handle.html')
-rw-r--r--classafio__v2__xxx_1_1file__handle.html95
1 files changed, 92 insertions, 3 deletions
diff --git a/classafio__v2__xxx_1_1file__handle.html b/classafio__v2__xxx_1_1file__handle.html
index a5153bae..f2f80f49 100644
--- a/classafio__v2__xxx_1_1file__handle.html
+++ b/classafio__v2__xxx_1_1file__handle.html
@@ -162,6 +162,27 @@ using&#160;</td><td class="memItemRight" valign="bottom"><b>ino_t</b> = fs_handl
<tr class="memitem:a427c09aa323c231c01cd1749bbfda72d"><td class="memItemLeft" align="right" valign="top"><a id="a427c09aa323c231c01cd1749bbfda72d"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>path_view_type</b> = <a class="el" href="classafio__v2__xxx_1_1fs__handle.html#ac25247b15af82faf1db557b3e45e13d7">fs_handle::path_view_type</a></td></tr>
<tr class="separator:a427c09aa323c231c01cd1749bbfda72d"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a6322054d60d251248051cfc15398f608"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608">bitfield__flag</a> : unsigned { <br />
+&#160;&#160;<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608aa8a55b902102065962a56dcc6e042329">none</a> = 0,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a334c4a4c42fdb79d7ebc3e73b517e6f8">none</a> = 2,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a334c4a4c42fdb79d7ebc3e73b517e6f8">none</a> = 1,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608acd80b55b5142d39b67a551e89571ad63">unlink_on_first_close</a> = 1U &lt;&lt; 0U,
+<br />
+&#160;&#160;<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a4f263f2b60c1f50f9d400a5e716e1161">disable_safety_fsyncs</a> = 1U &lt;&lt; 2U,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a1e39145e0df75a9ce3aa55840f043313">disable_safety_unlinks</a> = 1U &lt;&lt; 3U,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a02c4e85b0c96477ae9b1dca791bbcaf6">disable_prefetching</a> = 1U &lt;&lt; 4U,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a001904a2d795ae3ed488dbc0d4e10674">maximum_prefetching</a> = 1U &lt;&lt; 5U,
+<br />
+&#160;&#160;<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a36d38379d10e372acfdb98d5ce45cf3a">win_disable_unlink_emulation</a> = 1U &lt;&lt; 24U,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a0c0a94f37b843d143876a4ac9f9f92c0">win_disable_sparse_file_creation</a> = 1U &lt;&lt; 25U,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a15c37339d7317c534121a29b381aa86c">overlapped</a> = 1U &lt;&lt; 28U,
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a94fdec6f1ea4975667ed313208a1d93e">byte_lock_insanity</a> = 1U &lt;&lt; 29U,
+<br />
+&#160;&#160;<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a89d34054589f4846025be042a5e71e14">anonymous_inode</a> = 1U &lt;&lt; 30U
+<br />
+ }<tr class="memdesc:a6322054d60d251248051cfc15398f608"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bitwise flags which can be specified. <a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608">More...</a><br /></td></tr>
+</td></tr>
+<tr class="separator:a6322054d60d251248051cfc15398f608"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0344f48ef10fa2b94199d5566aedd879"><td class="memItemLeft" align="right" valign="top"><a id="a0344f48ef10fa2b94199d5566aedd879"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1fs__handle.html#a0344f48ef10fa2b94199d5566aedd879">unique_id_type</a> = QUICKCPPLIB_NAMESPACE::integers128::uint128</td></tr>
<tr class="memdesc:a0344f48ef10fa2b94199d5566aedd879"><td class="mdescLeft">&#160;</td><td class="mdescRight">The unique identifier type used by this handle. <br /></td></tr>
@@ -174,7 +195,7 @@ constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href=
<tr class="memdesc:a962eb1411083ca9b2250fe40a9259354"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:a962eb1411083ca9b2250fe40a9259354"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1f64547bfc4ee74e6019729aaf25703"><td class="memItemLeft" align="right" valign="top"><a id="ab1f64547bfc4ee74e6019729aaf25703"></a>
-constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1file__handle.html#ab1f64547bfc4ee74e6019729aaf25703">file_handle</a> (<a class="el" href="structafio__v2__xxx_1_1native__handle__type.html">native_handle_type</a> h, dev_t devid, ino_t inode, <a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a> <a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a>=<a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9ea334c4a4c42fdb79d7ebc3e73b517e6f8">caching::none</a>, flag <a class="el" href="classafio__v2__xxx_1_1handle.html#ab3d876f5996605158fd6a0582adadad6">flags</a>=flag::none)</td></tr>
+constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1file__handle.html#ab1f64547bfc4ee74e6019729aaf25703">file_handle</a> (<a class="el" href="structafio__v2__xxx_1_1native__handle__type.html">native_handle_type</a> h, dev_t devid, ino_t inode, <a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a> <a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a>=<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a334c4a4c42fdb79d7ebc3e73b517e6f8">caching::none</a>, flag <a class="el" href="classafio__v2__xxx_1_1handle.html#ab3d876f5996605158fd6a0582adadad6">flags</a>=flag::none)</td></tr>
<tr class="memdesc:ab1f64547bfc4ee74e6019729aaf25703"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a handle from a supplied native handle. <br /></td></tr>
<tr class="separator:ab1f64547bfc4ee74e6019729aaf25703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae789484988ef5ae7eeb582439cf94904"><td class="memItemLeft" align="right" valign="top"><a id="ae789484988ef5ae7eeb582439cf94904"></a>
@@ -385,7 +406,7 @@ Protected Attributes</h2></td></tr>
<a class="el" href="classafio__v2__xxx_1_1io__service.html">io_service</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>_service</b> {nullptr}</td></tr>
<tr class="separator:a959c04239b557c6d3c3c0e996563abb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af024e3d92d9a01ac367734e9cdc517fb"><td class="memItemLeft" align="right" valign="top"><a id="af024e3d92d9a01ac367734e9cdc517fb"></a>
-<a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_caching</b> {<a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9ea334c4a4c42fdb79d7ebc3e73b517e6f8">caching::none</a>}</td></tr>
+<a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_caching</b> {<a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a334c4a4c42fdb79d7ebc3e73b517e6f8">caching::none</a>}</td></tr>
<tr class="separator:af024e3d92d9a01ac367734e9cdc517fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac46e0a296c31fcd0a996a79d78647fb6"><td class="memItemLeft" align="right" valign="top"><a id="ac46e0a296c31fcd0a996a79d78647fb6"></a>
flag&#160;</td><td class="memItemRight" valign="bottom"><b>_flags</b> {flag::none}</td></tr>
@@ -412,7 +433,75 @@ ino_t&#160;</td><td class="memItemRight" valign="bottom"><b>_inode</b> {0}</td><
<tr>
<td><code>mapped_file_handle</code></td><td>Most</td><td>Least</td><td>None</td><td>Cannot be used with uncached i/o </td></tr>
</table>
-</div><h2 class="groupheader">Member Function Documentation</h2>
+</div><h2 class="groupheader">Member Enumeration Documentation</h2>
+<a id="a6322054d60d251248051cfc15398f608"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a6322054d60d251248051cfc15398f608">&#9670;&nbsp;</a></span>bitfield__flag</h2>
+
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">enum <a class="el" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608">afio_v2_xxx::handle::bitfield__flag</a> : unsigned</td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Bitwise flags which can be specified. </p>
+<table class="fieldtable">
+<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608aa8a55b902102065962a56dcc6e042329"></a>none&#160;</td><td class="fielddoc"><p>No flags. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a334c4a4c42fdb79d7ebc3e73b517e6f8"></a>none&#160;</td><td class="fielddoc"><p>No ability to read or write anything, but can synchronise (SYNCHRONIZE or 0) </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a334c4a4c42fdb79d7ebc3e73b517e6f8"></a>none&#160;</td><td class="fielddoc"><p>No caching whatsoever, all reads and writes come from storage (i.e. <code>O_DIRECT|O_SYNC</code>). Align all i/o to 4Kb boundaries for this to work. <code>flag_disable_safety_fsyncs</code> can be used here. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608acd80b55b5142d39b67a551e89571ad63"></a>unlink_on_first_close&#160;</td><td class="fielddoc"><p>Unlinks the file on handle close. On POSIX, this simply unlinks whatever is pointed to by <code>path()</code> upon the call of <code>close()</code> if and only if the inode matches. On Windows, if you are on Windows 10 1709 or later, exactly the same thing occurs. If on previous editions of Windows, the file entry does not disappears but becomes unavailable for anyone else to open with an <code>errc::resource_unavailable_try_again</code> error return. Because this is confusing, unless the <code>win_disable_unlink_emulation</code> flag is also specified, this POSIX behaviour is somewhat emulated by AFIO on older Windows by renaming the file to a random name on <code>close()</code> causing it to appear to have been unlinked immediately. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a4f263f2b60c1f50f9d400a5e716e1161"></a>disable_safety_fsyncs&#160;</td><td class="fielddoc"><p>Some kernel caching modes have unhelpfully inconsistent behaviours in getting your data onto storage, so by default unless this flag is specified AFIO adds extra fsyncs to the following operations for the caching modes specified below: truncation of file length either explicitly or during file open. closing of the handle either explicitly or in the destructor.</p>
+<p>Additionally on Linux only to prevent loss of file metadata: On the parent directory whenever a file might have been created. On the parent directory on file close.</p>
+<p>This only occurs for these kernel caching modes: caching::none caching::reads caching::reads_and_metadata caching::safety_fsyncs </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a1e39145e0df75a9ce3aa55840f043313"></a>disable_safety_unlinks&#160;</td><td class="fielddoc"><p><code>file_handle::unlink()</code> could accidentally delete the wrong file if someone has renamed the open file handle since the time it was opened. To prevent this occuring, where the OS doesn't provide race free unlink-by-open-handle we compare the inode of the path we are about to unlink with that of the open handle before unlinking. </p><dl class="section warning"><dt>Warning</dt><dd>This does not prevent races where in between the time of checking the inode and executing the unlink a third party changes the item about to be unlinked. Only operating systems with a true race-free unlink syscall are race free. </dd></dl>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a02c4e85b0c96477ae9b1dca791bbcaf6"></a>disable_prefetching&#160;</td><td class="fielddoc"><p>Ask the OS to disable prefetching of data. This can improve random i/o performance. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a001904a2d795ae3ed488dbc0d4e10674"></a>maximum_prefetching&#160;</td><td class="fielddoc"><p>Ask the OS to maximise prefetching of data, possibly prefetching the entire file into kernel cache. This can improve sequential i/o performance. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a36d38379d10e372acfdb98d5ce45cf3a"></a>win_disable_unlink_emulation&#160;</td><td class="fielddoc"><p>See the documentation for <code>unlink_on_first_close</code> </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a0c0a94f37b843d143876a4ac9f9f92c0"></a>win_disable_sparse_file_creation&#160;</td><td class="fielddoc"><p>Microsoft Windows NTFS, having been created in the late 1980s, did not originally implement extents-based storage and thus could only represent sparse files via efficient compression of intermediate zeros. With NTFS v3.0 (Microsoft Windows 2000), a proper extents-based on-storage representation was added, thus allowing only 64Kb extent chunks written to be stored irrespective of whatever the maximum file extent was set to.</p>
+<p>For various historical reasons, extents-based storage is disabled by default in newly created files on NTFS, unlike in almost every other major filing system. You have to explicitly "opt in" to extents-based storage.</p>
+<p>As extents-based storage is nearly cost free on NTFS, AFIO by default opts in to extents-based storage for any empty file it creates. If you don't want this, you can specify this flag to prevent that happening. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a15c37339d7317c534121a29b381aa86c"></a>overlapped&#160;</td><td class="fielddoc"><p>On Windows, create any new handles with OVERLAPPED semantics. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a94fdec6f1ea4975667ed313208a1d93e"></a>byte_lock_insanity&#160;</td><td class="fielddoc"><p>Using insane POSIX byte range locks. </p>
+</td></tr>
+<tr><td class="fieldname"><a id="a6322054d60d251248051cfc15398f608a89d34054589f4846025be042a5e71e14"></a>anonymous_inode&#160;</td><td class="fielddoc"><p>This is an inode created with no representation on the filing system. </p>
+</td></tr>
+</table>
+<div class="fragment"><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608aa8a55b902102065962a56dcc6e042329">none</a> = 0, <span class="comment">//!&lt; No flags</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="comment"></span><span class="comment"> /*! Unlinks the file on handle close. On POSIX, this simply unlinks whatever is pointed</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="comment"> to by `path()` upon the call of `close()` if and only if the inode matches. On Windows,</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="comment"> if you are on Windows 10 1709 or later, exactly the same thing occurs. If on previous</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="comment"> editions of Windows, the file entry does not disappears but becomes unavailable for</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="comment"> anyone else to open with an `errc::resource_unavailable_try_again` error return. Because this is confusing, unless the</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="comment"> `win_disable_unlink_emulation` flag is also specified, this POSIX behaviour is</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="comment"> somewhat emulated by AFIO on older Windows by renaming the file to a random name on `close()`</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="comment"> causing it to appear to have been unlinked immediately.</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608acd80b55b5142d39b67a551e89571ad63">unlink_on_first_close</a> = 1U &lt;&lt; 0U,</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<span class="comment"> /*! Some kernel caching modes have unhelpfully inconsistent behaviours</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<span class="comment"> in getting your data onto storage, so by default unless this flag is</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="comment"> specified AFIO adds extra fsyncs to the following operations for the</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="comment"> caching modes specified below:</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="comment"> * truncation of file length either explicitly or during file open.</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="comment"> * closing of the handle either explicitly or in the destructor.</span></div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="comment"> Additionally on Linux only to prevent loss of file metadata:</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="comment"> * On the parent directory whenever a file might have been created.</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="comment"> * On the parent directory on file close.</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment"> This only occurs for these kernel caching modes:</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment"> * caching::none</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment"> * caching::reads</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment"> * caching::reads_and_metadata</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="comment"> * caching::safety_fsyncs</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a4f263f2b60c1f50f9d400a5e716e1161">disable_safety_fsyncs</a> = 1U &lt;&lt; 2U,<span class="comment"></span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="comment"> /*! `file_handle::unlink()` could accidentally delete the wrong file if someone has</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="comment"> renamed the open file handle since the time it was opened. To prevent this occuring,</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="comment"> where the OS doesn&#39;t provide race free unlink-by-open-handle we compare the inode of</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="comment"> the path we are about to unlink with that of the open handle before unlinking.</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="comment"> \warning This does not prevent races where in between the time of checking the inode</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="comment"> and executing the unlink a third party changes the item about to be unlinked. Only</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="comment"> operating systems with a true race-free unlink syscall are race free.</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a1e39145e0df75a9ce3aa55840f043313">disable_safety_unlinks</a> = 1U &lt;&lt; 3U,<span class="comment"></span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="comment"> /*! Ask the OS to disable prefetching of data. This can improve random</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="comment"> i/o performance.</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a02c4e85b0c96477ae9b1dca791bbcaf6">disable_prefetching</a> = 1U &lt;&lt; 4U,<span class="comment"></span></div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="comment"> /*! Ask the OS to maximise prefetching of data, possibly prefetching the entire file</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="comment"> into kernel cache. This can improve sequential i/o performance.</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a001904a2d795ae3ed488dbc0d4e10674">maximum_prefetching</a> = 1U &lt;&lt; 5U,</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a36d38379d10e372acfdb98d5ce45cf3a">win_disable_unlink_emulation</a> = 1U &lt;&lt; 24U, <span class="comment">//!&lt; See the documentation for `unlink_on_first_close`</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<span class="comment"></span><span class="comment"> /*! Microsoft Windows NTFS, having been created in the late 1980s, did not originally</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="comment"> implement extents-based storage and thus could only represent sparse files via</span></div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="comment"> efficient compression of intermediate zeros. With NTFS v3.0 (Microsoft Windows 2000),</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="comment"> a proper extents-based on-storage representation was added, thus allowing only 64Kb</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="comment"> extent chunks written to be stored irrespective of whatever the maximum file extent</span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="comment"> was set to.</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="comment"> For various historical reasons, extents-based storage is disabled by default in newly</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="comment"> created files on NTFS, unlike in almost every other major filing system. You have to</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;<span class="comment"> explicitly &quot;opt in&quot; to extents-based storage.</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="comment"> As extents-based storage is nearly cost free on NTFS, AFIO by default opts in to</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;<span class="comment"> extents-based storage for any empty file it creates. If you don&#39;t want this, you</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="comment"> can specify this flag to prevent that happening.</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a0c0a94f37b843d143876a4ac9f9f92c0">win_disable_sparse_file_creation</a> = 1U &lt;&lt; 25U,</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="comment">// NOTE: IF UPDATING THIS UPDATE THE std::ostream PRINTER BELOW!!!</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a15c37339d7317c534121a29b381aa86c">overlapped</a> = 1U &lt;&lt; 28U, <span class="comment">//!&lt; On Windows, create any new handles with OVERLAPPED semantics</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="comment"></span> <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a94fdec6f1ea4975667ed313208a1d93e">byte_lock_insanity</a> = 1U &lt;&lt; 29U, <span class="comment">//!&lt; Using insane POSIX byte range locks</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="comment"></span> <a class="code" href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a89d34054589f4846025be042a5e71e14">anonymous_inode</a> = 1U &lt;&lt; 30U <span class="comment">//!&lt; This is an inode created with no representation on the filing system</span></div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="comment"></span> }</div><div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a02c4e85b0c96477ae9b1dca791bbcaf6"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a02c4e85b0c96477ae9b1dca791bbcaf6">afio_v2_xxx::handle::disable_prefetching</a></div><div class="ttdef"><b>Definition:</b> handle.hpp:140</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a36d38379d10e372acfdb98d5ce45cf3a"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a36d38379d10e372acfdb98d5ce45cf3a">afio_v2_xxx::handle::win_disable_unlink_emulation</a></div><div class="ttdoc">See the documentation for unlink_on_first_close </div><div class="ttdef"><b>Definition:</b> handle.hpp:146</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a89d34054589f4846025be042a5e71e14"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a89d34054589f4846025be042a5e71e14">afio_v2_xxx::handle::anonymous_inode</a></div><div class="ttdoc">This is an inode created with no representation on the filing system. </div><div class="ttdef"><b>Definition:</b> handle.hpp:168</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a001904a2d795ae3ed488dbc0d4e10674"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a001904a2d795ae3ed488dbc0d4e10674">afio_v2_xxx::handle::maximum_prefetching</a></div><div class="ttdef"><b>Definition:</b> handle.hpp:144</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a4f263f2b60c1f50f9d400a5e716e1161"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a4f263f2b60c1f50f9d400a5e716e1161">afio_v2_xxx::handle::disable_safety_fsyncs</a></div><div class="ttdef"><b>Definition:</b> handle.hpp:127</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a0c0a94f37b843d143876a4ac9f9f92c0"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a0c0a94f37b843d143876a4ac9f9f92c0">afio_v2_xxx::handle::win_disable_sparse_file_creation</a></div><div class="ttdef"><b>Definition:</b> handle.hpp:162</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608acd80b55b5142d39b67a551e89571ad63"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608acd80b55b5142d39b67a551e89571ad63">afio_v2_xxx::handle::unlink_on_first_close</a></div><div class="ttdef"><b>Definition:</b> handle.hpp:108</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a1e39145e0df75a9ce3aa55840f043313"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a1e39145e0df75a9ce3aa55840f043313">afio_v2_xxx::handle::disable_safety_unlinks</a></div><div class="ttdef"><b>Definition:</b> handle.hpp:136</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a15c37339d7317c534121a29b381aa86c"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a15c37339d7317c534121a29b381aa86c">afio_v2_xxx::handle::overlapped</a></div><div class="ttdoc">On Windows, create any new handles with OVERLAPPED semantics. </div><div class="ttdef"><b>Definition:</b> handle.hpp:166</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608aa8a55b902102065962a56dcc6e042329"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608aa8a55b902102065962a56dcc6e042329">afio_v2_xxx::handle::none</a></div><div class="ttdoc">No flags. </div><div class="ttdef"><b>Definition:</b> handle.hpp:98</div></div>
+<div class="ttc" id="classafio__v2__xxx_1_1handle_html_a6322054d60d251248051cfc15398f608a94fdec6f1ea4975667ed313208a1d93e"><div class="ttname"><a href="classafio__v2__xxx_1_1handle.html#a6322054d60d251248051cfc15398f608a94fdec6f1ea4975667ed313208a1d93e">afio_v2_xxx::handle::byte_lock_insanity</a></div><div class="ttdoc">Using insane POSIX byte range locks. </div><div class="ttdef"><b>Definition:</b> handle.hpp:167</div></div>
+</div><!-- fragment -->
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
<a id="a243156928e89b8988a1412f211b3b603"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a243156928e89b8988a1412f211b3b603">&#9670;&nbsp;</a></span>barrier()</h2>