MNT_WAIT
return nflag ? count : (size_t)getmntinfo(mntbufp, MNT_WAIT);
if ((numfs = getmntinfo(&sfp, MNT_WAIT)) == 0) {
VOP_FSYNC(convp, cred, MNT_WAIT, 0, 0);
mntflags = MNT_WAIT;
if (mntflags != MNT_WAIT &&
error = VFS_SYNC(sc->sc_mount, MNT_WAIT, curlwp->l_cred);
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0)) != 0)
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0)) != 0)
(void)ncl_flush(vp, MNT_WAIT, NULL, ap->a_td, 1, 0);
ret = ncl_flush(vp, MNT_WAIT, cred, p, 1,
error = VOP_FSYNC(fvp, MNT_WAIT, fcnp->cn_thread);
error = VOP_FSYNC(tvp, MNT_WAIT, tcnp->cn_thread);
VOP_FSYNC(vp, MNT_WAIT, cnp->cn_thread);
if (waitfor != MNT_WAIT || passone)
if (waitfor == MNT_WAIT) {
if (error == 0 && commit != 0 && waitfor == MNT_WAIT &&
(void) ncl_flush(vp, MNT_WAIT, cred, td, 1, 0);
error = ncl_flush(vp, MNT_WAIT, cred, ap->a_td, cm, 0);
error = ncl_flush(vp, MNT_WAIT, cred, ap->a_td,
error = VOP_FSYNC(vp, MNT_WAIT, td);
fsyncwait = (waitfor == MNT_WAIT) ? FSYNC_WAIT : 0;
if (waitfor == MNT_WAIT) {
error = udf_write_metadata_partition_spacetable(ump, MNT_WAIT);
error = udf_write_physical_partition_spacetables(ump, MNT_WAIT);
if (waitfor == MNT_WAIT)
error = VFS_SYNC(mp, MNT_WAIT, l->l_cred);
(flags != MNT_WAIT && flags != 0)) {
if ((error = dostatvfs(mp, sfs, curl, MNT_WAIT, 0)) == 0)
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0);
(ap->a_flags & FSYNC_WAIT) != 0 ? MNT_WAIT : 0, curlwp, 1));
error = nfs_flush(vp, ap->a_cred, MNT_WAIT, curlwp, 0);
return VFS_SYNC(mp, wait ? MNT_WAIT : MNT_NOWAIT, cred);
#define ST_WAIT MNT_WAIT
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0)) != 0)
if (waitfor == MNT_WAIT)
if (waitfor == MNT_WAIT)
ext2fs_cgupdate(ump, MNT_WAIT) == 0 &&
(void) ext2fs_sbupdate(ump, MNT_WAIT);
(void) ext2fs_cgupdate(ump, MNT_WAIT);
ext2fs_cgupdate(ump, MNT_WAIT) == 0 &&
(void) ext2fs_sbupdate(ump, MNT_WAIT);
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0);
error = VFS_SYNC(vp->v_mount, MNT_WAIT, curlwp->l_cred);
if (ffs_cgupdate(ump, MNT_WAIT) == 0 &&
(void) ffs_sbupdate(ump, MNT_WAIT);
(waitfor == MNT_WAIT ? FSYNC_WAIT : 0), 0, 0);
if (waitfor == MNT_WAIT)
error = wapbl_flush(mp->mnt_wapbl, (waitfor == MNT_WAIT));
if (waitfor == MNT_WAIT)
if (waitfor == MNT_WAIT)
if (ffs_cgupdate(ump, MNT_WAIT) == 0 &&
(void) ffs_sbupdate(ump, MNT_WAIT);
(void) ffs_cgupdate(ump, MNT_WAIT);
(void) ffs_sbupdate(ump, MNT_WAIT);
ffs_sync(mp, MNT_WAIT, FSCRED);
error = ffs_sbupdate(ump, MNT_WAIT);
error = ffs_sbupdate(ump, MNT_WAIT);
ffs_sync(mp, MNT_WAIT, FSCRED);
error = ffs_sbupdate(ump, MNT_WAIT);
if ((error = VFS_SYNC(mp, MNT_WAIT, l->l_cred)) != 0)
nfst = getmntinfo(&fst, MNT_WAIT);
nitems = getmntinfo(&mntbuf, MNT_WAIT);
nitems = getmntinfo(&mntbuf, MNT_WAIT);
nitems = getmntinfo(&mntbuf, MNT_WAIT);
nitems = getmntinfo(&mntbuf, MNT_WAIT);
nfst = getmntinfo(&fst, MNT_WAIT);
nfst = getmntinfo(&fst, MNT_WAIT);
nfst = getmntinfo(&fst, MNT_WAIT);
nfst = getmntinfo(&fst, MNT_WAIT);