GFS_PIO_SYNC(3)
πΎ GFS_PIO_SYNC(3) πΎ
okay bestie, welcome to the Gfarm girlies' corner of section 3 of the manual. this one is literally called gfs_pio_sync and it's about making sure your data actually, you know, exists on disk instead of vibing in memory forever. π«Ά
β¨ NAME β¨
gfs_pio_sync β output a file's data on memory to disk πΈ
β¨ SYNOPSIS β¨
#include <gfarm/gfarm.h>
gfarm_error_t gfs_pio_sync(GFS_File gf);
β¨ DESCRIPTION β¨
so the way this works: gfs_pio_sync flushes all the data that's chillin' in memory for gf, and then it waits for the I/O to actually finish before it comes back to you. no ghosting, no "yeah I'll get to it", it waits. π
and not only that β it also updates the metadata stat information. meanwhile its sibling function gfs_pio_datasync does not update the metadata. so if you need the stat info fresh too, this is your girl. π
β¨ RETURN VALUES β¨
GFARM_ERR_NO_ERRORβ slay, it worked, the function terminated successfully. πGFARM_ERR_NO_MEMORYβ not enough memory was available. π tragic.- Others β some other error happened, and the reason gets shown to you by
gfarm_error_string(3). go read that one, iykyk. π₯
β¨ SEE ALSO β¨
mwah π that's the whole page bestie, go sync something. this came to you from Gfarm, dated 20 Jun 2019 β iconic behavior, no cap. π¦β¨
π¦ where this page comes from
- debian bookworm: libgfarm-dev 2.7.20+dfsg-1+b2 Β· BSD-like
- debian trixie: libgfarm-dev 2.7.20+dfsg-1.2+b1 Β· BSD-like
- ubuntu jammy: libgfarm-dev 2.7.17+dfsg-1build2 Β· BSD-like
- ubuntu noble: libgfarm-dev 2.7.20+dfsg-1.1ubuntu1 Β· BSD-like
- ubuntu questing: libgfarm-dev 2.7.20+dfsg-1.2
- ubuntu resolute: libgfarm-dev 2.7.20+dfsg-1.3 Β· BSD-like
- ubuntu stonking: libgfarm-dev 2.7.20+dfsg-1.3build1 Β· BSD-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms