Difference between revisions of "Man/vzfsync.8"

From OpenVZ Virtuozzo Containers Wiki
< Man
Jump to: navigation, search
(Automated import of articles)
 
(No difference)

Latest revision as of 05:32, 4 April 2014

NAME[edit]

vzfsync − perform fsync/fdatasync/fadvise on files

SYNOPSIS[edit]

vzfsync

{ -s,--sync | -d,--datasync } [-n,--dontneed] file [file ...]

vzfsync

--help

DESCRIPTION[edit]

This utility performs fsync(2) or fdatasync(2) for every supplied file name. It can also optionally perform posix_fadvise(2) with the argument of POSIX_FADV_DONTNEED.

It is used from within vzmigrate(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.

OPTIONS[edit]

-s,--sync

Perform fsync.

-d,--datasync

Perform fdatasync.

-n,--dontneed

Perform posix_fadvise(POSIX_FADV_DONTNEED).

EXIT STATUS[edit]

Returns 0 upon success, or an appropriate error code in case of an error:

1

Invalid usage

2

Failed to perform some requested operations on one or many files.

SEE ALSO[edit]

fsync(2), fdatasync(2), posix_fadvise(2).

LICENSE[edit]

Copyright (C) 2014, Parallels, Inc. Licensed under GNU GPL v2.