From owner-svn-src-head@FreeBSD.ORG Tue May 17 08:12:59 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 800D21065679; Tue, 17 May 2011 08:12:59 +0000 (UTC) (envelope-from uqs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6466B8FC12; Tue, 17 May 2011 08:12:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4H8Cx9i019472; Tue, 17 May 2011 08:12:59 GMT (envelope-from uqs@svn.freebsd.org) Received: (from uqs@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4H8CxPw019470; Tue, 17 May 2011 08:12:59 GMT (envelope-from uqs@svn.freebsd.org) Message-Id: <201105170812.p4H8CxPw019470@svn.freebsd.org> From: Ulrich Spoerlein Date: Tue, 17 May 2011 08:12:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222008 - head/share/man/man4 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 08:12:59 -0000 Author: uqs Date: Tue May 17 08:12:59 2011 New Revision: 222008 URL: http://svn.freebsd.org/changeset/base/222008 Log: Typos, wording and mdoc fixes. Modified: head/share/man/man4/geom_map.4 Modified: head/share/man/man4/geom_map.4 ============================================================================== --- head/share/man/man4/geom_map.4 Tue May 17 07:40:13 2011 (r222007) +++ head/share/man/man4/geom_map.4 Tue May 17 08:12:59 2011 (r222008) @@ -30,7 +30,7 @@ .Os .Sh NAME .Nm geom_map -.Nd "GEOM module that map difined items as separate partitions" +.Nd "GEOM module that maps defined items as separate partitions" .Sh SYNOPSIS To compile this driver into the kernel, place the following line in your @@ -41,16 +41,16 @@ kernel configuration file: .Sh DESCRIPTION The .Nm -framework provides support for mapping defined parts of the media. Basicaly it -is helpful in the embedded devices where in the one continous flash are loader, -kernel and rootfs parts. The +framework provides support for mapping defined parts of the media. +Basically it is helpful for embedded devices where in the one continuous +flash are loader, kernel and rootfs parts. .Nm -allows making them available as separate parts and protect loader from -overwriting. +allows making them available as separate parts and protects the loader from +being overwritten. .Pp At boot time .Nm -partitions listed (only with bootverbose) as: +partitions are listed (only with bootverbose) as: .Bd -literal -offset indent MAP: 0x30000, data=0x30000 "/dev/map/bootloader" MAP: 30000x10000, data=0x10000 "/dev/map/factory" @@ -62,10 +62,12 @@ MAP: 150000x690000, data=0x690000 "/dev/ MAP: 7e0000x20000, data=0x20000 "/dev/map/config" .Ed .Pp -Also +The current .Nm -current configuration can be accessible with sysctl's kern.geom.conftxt, -kern.geom.confxml, kern.geom.confdot or geom map list. +configuration can be accessed with the following +.Xr sysctl 8 +nodes: kern.geom.conftxt, kern.geom.confxml, and kern.geom.confdot +or by using "geom map list". .Bd -literal -offset indent # sysctl kern.geom.conftxt kern.geom.conftxt: 0 MD md0 10485760 512 u 0 s 512 f 0 fs 0 l 10485760 t malloc @@ -84,7 +86,7 @@ Driver configuration can be done in devi .It Fa at select media to attach .It Fa name -name of partiton (will create device /dev/map/that_name) +name of partition (will create device /dev/map/that_name) .It Fa start offset from the beginning of the parent media to start of the mapped partition. This field can also have special value @@ -119,9 +121,7 @@ MAP: 150000x690000, data=0x690000 "/dev/ "map/rootfs" - new media will be accessible via /dev/map/rootfs dev. .Ed .Sh EXAMPLES -.Pp -.Bl -bullet -compact -If we need to implement layout shown above, we need to define the folowing +If we need to implement layout shown above, we need to define the following hints: .Bd -literal -offset indent hint.map.0.at="cfid0" @@ -129,8 +129,8 @@ hint.map.0.start=0x00000000 hint.map.0.end=0x00030000 hint.map.0.name="bootloader" hint.map.0.readonly=1 - .Ed +.Pp define "/dev/map/bootloader" at disk "cfid0" starting at 0x00000000 and end 0x00030000, also marked as readonly. .Bd -literal -offset indent @@ -148,8 +148,8 @@ hint.map.3.at="cfid0" hint.map.3.name="kernel" hint.map.3.start=0x00040000 hint.map.3.end="search:0x00100000:0x10000:.!/bin/sh" - .Ed +.Pp define "/dev/map/kernel" at disk "cfid0" starting at 0x00040000, but end position must be searched by the key ".!/bin/sh", from offset 0x00100000 to end of media with step 0x10000. Real marker in that case is "#!/bin/sh", but "#" @@ -166,7 +166,6 @@ hint.map.5.start=0x007e0000 hint.map.5.end=0x00800000 hint.map.5.name="config" .Ed -.El .Sh SEE ALSO .Xr GEOM 4 , .Xr geom 8 ,