]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/doc/psd/05.sysman/1.7.t
zfs: merge openzfs/zfs@a03ebd9be
[FreeBSD/FreeBSD.git] / share / doc / psd / 05.sysman / 1.7.t
1 .\" Copyright (c) 1983, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .sh "System operation support
29 .PP
30 Unless noted otherwise,
31 the calls in this section are permitted only to a privileged user.
32 .NH 3
33 Bootstrap operations
34 .PP
35 The call
36 .DS
37 mount(blkdev, dir, ronly);
38 char *blkdev, *dir; int ronly;
39 .DE
40 extends the UNIX name space.  The \fImount\fP call specifies
41 a block device \fIblkdev\fP containing a UNIX file system
42 to be made available starting at \fIdir\fP.  If \fIronly\fP is
43 set then the file system is read-only; writes to the file system
44 will not be permitted and access times will not be updated
45 when files are referenced.
46 \fIDir\fP is normally a name in the root directory.
47 .PP
48 The call
49 .DS
50 swapon(blkdev, size);
51 char *blkdev; int size;
52 .DE
53 specifies a device to be made available for paging and swapping.
54 .PP
55 .NH 3
56 Shutdown operations
57 .PP
58 The call
59 .DS
60 unmount(dir);
61 char *dir;
62 .DE
63 unmounts the file system mounted on \fIdir\fP.
64 This call will succeed only if the file system is
65 not currently being used.
66 .PP
67 The call
68 .DS
69 sync();
70 .DE
71 schedules input/output to clean all system buffer caches.
72 (This call does not require privileged status.)
73 .PP
74 The call
75 .DS
76 reboot(how)
77 int how;
78 .DE
79 causes a machine halt or reboot.  The call may request a reboot
80 by specifying \fIhow\fP as RB_AUTOBOOT, or that the machine be halted
81 with RB_HALT.  These constants are defined in \fI<sys/reboot.h>\fP.
82 .NH 3
83 Accounting
84 .PP
85 The system optionally keeps an accounting record in a file
86 for each process that exits on the system.
87 The format of this record is beyond the scope of this document.
88 The accounting may be enabled to a file \fIname\fP by doing
89 .DS
90 acct(path);
91 char *path;
92 .DE
93 If \fIpath\fP is null, then accounting is disabled.  Otherwise,
94 the named file becomes the accounting file.