Message ID | 20211011112156.44192-26-sbabic@denx.de |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBA55SCFQMGQECDJOJRQ@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=S7lrjFR0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13f; helo=mail-lf1-x13f.google.com; envelope-from=swupdate+bncbcxploxj6ikrba55scfqmgqecdjojrq@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-lf1-x13f.google.com (mail-lf1-x13f.google.com [IPv6:2a00:1450:4864:20::13f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HSbxg2YtMz9sPf for <incoming@patchwork.ozlabs.org>; Mon, 11 Oct 2021 22:22:47 +1100 (AEDT) Received: by mail-lf1-x13f.google.com with SMTP id o5-20020ac24c45000000b003fd932e4642sf1330602lfk.14 for <incoming@patchwork.ozlabs.org>; Mon, 11 Oct 2021 04:22:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633951363; cv=pass; d=google.com; s=arc-20160816; b=zMHzBIVNH9m7OamWaJ1NltmaCYU9HBRNIVZuhSmZ2cP98gYuqlB0/MVagp9MPiwOMh WSHs5wMvls7Idyf31EMD9cFQUQ4U8+Dn4NBIMkXNwTxI1u5o5LjG1vvIuNePxRmxmzTk oZ3nCgniHcqLGuIVvnV7LBcg5u5x1/QL9IerZAUZhglhWU35W9r0w1Jc6h8d4Er0yq3b pBFgLJXVFCHJu9iSBLkdJHbqghJV016CJV6ybNKErTmm/fkrI/kpeE+wAxhLXVv/VJXz lRhF4bJJ1jCsPOHMhpEbni8UBJVOrCNhHA5sstSY/1pDBacua0SQnu4p1YXvr5zg6bxp EOdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=baVxraYTugkHciRovRIYhZXw771Gsg+bYjQTewI+z7w=; b=O3Ki6ugceNXs5njyNIGUwu3jVD23CPX9pzQ/o1oDbtiNSfj+u/nKRd2cpO4ccJtzz3 zx4XjR2e9rct8Jk8Db1NpRmZKRHLItYTDtCp/Wl1IIleiL+3jGEd0bH+xPXVf/FbAVVO 9u69yEpCvTYPSeYSn8NnbaHxWXG3r6bv/y55kQ47WHG+G7eoaWxT/swHK5HpzdnuwlwI nyte1Cgy4hEWlWrZhmuM1GjGYvhPAemBSYRZsAHViFi5yi5DI+x3TLkgpufiF7u237ae nXTldrUGJJzGb76WDJL8yGU3YMWJPPZmwIYk/ShR4F2TAIMworG7Q5tj9KmFBgGpxoh+ YYag== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=baVxraYTugkHciRovRIYhZXw771Gsg+bYjQTewI+z7w=; b=S7lrjFR0ihOJLg8+84MP25IjmPuVLNpkIWyeSNItzptsr2VJssb9vMWqB3xIuM7qZp tsRTdRvV8rgRmx8F4Iy8dvgwFLiCLxE4LZDeSRv4iOaKJkXEUEaQdAzPG+4vsVsavE5k 1s1RmRqm20LfxjCbFVqDoIdcbTVs0to5muLkJLZxJorMRgpcbH7alKtGSrZKajziLxmC KvRr3RGvfWQgJ2mmHE3pvgTHJzVnw75RETGtkF56QXOV5kUYi4fI8BmMEqk45V0+MvxW B3OBx878xS3wHlkqZBQENGJYR/NNQ9I6YaArumSR39Lh1Velw5HXll6wPz+bXLHc51I6 M6lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=baVxraYTugkHciRovRIYhZXw771Gsg+bYjQTewI+z7w=; b=ouz4ev3SObLm/cCy2FA14uUJEOslv2QWHMqQghDbrGV5vq50lfpkjLZgKyt6ci7PqG QPlNzO52RsYI19xer5x7gPGqkmT+1E5H47GQlRDhw3/np+6hB3Z04MfnHNZGeciSp5+P I7GYfqH5buy13fsez2pz4x9XSjtaCatrjlPjyZvwQ+sr7SDNSXJgm9b80lVNInTynQm7 iwVy9584XXlZtEZf0XO0SltzlKPF5yx5Wrwe+P2giyFVSpmvqkPO9Lj6ULLmRFxphkQ5 6tSbGvZGXS+XhzoZmbaY79XTXInlt/gwUaLkgONett2bDLO23+XJeYbkpf15xJAmT+yD vz9g== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5318NV5KEY6k8w/k6xjrYykwC7IXYPfLC8nGIznx579d656t06Iv vFwXJ/0vB/SNWyFyZQvCtek= X-Google-Smtp-Source: ABdhPJypHZSPIiLYRBDxd17nqOpgHBoWl5daARp82eM1FGZuvjdKMng2DS+gO47DXk/BJVQuqNmLww== X-Received: by 2002:a05:6512:3341:: with SMTP id y1mr26677407lfd.176.1633951363804; Mon, 11 Oct 2021 04:22:43 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:3f14:: with SMTP id y20ls92110lfa.1.gmail; Mon, 11 Oct 2021 04:22:42 -0700 (PDT) X-Received: by 2002:a05:6512:2291:: with SMTP id f17mr23168708lfu.253.1633951362912; Mon, 11 Oct 2021 04:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633951362; cv=none; d=google.com; s=arc-20160816; b=P5G4y7eq2lvPxu4zVd2L6JLDXzCVZeyou6WqiKLqeKTxHyS9aNHn2QMFlJHy6JSc6V EnzZcC3jhZM+BiD0w/FpZhYU+ib1fBhu+9c456OLxOZiOcpa61LJAiRZ8YWShRtnBd0Z jVsgVQf3LF/FKc7ychG+eaKOd4z+Ffu+lmzEPhvb8KC6SRqBPzYqScaVFOhKWLo2G5t2 p7YzCj5a6LUC86puGFxPOzIv/OAlwaWzbrQ0NV26l/6PZIE5qDqqO53g3l+IVtfHV8/U 5wNWdci9bemsIDOQKVBbJomuzPAR3kPlA8o5TdmX6WTN4edpYtFzEn5X+4thxdOUjYgH lR+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Nj1wGz/oTaleAdEJpDhp7ezlBtBLPBP/F9ADlIYihVk=; b=0iDG7ReaaFMRlY23X46ULnKA4HffDsOs5Bs0M65zaOXIms31n/KzEgKN8SQUff4DGe Q2g3MAPADtFes6k7vN8292Qjk3KdbSDDFs3MkF9Rt5xmrvOn6iCcFeAkuUB1FsoyjYuD O8VxooPapVPz2YZdIWRUqSwgPlaY8b5ryRYarPV9RSBai4fBB5JTOfMUDuZvdqi8g1Jk n1W8BfWkKSjEI37ki46CucWAfbVgyAh4smNwg+fNHkA8HeGr+G4KK1z19kvrnwW5pJKA udxsSbtxwFJ23g1b/tWgxxZKNnf+L4wUPG+U7Qi6f3vE/KdfLAS18ogmyUje9mvAUUsh /5dw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id g28si422078lfv.3.2021.10.11.04.22.42 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Oct 2021 04:22:42 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HSbxZ37Qgz1sByw; Mon, 11 Oct 2021 13:22:42 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HSbxZ31Dxz1qqkB; Mon, 11 Oct 2021 13:22:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 35Ne6FfoKjec; Mon, 11 Oct 2021 13:22:41 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Mon, 11 Oct 2021 13:22:41 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 610994540BF1; Mon, 11 Oct 2021 13:22:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7GzIX8yZD_OE; Mon, 11 Oct 2021 13:22:38 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 2964745427AB; Mon, 11 Oct 2021 13:22:07 +0200 (CEST) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH 25/29] Start chunks downloader if delta is enabled Date: Mon, 11 Oct 2021 13:21:52 +0200 Message-Id: <20211011112156.44192-26-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211011112156.44192-1-sbabic@denx.de> References: <20211011112156.44192-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
DELTA Update
|
expand
|
diff --git a/core/swupdate.c b/core/swupdate.c index a31aeb1..a83a5bf 100644 --- a/core/swupdate.c +++ b/core/swupdate.c @@ -41,6 +41,7 @@ #include "network_ipc.h" #include "sslapi.h" #include "suricatta/suricatta.h" +#include "delta_process.h" #include "progress.h" #include "parselib.h" #include "swupdate_settings.h" @@ -843,6 +844,17 @@ int main(int argc, char **argv) freeargs(dwlav); } #endif +#if defined(CONFIG_DELTA) + { + uid_t uid; + gid_t gid; + read_settings_user_id(&handle, "download", &uid, &gid); + start_subprocess(SOURCE_CHUNKS_DOWNLOADER, "chunks_downloader", uid, gid, + cfgfname, ac, av, + start_delta_downloader); + } +#endif + /* * Start all processes added in the config file
Start the downloader process if delta is activated. The process is monitored by SWUpdate. Signed-off-by: Stefano Babic <sbabic@denx.de> --- core/swupdate.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)