Commit | Line | Data |
---|---|---|
5f440b1e KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
eff6446c | 5 | .\" @(#)sync.2 6.2 (Berkeley) %G% |
5f440b1e | 6 | .\" |
b7bb0a6a | 7 | .TH SYNC 2 "" |
5f440b1e KM |
8 | .UC 4 |
9 | .SH NAME | |
10 | sync \- update super-block | |
11 | .SH SYNOPSIS | |
12 | .B sync() | |
13 | .SH DESCRIPTION | |
14 | .I Sync | |
15 | causes all information in core | |
16 | memory that should be on disk to be written out. | |
17 | This includes modified super blocks, | |
18 | modified i-nodes, and delayed block I/O. | |
19 | .PP | |
0175ba9c | 20 | .I Sync |
eff6446c | 21 | should be used by programs that examine a file system, |
5f440b1e | 22 | for example |
0175ba9c | 23 | .I "fsck, df," |
5f440b1e | 24 | etc. |
0175ba9c KM |
25 | .I Sync |
26 | is mandatory before a boot. | |
5f440b1e | 27 | .SH "SEE ALSO" |
0175ba9c | 28 | fsync(2), sync(8), update(8) |
5f440b1e KM |
29 | .SH BUGS |
30 | The writing, although scheduled, is not necessarily | |
31 | complete upon return from | |
32 | .IR sync . |