IO_SYNC
IO_NOCACHE | IO_SYNC | IO_NOLIMIT, sc->sc_cred, &bp->b_resid, curproc);
ioflag |= IO_SYNC;
if (flags & IO_SYNC)
error = detrunc(ip, (uint32_t)0, IO_SYNC, cnp->cn_cred, cnp->cn_proc);
if (ioflag & IO_SYNC)
detrunc(dep, osize, ioflag & IO_SYNC, NOCRED, curproc);
detrunc(dep, dep->de_FileSize, ioflag & IO_SYNC, NOCRED, curproc);
} else if (ioflag & IO_SYNC)
if (ioflag & (IO_APPEND | IO_SYNC)) {
if (ioflag & IO_SYNC) {
ioflags = (IO_SYNC | IO_NODELOCKED);
ioflags = (IO_SYNC | IO_NODELOCKED);
if (flags & IO_SYNC)
if (flags & IO_SYNC)
error = VOP_WRITE(dvp, &auio, IO_SYNC, cnp->cn_cred);
error = ext2fs_truncate(dp, (off_t)dp->i_endoff, IO_SYNC,
if ((ioflag & IO_SYNC) == 0)
flags = ioflag & IO_SYNC ? B_SYNC : 0;
if (ioflag & IO_SYNC)
ioflag & IO_SYNC, ap->a_cred);
} else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) {
error = ext2fs_truncate(ip, (off_t)0, IO_SYNC, cnp->cn_cred);
error = ext2fs_truncate(xp, (off_t)0, IO_SYNC,
IO_NODELOCKED|IO_SYNC,
IO_NODELOCKED|IO_SYNC, cnp->cn_cred, NULL, curproc);
if (flags & IO_SYNC)
if (flags & IO_SYNC)
if ((ioflag & IO_SYNC) == 0)
flags = ioflag & IO_SYNC ? B_SYNC : 0;
if (ioflag & IO_SYNC)
ioflag & IO_SYNC, ap->a_cred);
} else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) {
error = UFS_TRUNCATE(dp, (off_t)dp->i_endoff, IO_SYNC, cr);
error = UFS_TRUNCATE(ip, (off_t)0, DOINGASYNC(vp) ? 0 : IO_SYNC,
if ((error = UFS_TRUNCATE(VTOI(tvp), (off_t)0, IO_SYNC,
if (flags & IO_SYNC)