Support sync_read and sync_write