MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / v_flush

Function v_flush

dep/hfsutils/libhfs/volume.c:161–174  ·  view source on GitHub ↗

* NAME: vol->flush() * DESCRIPTION: commit all pending changes to volume device */

Source from the content-addressed store, hash-verified

159 * DESCRIPTION: commit all pending changes to volume device
160 */
161int v_flush(hfsvol *vol)
162{
163 if (flushvol(vol, 0) == -1)
164 goto fail;
165
166 if ((vol->flags & HFS_VOL_USINGCACHE) &&
167 b_flush(vol) == -1)
168 goto fail;
169
170 return 0;
171
172fail:
173 return -1;
174}
175
176/*
177 * NAME: vol->close()

Callers 2

hfs_flushFunction · 0.85
hfs_umountFunction · 0.85

Calls 2

flushvolFunction · 0.85
b_flushFunction · 0.85

Tested by

no test coverage detected