Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp297500imm; Tue, 25 Sep 2018 22:03:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV63AITLn7KIsRtD8IU0hTF4wMulmmzSaidlx8/M/T9hKNMv8pNuUfojeAnz4Avk9DnvYH1S1 X-Received: by 2002:a17:902:b68a:: with SMTP id c10-v6mr4137471pls.167.1537938224114; Tue, 25 Sep 2018 22:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537938224; cv=none; d=google.com; s=arc-20160816; b=lS0uaIkXdlr5HOgk4ZGtKRtPmOsW8lPqNHu3Y+vpe7xnmN2oktuGmnKxW6K4GYwKoH r49u8LHCTdDR42vV5vT2+mIxSw9YsX50YmwN6jIRfVRyug6ldF3khGi2s9BeLBFvR9sw X9Ow4nC7mJXLqosD4pA99hfO0rD5j6hD8jdZZ81G3scWXIzE6eFd0DbN0SdYeHQ5tsoH eFbchhNWb4BcZXt9pE6t5fg3FAz+q9FnnE6C5QvzK0n389bNkXh1iOm+Nzqv1vJ5NOXp p6NPUXQa7dWMmLg/UMSbTD+mt6BJ9RvcQK9hjhVV/EIaSs7KB5nbPa9LjZt4bVO5XliS q8AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:references:cc:to:from:subject; bh=RCKqZR6kFsBaBUR1H+J/H2DD1axQAIPYVF2wtJswe+Y=; b=WFDja/Vo/gOz72415NBK5McqugjPQ+CLlPGwJVaAf+8pqa6DG2UYd74F6jG0nHoi+7 XMHPxhWQTueAP53jVqRRTdAJ25AbvRlIalTpcvunDJwqsNLN2fW9knYEeHdREiCQ6yHU Y1aBgITei3mU43GJDLcEGo6zRDvn1vBGdpmlfr19EptpbGYhzvES0SheHfAhr1YxSF7Q e02PZ9kaxIjxJUPHcht9l5LdiCLtpxAU1f6dVL6XfbNj8VceQULEJuRJbIOLZKmVMEJX YCvm9VSeMAMhIcCCYOwMIxBtKcuPCcxa1AjUB57MnmuBzrqW9SuwGbTUqbKtwK2LSHya bOkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2-v6si4355899pgk.330.2018.09.25.22.03.28; Tue, 25 Sep 2018 22:03:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726431AbeIZLNm (ORCPT + 99 others); Wed, 26 Sep 2018 07:13:42 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53574 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbeIZLNm (ORCPT ); Wed, 26 Sep 2018 07:13:42 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id E186E263B51 Subject: Re: [PATCH 0/2] boot to a mapped device From: Helen Koike To: dm-devel@redhat.com Cc: agk@redhat.com, snitzer@redhat.com, linux-kernel@vger.kernel.org, enric.balletbo@collabora.com, wad@chromium.org, linux-doc@vger.kernel.org, linux-lvm@redhat.com, kernel@collabora.com References: Openpgp: preference=signencrypt Autocrypt: addr=helen.koike@collabora.com; keydata= xsFNBFmOMD4BEADb2nC8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W8P F4MD67guCrqrGWSynwzvwWNybEVWV/hykKLa5xtnG6uGUGSO1lnwxUAR17eGWqNwGXYCHpAP zboVPGxw4aUcR80AEQEAAcLBfAQYAQoAJhYhBKh9ADrOsi1cSAdZPMB+rCj3IWJdBQJZjjDJ AhsMBQkCxLJmAAoJEMB+rCj3IWJdY34QAMVy70677f9vXJsYVndP1xmnMYqnI5CEViQ3GP9W k8I2q8nUN3NHyjWe5Ro/UKlj03REymVdtSq7xBRAINQmfgVELvOBEJY6cO8JAujPl4EiJ0kL Y7D0+WfRrMvs/pR9jG7h3e3oG080ezRIkh9amGi1rj/uG39vpBc5avNpvOqqdwyCIyAQuG/Z 00CcD92WMQH3LmZkHJ0A5amZmVp/2NhWFIXnzMGCG+pnenYkYTs+nPwpEeF9aURlT3RQ6MEX te5bno0pQAZmJGlfxzPeId4BXGIlyCBGa8AYVcAH4byD/Lj1CWMuF/n+PQOloCMTUQsWuHJG WAFfICCspjVwzVDZMr3W3dKesrufYdXM0yVlXc39Zvx2sI94tMPaaFGvk758TQohg28OlPFD AxxgkCTrLa8OeJxNJFAz4cmmCWiZbm3SSYLzVFkNozQujL8c3y2U5yM3Tq7RmU9Djxh4s10p OoTFbIyky1af/kDLOBTNMXSNJ95+CDyH4g6rHhYJcjUribIgChGr7eLiSdQCpoyjcOe6n7ua NDLkOLQPocgjJb/AE46aMq67SVffqOTtLZZNPrSKnw/RVt7kbpRrcz5a45oX1x2kwYBBa//G cNC+diAifR6fnbn0lFc5oop99E0SCa0F4V/PYh6myRcqYH8huntTFLvBSYnG/tBYAeu1 Message-ID: <610d5f5e-ea07-631d-04d3-18fd3da0fe2a@collabora.com> Date: Wed, 26 Sep 2018 02:02:25 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/26/18 2:00 AM, Helen Koike wrote: > This series is reviving an old patchwork. > Booting from a mapped device requires an initramfs. This series is > allows for device-mapper targets to be configured at boot time for > use early in the boot process (as the root device or otherwise). > > Example, the following could be added in the boot parameters. > dm="lroot,,,rw, 0 4096 linear 98:16 0, 4096 4096 linear 98:32 0" root=/dev/dm-0 > > Enric Balletbo i Serra (1): > dm ioctl: add a device mapper ioctl function. > > Will Drewry (1): > init: add support to directly boot to a mapped device > > .../admin-guide/kernel-parameters.rst | 1 + > .../admin-guide/kernel-parameters.txt | 3 + > Documentation/device-mapper/dm-boot.txt | 63 +++ > drivers/md/dm-ioctl.c | 50 ++ > include/linux/device-mapper.h | 6 + > init/Makefile | 1 + > init/do_mounts.c | 1 + > init/do_mounts.h | 10 + > init/do_mounts_dm.c | 475 ++++++++++++++++++ > 9 files changed, 610 insertions(+) > create mode 100644 Documentation/device-mapper/dm-boot.txt > create mode 100644 init/do_mounts_dm.c > Sorry about sending this email multiple times, my git send-email wans't properly configured. Helen