2,253
edits
Changes
Automated import of articles
== NAME ==
<p style="margin-left:11%; margin-top: 1em">vzfsync −
perform fsync/fdatasync/fadvise on files</p>
== SYNOPSIS ==
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">
<p style="margin-top: 1em"><b>vzfsync</b></p></td>
<td width="1%"></td>
<td width="77%">
<p style="margin-top: 1em">{ <b>-s</b>,<b>--sync</b> |
<b>-d</b>,<b>--datasync</b> } [<b>-n</b>,<b>--dontneed</b>]
<b>file</b> [<b>file </b><i>...</i>]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">
<p style="margin-top: 1em"><b>vzfsync</b></p></td>
<td width="1%"></td>
<td width="77%">
<p style="margin-top: 1em"><b>--help</b></p></td></tr>
</table>
== DESCRIPTION ==
<p style="margin-left:11%; margin-top: 1em">This utility
performs <b>fsync</b>(2) or <b>fdatasync(2)</b> for every
supplied file name. It can also optionally perform
<b>posix_fadvise</b>(2) with the argument of
<b>POSIX_FADV_DONTNEED</b>.</p>
<p style="margin-left:11%; margin-top: 1em">It is used from
within [[Man/vzmigrate.8|<b>vzmigrate</b>(8)]] utility for live migration, right
after copying ploop delta files (and before suspending a
container) to sync those copied files to disk in order to
optimize subsequent ploop mount time and, utlimately,
container frozen time.</p>
== OPTIONS ==
<p style="margin-left:11%; margin-top: 1em"><b>-s</b>,<b>--sync</b></p>
<p style="margin-left:22%;">Perform fsync.</p>
<p style="margin-left:11%;"><b>-d</b>,<b>--datasync</b></p>
<p style="margin-left:22%;">Perform fdatasync.</p>
<p style="margin-left:11%;"><b>-n</b>,<b>--dontneed</b></p>
<p style="margin-left:22%;">Perform
posix_fadvise(POSIX_FADV_DONTNEED).</p>
== EXIT STATUS ==
<p style="margin-left:11%; margin-top: 1em">Returns 0 upon
success, or an appropriate error code in case of an
error:</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">
<p>1</p></td>
<td width="10%"></td>
<td width="78%">
<p>Invalid usage</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">
<p>2</p></td>
<td width="10%"></td>
<td width="78%">
<p>Failed to perform some requested operations on one or
many files.</p></td></tr>
</table>
== SEE ALSO ==
<p style="margin-left:11%; margin-top: 1em"><b>fsync</b>(2),
<b>fdatasync</b>(2), <b>posix_fadvise</b>(2).</p>
== LICENSE ==
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2014, Parallels, Inc. Licensed under GNU GPL v2.</p>
<p style="margin-left:11%; margin-top: 1em">vzfsync −
perform fsync/fdatasync/fadvise on files</p>
== SYNOPSIS ==
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">
<p style="margin-top: 1em"><b>vzfsync</b></p></td>
<td width="1%"></td>
<td width="77%">
<p style="margin-top: 1em">{ <b>-s</b>,<b>--sync</b> |
<b>-d</b>,<b>--datasync</b> } [<b>-n</b>,<b>--dontneed</b>]
<b>file</b> [<b>file </b><i>...</i>]</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">
<p style="margin-top: 1em"><b>vzfsync</b></p></td>
<td width="1%"></td>
<td width="77%">
<p style="margin-top: 1em"><b>--help</b></p></td></tr>
</table>
== DESCRIPTION ==
<p style="margin-left:11%; margin-top: 1em">This utility
performs <b>fsync</b>(2) or <b>fdatasync(2)</b> for every
supplied file name. It can also optionally perform
<b>posix_fadvise</b>(2) with the argument of
<b>POSIX_FADV_DONTNEED</b>.</p>
<p style="margin-left:11%; margin-top: 1em">It is used from
within [[Man/vzmigrate.8|<b>vzmigrate</b>(8)]] utility for live migration, right
after copying ploop delta files (and before suspending a
container) to sync those copied files to disk in order to
optimize subsequent ploop mount time and, utlimately,
container frozen time.</p>
== OPTIONS ==
<p style="margin-left:11%; margin-top: 1em"><b>-s</b>,<b>--sync</b></p>
<p style="margin-left:22%;">Perform fsync.</p>
<p style="margin-left:11%;"><b>-d</b>,<b>--datasync</b></p>
<p style="margin-left:22%;">Perform fdatasync.</p>
<p style="margin-left:11%;"><b>-n</b>,<b>--dontneed</b></p>
<p style="margin-left:22%;">Perform
posix_fadvise(POSIX_FADV_DONTNEED).</p>
== EXIT STATUS ==
<p style="margin-left:11%; margin-top: 1em">Returns 0 upon
success, or an appropriate error code in case of an
error:</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">
<p>1</p></td>
<td width="10%"></td>
<td width="78%">
<p>Invalid usage</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">
<p>2</p></td>
<td width="10%"></td>
<td width="78%">
<p>Failed to perform some requested operations on one or
many files.</p></td></tr>
</table>
== SEE ALSO ==
<p style="margin-left:11%; margin-top: 1em"><b>fsync</b>(2),
<b>fdatasync</b>(2), <b>posix_fadvise</b>(2).</p>
== LICENSE ==
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2014, Parallels, Inc. Licensed under GNU GPL v2.</p>