From patchwork Mon May 17 18:13:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Drewry X-Patchwork-Id: 100173 X-Patchwork-Delegate: agk@redhat.com Received: from mx02.colomx.prod.int.phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4HIGZIx004847 for ; Mon, 17 May 2010 18:17:10 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx02.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4HIEDtd017683; Mon, 17 May 2010 14:14:17 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4HIE6Rm006132 for ; Mon, 17 May 2010 14:14:06 -0400 Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.7]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4HIE0I6014991; Mon, 17 May 2010 14:14:00 -0400 Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4HIDpuT026992; Mon, 17 May 2010 14:13:52 -0400 Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id o4HIDoje016910; Mon, 17 May 2010 11:13:51 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1274120031; bh=r8To0oh+ZJgk10Dszy/59x3EieA=; h=MIME-Version:Sender:In-Reply-To:References:Date:Message-ID: Subject:From:To:Cc:Content-Type:Content-Transfer-Encoding; b=q4cLmxJbTvpNGkCSlVfTePGtVt4KBg+RP4rR4BJ4IuVc3WMJQ5PhITQ+OehXlm4he gIq25w7AryuSI8XEG3DMQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:sender:in-reply-to:references:date: x-google-sender-auth:message-id:subject:from:to:cc:content-type: content-transfer-encoding:x-system-of-record; b=hhIu6WSlZikR7onxmx/o6ai36523jXREMINbNfEyW0/Kw/2poiubh1Zn2+WNhO3qc ffGW7c+l0jI+tg6o16PDA== Received: from gyf1 (gyf1.prod.google.com [10.243.50.65]) by hpaq11.eem.corp.google.com with ESMTP id o4HIDmHE002568; Mon, 17 May 2010 11:13:49 -0700 Received: by gyf1 with SMTP id 1so2706067gyf.35 for ; Mon, 17 May 2010 11:13:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.62.14 with SMTP id k14mr6297539yba.35.1274120028389; Mon, 17 May 2010 11:13:48 -0700 (PDT) Received: by 10.151.124.10 with HTTP; Mon, 17 May 2010 11:13:48 -0700 (PDT) In-Reply-To: <20100517094724.48632380.randy.dunlap@oracle.com> References: <20100514035347.GA20636@redhat.com> <1273887701-2152-2-git-send-email-wad@chromium.org> <20100517094724.48632380.randy.dunlap@oracle.com> Date: Mon, 17 May 2010 13:13:48 -0500 X-Google-Sender-Auth: cDYTZ9HSz9dRCgKA1zkpu-3u4yA Message-ID: From: Will Drewry To: Randy Dunlap X-System-Of-Record: true X-RedHat-Spam-Score: -2.312 (DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.7 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id o4HIE6Rm006132 X-loop: dm-devel@redhat.com Cc: dm-devel@redhat.com, snitzer@redhat.com, linux-kernel@vger.kernel.org, agk@redhat.com Subject: Re: [dm-devel] [RFC PATCH v2 2/2] init: boot to device-mapper targets without an initr* X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 17 May 2010 18:17:11 +0000 (UTC) diff --git a/Documentation/device-mapper/boot.txt b/Documentation/device-mapper/boot.txt new file mode 100644 index 0000000..00fb557 --- /dev/null +++ b/Documentation/device-mapper/boot.txt @@ -0,0 +1,36 @@ +Boot time creation of mapped devices +=================================== + +You can boot directly to a dm device using the following kernel command +line: + +dm=" ,table line 1,...,table line n" + +name = the name to associated with the device + after boot, udev, if used, will use that name to label + the device node. +uuid = may be 'none' or the UUID desired for the device. +ro = may be 0 or 1. If non-zero, the device and device table will be + marked read-only. + +Each table line may be as normal when using the dmsetup tool except for +two variations: +1. Any use of commas will be interpreted as a newline +2. Quotation marks cannot be escaped and cannot be used without + terminating the dm= argument. + +Unless renamed by udev, the device node created will be dm-0 as the +first minor number for the device-mapper is used during early creation. + +Example +======= + +- Booting to a linear array made up of user-mode linux block devices: + + dm="lroot none 0, 0 4096 linear 98:16 0, 4096 4096 linear 98:32 0" \ + root=/dev/dm-0 + +Will boot to a rw dm-linear target of 8192 sectors split across two +block devices identified by their major:minor numbers. After boot, udev +will rename this target to /dev/mapper/lroot (depending on the rules). +No uuid was assigned. diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 839b21b..9e22f8e 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -43,6 +43,7 @@ parameter is applicable: AVR32 AVR32 architecture is enabled. AX25 Appropriate AX.25 support is enabled. BLACKFIN Blackfin architecture is enabled. + DM Device mapper support is enabled. DRM Direct Rendering Management support is enabled. EDD BIOS Enhanced Disk Drive Services (EDD) is enabled EFI EFI Partitioning (GPT) is enabled @@ -654,6 +655,9 @@ and is between 256 and 4096 characters. It is defined in the file Disable PIN 1 of APIC timer Can be useful to work around chipset bugs. + dm= [DM] Allows early creation of a device-mapper device. + See Documentation/device-mapper/boot.txt. + dmasound= [HW,OSS] Sound subsystem buffers