vzfsync(8)
π vzfsync β the lil' sync bestie π
okay so before we even get into it: this is vzfsync, a page from the Containers manual, and she is exactly what she sounds like. a tiny utility whose whole personality is "make the disk actually know about these files". slay.
β¨ NAME β¨
vzfsync β perform fsync/fdatasync/fadvise on files π«Ά
πΈ SYNOPSIS πΈ
vzfsync { -s,--sync | -d,--datasync } [-n,--dontneed] file [file ...]
vzfsync --help
so yeah bestie, you're picking one of -s or -d (not both, the braces said so π
), optionally adding -n, and then throwing as many file names at her as you want.
π¦ DESCRIPTION π¦
This utility runs fsync(2) or fdatasync(2) on every single file name you hand her. every one. she does not skip. she does not get tired.
She can also, if you ask nicely, do a posix_fadvise(2) with the argument POSIX_FADV_DONTNEED. optional lil' bonus move β¨
Now here's the lore, iykyk: she gets called from inside the vzmigrate(8) utility during live migration β right after copying ploop delta files, and before suspending a container. she syncs those freshly-copied files to disk so that the later ploop mount is faster and, ultimately, so the container's frozen time is shorter. she's the queen of "let's not make the container sit there frozen longer than it has to". main character energy, fr fr π
π OPTIONS π
-s,--syncβ performfsync. classic. iconic. she flushes it all the way down. π-d,--datasyncβ performfdatasync. same vibe, but it's the data-flavoured one. πΈ-n,--dontneedβ performposix_fadvise(POSIX_FADV_DONTNEED). the "we're done here, you can let go of the cache" move. π
no cap, you need-sor-dβ the synopsis literally put them in{ }together. don't try to be different.
β EXIT STATUS β
Returns 0 when everything went great π β otherwise she gives you the appropriate error code, and she means it:
1β invalid usage. you did the arguments wrong, bestie π2β failed to perform some requested operations on one or many files. she tried. something said no. π
π SEE ALSO π
fsync(2), fdatasync(2), posix_fadvise(2).
π LICENSE π
Copyright (C) 2014, Parallels, Inc. Licensed under GNU GPL v2.
okay that's the whole page, you ate it, go sync something π
this was brought to you by OpenVZ, dated 31 Mar 2014, and yes, the page really is called vzfsync(8) β obsessed with her πβ¨
π¦ where this page comes from
- ubuntu jammy: vzctl 4.9.4-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms