From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=eM/OKjFKxFDLCf7snYbbtFqZTalJUwzYdYaHHES38Hc=; b=b8pnHQqnfchXdNIGwnfQycv885ZrSg8jwMzuRLY6skbLCJdmfd99EKW3xEH0EHNwob VRwD4dR/lmx7mtX/iesY+0MPSyCwGHKGLphoB78yqP4hB3EK8CfehwBB7bqmIMTBcZpj pIt3PCZf0RDyhZhAviF+jzUYpZ/YxiZjRDwMdLDw392WNIL3pJxD8lVb4+QED6kIbGXX PCWq+U6RXpGXL146GknormDyDhsc3O836RavtKTv5C0C8Rj3M7Elvqqfly2BhlNM6a3f updveM+goyCuP3jkH8oo//DlT9itAyvzJ/usl02Rkhc4GbC6/XmF+zYonbcYSO0ySXLH Qwrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=eM/OKjFKxFDLCf7snYbbtFqZTalJUwzYdYaHHES38Hc=; b=pnnWNXwV5uxSfnB6BcpNYeksk+gr3aCAzjbCYE5WdcUEnVU7Nt28hYzf7DUMLSQBmf 8Mmgb8TpGda7FHnEfqKrcI+IvxYyfxhEZoC78o8cxj/shGFLCaKEaNLAu81v1cRk5XQd ebJbrrNYxobJDENg53xKTdjZOIBRQ5j6W0vAB9zG0V0/uSTK/N33D5vWlhBIZ396uuji WCt4Zj72MZuuogS9paaHZxPeq5uJL9WCKowR3hfmZcsrwMjWWo2CMQttjKeSnWPmZVFv hNAhGqBX8NfBQELhHkkj2Nu3HlAORON5ullWcnnEYWm7wFsyVW0nZB5GbclYFyz0Tilj VgNw== X-Gm-Message-State: AOAM530p1AgBZkC6OSizqramXnk2cVTTPj/zKiIgSf6co8T7w98kqOmq OPb30m7YErEep/+lkOzmwmfXjMuTI5Q= X-Google-Smtp-Source: ABdhPJw+vIfQdOM0uIAwkRT5Ex8IbF22B6JqJiA9hmlUbgyPcaGhbltex/NHV84OKDozKGLfHdyzBA== X-Received: by 2002:a2e:901:: with SMTP id 1mr15477316ljj.333.1635560030291; Fri, 29 Oct 2021 19:13:50 -0700 (PDT) To: make-initrd@lists.altlinux.org References: <20211024172128.744EFA5E4C@lists.altlinux.org> <20211026111221.2bay4wh2xfvxq2vr@example.org> <5fea746a-25c2-01ee-3403-ed4a4815968f@gmail.com> <20211026135834.wvsbihztce6466sz@example.org> From: Leonid Krivoshein Message-ID: <2f91b485-6744-cd07-b1b8-46fcb250c713@gmail.com> Date: Sat, 30 Oct 2021 05:13:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru Subject: Re: [make-initrd] [PATCH v6 10/22] bootchain-core: expanded addressing capabilities X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2021 02:13:53 -0000 Archived-At: List-Archive: 30.10.2021 2:50, Gleb Fotengauer-Malinovskiy пишет: > On Tue, Oct 26, 2021 at 03:58:34PM +0200, Alexey Gladkov wrote: >> On Tue, Oct 26, 2021 at 02:28:53PM +0300, Leonid Krivoshein wrote: >>> 26.10.2021 14:12, Alexey Gladkov пишет: >>>> On Sun, Oct 24, 2021 at 08:21:28PM +0300, Leonid Krivoshein wrote: >>>>> Adds support for reverse addressing relative to the current step, >>>>> as well as calculating the path to the special device node obtained >>>>> in the previous step. >>>>> >>>>> Signed-off-by: Leonid Krivoshein >>>>> --- >>>>> features/bootchain-core/README.md | 6 +++ >>>>> .../data/bin/bootchain-sh-functions | 37 ++++++++++++++++--- >>>>> 2 files changed, 38 insertions(+), 5 deletions(-) >>>>> >>>>> diff --git a/features/bootchain-core/README.md b/features/bootchain-core/README.md >>>>> index 8d341e0..ba66259 100644 >>>>> --- a/features/bootchain-core/README.md >>>>> +++ b/features/bootchain-core/README.md >>>>> @@ -49,6 +49,12 @@ us to optimize fill in `initramfs` only which we are need. >>>>> - Modularity: loading methods are initially separated from the common >>>>> code and daemon. >>>>> +- Via resolve_target() supports not only forward, but also reverse addressing, >>>>> + relative to the current step. For example, a record like `step-3/dir1/dev` >>>>> + will process the result of `dir1/dev`, made in the third step from the current >>>>> + one. Together with the overload of the chain of steps, direct addressing is safe >>>>> + only when storing the numbers of the completed steps in files, whereas reverse >>>>> + relative addressing it is safe in any case and can often be more convenient. >>>> На мой взгляд очень непонятный синтаксис. step1 и step-1 кажется >>>> одинаковым. Хотя бы current-1 >>> OK. Давай переделаю так: >>> >>> step = pipe -- прямая адресация, так первоначально и было. >>> curr- -- обратная относительная адресация. >>> >>> Так будет лучше? >> Мне будет понятнее. Но я хотел бы спросить помощи зала. >> >> Глеб, Антон, как вы думаете, как будет понятнее ? > Если из предложенного выбирать, то curr- однозначно лучше. > > Но мне кажется, что тут - не читается как минус. Я бы скорее предложил > что-то вроде prev или back. Отлично, тогда переделаю на back ! Как я понял, по остальным моментам Алексей пока взял паузу... -- Best regards, Leonid Krivoshein.