GFS_PIO_DATASYNC(3)

✨ NAME ✨

gfs_pio_datasync β€” bestie, this one dumps your file's data out of memory and onto the disk, fr fr πŸ’Ύβœ¨


🌸 SYNOPSIS 🌸

#include <gfarm/gfarm.h>

gfarm_error_t gfs_pio_datasync(GFS_File gf);

πŸ’… DESCRIPTION πŸ’…

okay so. gfs_pio_datasync flushes all that data just vibing in memory for your gf, and then it waits β€” like, actually waits β€” for the I/O to finish before it comes back to you. no rushing, no "yeah sure it's done", it's giving patient main character energy 🫢

the one thing it does not do is update the metadata stat info. nope, not its job. if you want the metadata updated too, that's a whole different function: gfs_pio_sync, which handles the metadata on top of the contents. so like, gfs_pio_datasync = data only, gfs_pio_sync = data + metadata. iykyk πŸ’…


🌈 RETURN VALUES 🌈

  • GFARM_ERR_NO_ERROR β€” it ate and left no crumbs. the function terminated successfully ✨
  • GFARM_ERR_NO_MEMORY β€” not enough memory was available 😭 tragic, honestly
  • Others β€” some other error happened that isn't either of the above. the reason gets shown by gfarm_error_string(3), so go check that πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

gfs_pio_sync(3), gfs_pio_create(3), gfs_pio_open(3), gfs_pio_write(3), gfs_pio_flush(3)


and that's the whole page, bestie πŸŽ€ this was Gfarm, dated 20 Jun 2019 β€” go sync something, ily, bye πŸ’œπŸŒˆ