| Updated: October 28, 2024 |
int (*sync) ( resmgr_context_t *ctp,
io_sync_t *msg,
RESMGR_OCB_T *ocb )
struct _io_sync {
uint16_t type;
uint16_t combine_len;
uint32_t flag;
};
typedef union {
struct _io_sync i;
} io_sync_t;
The default implementation iofunc_sync_default() calls the helper function iofunc_sync_verify(), but does not actually synchronize anything after verifying. The iofunc_sync_verify() function verifies that the filesystem was mounted with the IOFUNC_PC_SYNC_IO flag. The iofunc_sync() helper function verifies that it is not a read-only filesystem when it determines whether synchronization is needed.