⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 b.t

📁 早期freebsd实现
💻 T
字号:
.\" Copyright (c) 1983, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"	@(#)b.t	8.1 (Berkeley) 6/8/93.\".\".ds RH "Device Defaulting Rules.bp.LG.B.ceAPPENDIX B. RULES FOR DEFAULTING SYSTEM DEVICES.sp.R.NL.PPWhen \fIconfig\fP processes a ``config'' rule which doesnot fully specify the location of the root file system,paging area(s), device for system dumps, and device forargument list processing it applies a set of rules todefine those values left unspecified.  The following listof rules are used in defaulting system devices..IP 1) 3If a root device is not specified, the swapspecification must indicate a ``generic'' system is to be built..IP 2) 3If the root device does not specify a unit number, itdefaults to unit 0..IP 3) 3If the root device does not include a partition specification,it defaults to the ``a'' partition..IP 4) 3If no swap area is specified, it defaults to the ``b''partition of the root device..IP 5) 3If no device is specified for processing argument lists, thefirst swap partition is selected..IP 6) 3If no device is chosen for system dumps, the first swappartition is selected (see below to find out where dumps areplaced within the partition)..PPThe following table summarizes the default partitions selectedwhen a device specification is incomplete, e.g. ``hp0''..DS.TSl l.Type	Partition_root	``a''swap	``b''args	``b''dumps	``b''.TE.DE.SHMultiple swap/paging areas.PPWhen multiple swap partitions are specified, the system treats thefirst specified as a ``primary'' swap area which is always used.The remaining partitions are then interleaved into the pagingsystem at the time a.IR swapon (2)system call is made.  This is normally done at boot time witha call to.IR swapon (8)from the /etc/rc file..SHSystem dumps.PPSystem dumps are automatically taken after a system crash,provided the device driver for the ``dumps'' device supportsthis.  The dump contains the contents of memory, but notthe swap areas.  Normally the dump device is a disk inwhich case the information is copied to a location at theback of the partition.  The dump is placed in the back of thepartition because the primary swap and dump device are commonlythe same device and this allows the system to be rebooted withoutimmediately overwriting the saved information.  When a dump hasoccurred, the system variable \fIdumpsize\fP is set to a non-zero value indicating the size (in bytes) ofthe dump.  The \fIsavecore\fP\|(8)program then copies the information from the dump partition toa file in a ``crash'' directory and also makes a copy of thesystem which was running at the time of the crash (usually``/vmunix'').  The offset to the system dump is defined in thesystem variable \fIdumplo\fP (a sector offset fromthe front of the dump partition). The .I savecoreprogram operates by reading the contents of \fIdumplo\fP, \fIdumpdev\fP,and \fIdumpmagic\fP from /dev/kmem, then comparing the valueof \fIdumpmagic\fP read from /dev/kmem to that located incorresponding location in the dump area of the dump partition.If a match is found, .I savecoreassumes a crash occurred and reads \fIdumpsize\fP from the dump areaof the dump partition.  This value is then used in copying thesystem dump.  Refer to \fIsavecore\fP\|(8)for more information about its operation..PPThe value \fIdumplo\fP is calculated to be .DS\fIdumpdev-size\fP \- \fImemsize\fP.DEwhere \fIdumpdev-size\fP is the size of the disk partitionwhere system dumps are to be placed, and\fImemsize\fP is the size of physical memory.If the disk partition is not large enough to hold a fulldump, \fIdumplo\fP is set to 0 (the start of the partition).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -