xref: /csrg-svn/bin/sync/sync.8 (revision 54334)
147462Scael.\" Copyright (c) 1980, 1991 Regents of the University of California.
247462Scael.\" All rights reserved.
318932Smckusick.\"
4*54334Scael.\" %sccs.include.redist.roff%
518932Smckusick.\"
6*54334Scael.\"	@(#)sync.8	6.4 (Berkeley) 06/23/92
747462Scael.\"
847462Scael.Dd
947462Scael.Dt SYNC 8
1047462Scael.Os BSD 4
1147462Scael.Sh NAME
1247462Scael.Nm sync
13*54334Scael.Nd force completion of pending disk writes (flush cache)
1447462Scael.Sh SYNOPSIS
15*54334Scael.Nm sync
1647462Scael.Sh DESCRIPTION
17*54334Scael.Nm Sync
1828856Skarelscan be called to insure that all disk writes have been completed before the
1918932Smckusickprocessor is halted in a way not suitably done by
2047462Scael.Xr reboot 8
2118932Smckusickor
2247462Scael.Xr halt 8 .
2328856SkarelsGenerally, it is preferable to use
2447462Scael.Xr reboot
2528856Skarelsor
2647462Scael.Xr halt
2728856Skarelsto shut down the system,
2828856Skarelsas they may perform additional actions
2928856Skarelssuch as resynchronizing the hardware clock
3028856Skarelsand flushing internal caches before performing a final
31*54334Scael.Nm sync .
3247462Scael.Pp
33*54334Scael.Nm Sync
3447462Scaelutilizes the
3547462Scael.Xr sync 2
3647462Scaelfunction call.
3747462Scael.Sh SEE ALSO
3847462Scael.Xr sync 2 ,
3947462Scael.Xr fsync 2 ,
4047462Scael.Xr halt 8 ,
4147462Scael.Xr reboot 8 ,
4247462Scael.Xr update 8
4347462Scael.Sh HISTORY
4447462ScaelA
45*54334Scael.Nm sync
46*54334Scaelcommand appeared in
47*54334Scael.At v6 .
48