[{"id":1766817,"web_url":"http://patchwork.ozlabs.org/comment/1766817/","msgid":"<f9faf126-de8b-e6c8-4354-50d39c5ca185@denx.de>","list_archive_url":null,"date":"2017-09-12T09:29:54","subject":"Re: [swupdate] [PATCH 3/3] tmpdir: adapt documentation","submitter":{"id":5771,"url":"http://patchwork.ozlabs.org/api/people/5771/","name":"Stefano Babic","email":"sbabic@denx.de"},"content":"On 08/09/2017 15:45, Christian Storm wrote:\n> Adapt the documentation to mention the use of $TMPDIR\n> and /tmp as a fall-back if $TMPDIR is unset.\n> \n> Signed-off-by: Christian Storm <christian.storm@siemens.com>\n> ---\n>  doc/source/swupdate.rst | 9 ++++++---\n>  1 file changed, 6 insertions(+), 3 deletions(-)\n> \n> diff --git a/doc/source/swupdate.rst b/doc/source/swupdate.rst\n> index 883ca45..4df0b6b 100644\n> --- a/doc/source/swupdate.rst\n> +++ b/doc/source/swupdate.rst\n> @@ -172,7 +172,9 @@ the image that must be installed.\n>  \n>  The feature can be set on image basis, that means that a user can\n>  decide which partial images should be streamed. If not streamed (see\n> -installed-directly flag), files are temporary extracted into /tmp.\n> +installed-directly flag), files are temporary extracted into the directory\n> +pointed to by the environment variable ``TMPDIR`` with ``/tmp`` as\n> +fall-back if ``TMPDIR`` is not set.\n>  Of course, by streaming it is not possible to make checks on the whole delivered\n>  software before installing.\n>  The temporary copy is done only when updated from network. When the image\n> @@ -181,8 +183,9 @@ is stored on an external storage, there is no need of that copy.\n>  Images fully streamed\n>  ---------------------\n>  \n> -In case of remote update, SWUpdate extracts relevant images\n> -from the stream and copy them into /tmp before calling the handlers.\n> +In case of remote update, SWUpdate extracts relevant images from the stream\n> +and copies them into the directory pointed to by the environment variable \n> +``TMPDIR`` (if unset, to ``/tmp``) before calling the handlers.\n>  This guarantee that an update is initiated only if all parts are present and\n>  correct. However, on some systems with less resources, the amount of RAM\n>  to copy the images could be not enough, for example if the filesystem on\n> \n\nApplied to -master, thanks !\n\nBest regards,\nStefano Babic","headers":{"Return-Path":"<swupdate+bncBAABBFWS33GQKGQEKB5Z3VQ@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=googlegroups.com\n\t(client-ip=2a00:1450:4010:c07::23c;\n\thelo=mail-lf0-x23c.google.com;\n\tenvelope-from=swupdate+bncbaabbfws33gqkgqekb5z3vq@googlegroups.com;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlegroups.com header.i=@googlegroups.com\n\theader.b=\"CR0awcr4\"; dkim-atps=neutral"],"Received":["from mail-lf0-x23c.google.com (mail-lf0-x23c.google.com\n\t[IPv6:2a00:1450:4010:c07::23c])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrzzF3lksz9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 19:30:01 +1000 (AEST)","by mail-lf0-x23c.google.com with SMTP id l196sf279431lfl.10\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 02:30:01 -0700 (PDT)","by 10.46.5.69 with SMTP id 66ls65752ljf.10.gmail; Tue, 12 Sep 2017\n\t02:29:58 -0700 (PDT)","from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10])\n\tby gmr-mx.google.com with ESMTPS id\n\tb203si704417wmh.4.2017.09.12.02.29.58\n\tfor <swupdate@googlegroups.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 02:29:58 -0700 (PDT)","from frontend03.mail.m-online.net (unknown [192.168.6.182])\n\tby mail-out.m-online.net (Postfix) with ESMTP id 3xrzzB0x57z1qvnP;\n\tTue, 12 Sep 2017 11:29:58 +0200 (CEST)","from localhost (dynscan3.mnet-online.de [192.168.6.84])\n\tby mail.m-online.net (Postfix) with ESMTP id 3xrzzB0kL6z1qsQH;\n\tTue, 12 Sep 2017 11:29:58 +0200 (CEST)","from mail.mnet-online.de ([192.168.8.182])\n\tby localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new,\n\tport 10024)\n\twith ESMTP id R9N07rwK37Tp; Tue, 12 Sep 2017 11:29:57 +0200 (CEST)","from babic.homelinux.org\n\t(host-88-217-136-221.customer.m-online.net [88.217.136.221])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mail.mnet-online.de (Postfix) with ESMTPS;\n\tTue, 12 Sep 2017 11:29:57 +0200 (CEST)","from localhost (mail.babic.homelinux.org [127.0.0.1])\n\tby babic.homelinux.org (Postfix) with ESMTP id D4D1945405CE;\n\tTue, 12 Sep 2017 11:29:56 +0200 (CEST)","from babic.homelinux.org ([127.0.0.1])\n\tby localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new,\n\tport 10024)\n\twith ESMTP id W1SRNouiKgNl; Tue, 12 Sep 2017 11:29:54 +0200 (CEST)","from [192.168.178.132] (papero.fritz.box [192.168.178.132])\n\tby babic.homelinux.org (Postfix) with ESMTP id 8979E45405CD;\n\tTue, 12 Sep 2017 11:29:54 +0200 (CEST)"],"ARC-Seal":["i=2; a=rsa-sha256; t=1505208598; cv=pass;\n\td=google.com; s=arc-20160816;\n\tb=d6x2isbYlFON72UFcyJv3rVwZNgWjLYQUeuVPm7yN2ILvhiL2rBd4kwE22H+sPE3Yg\n\tLCWosJRYVsiIFOoGGFYgdSQFRUbJR3l9AnbsAMlZrAdjRa7C/tFccc/iMyYUcJsOm1IC\n\t5WHRqQ2cDWZdDf7qXwcbB0WCrrKcyIvc1kfUwZoFqKYqa55J0KL4XVH1bBUMmdh567Cl\n\t8lTVtay9/ntlTbhUsgRIuXZANm2ddQzmr/V9yuCVZ9djExKDfvuVgq7oKvCRBLc/FUrt\n\twR//OhW6/BRy5P7T1plLj/UNmpRAOeG1rgXxNapJlOycHOgEfBuMOcJ/q/iCIZ6RLyZQ\n\tnCcQ==","i=1; a=rsa-sha256; t=1505208598; cv=none;\n\td=google.com; s=arc-20160816;\n\tb=VnWD7z7dCKc1YLTuDnuySt8IpEKDL7mnAAyX5cg68wcoX7QZf9iv5YLNniG/ZhWvvO\n\tOKeTMq6xElvw3cMLsALm4x1Vpx5RerNMomXpB2mbjTx3ZyGgUn4MuXQPN/1CX6fCWreZ\n\t54GKM0qOKYCKwiQMmrPliRKy5uRDGvVJbkRVXHxCnEQKby4svR+dzFrjqxPKpoZZ1jNm\n\tVfrB/EFJMZo/AEOPFtAPmnuWhIwHQvSQ3juqEBm7AqZU8OIk+2kJk3FQ0a3jpN+hEBnq\n\t0mNxbunB1QY90cNj/bTFsEWvKJ2zz4CJiCHnFzsMKdZoB0hOc98YIcforWLknIBHRo5m\n\ts+gQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n\t:list-id:mailing-list:precedence:content-language:in-reply-to\n\t:mime-version:user-agent:date:message-id:from:references:to:subject\n\t:arc-authentication-results:arc-message-signature:sender\n\t:dkim-signature:arc-authentication-results;\n\tbh=yaLphXPYf9oSsxd2IQKm5YtXfOtG1phe+isacX62sww=;\n\tb=M2zC2VxJimlJ6MzfWXigJ2XIz+BRq+1zRaR6i7GQbAoq5HEcNmc7arZf5bVEM5+zEC\n\t8yaukupDNVWzlWHlRFvIzUM2YPkH0uWWRnwIdwjGE9Zyf2eg8LB0yvTUVtDMg08hatgI\n\t93TlmqDixI5ic1y37vRRptVnW0GuSZdxtf/goEcfLfZ6svBll3G+aQXn3UaaYTs28kA1\n\tPrqBy34zSpn0ALfdZ0eVOmnM5ErqA7lAajmOS+xBYMsiYYQpfVhXY/tBlfdRtZIKqVt+\n\tf3WvjJXx+Mpwj6sb9L0zGEdYoGo6s5JwQLhDYdUhAEFBPgm3jdY/f2O4QahDxxaU6rDd\n\tXzKg==","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=arc-20160816; \n\th=content-transfer-encoding:content-language:in-reply-to:mime-version\n\t:user-agent:date:message-id:from:references:to:subject\n\t:arc-authentication-results;\n\tbh=ceXeQqBtbMMUeNbIvouBMUdlqCNdGwpQP/f+qbfaV5g=;\n\tb=jVoI6HvRTfA/Slau1QvLhvfQ3Bj6hqdcho5zbXVwiV6CKSxD916hN0Xnsk/jvNsguK\n\tubkOkvt7cyTzyBt2Ty7HUWdssYqrFXs/Daigs7Ocn45r+qm5CIgDmVcaNgl4ejgsOS80\n\tGyWh2tPwFlWHed+5XqcWmV5l0L5zTVhHfnUwyp7mM7XWREjU1x+vdKauCRdp9nyus0YE\n\tiMRk6y/XgTixZ761DjMiPAiK1K7EWARQ3Taza7QusO6Ug1OEiXxx+nhNK9BTDwM0RNct\n\txwWPmfgcnjmOY1HQ5tGEjWtFDPoDuzMcivJDnMYKfv7sOXh+/wNA8aoAxK9NVG43bRBn\n\tzSJA=="],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n\tspf=neutral (google.com: 212.18.0.10 is neither permitted nor denied\n\tby best guess record for domain of sbabic@denx.de)\n\tsmtp.mailfrom=sbabic@denx.de","i=1; gmr-mx.google.com;\n\tspf=neutral (google.com: 212.18.0.10 is neither permitted nor denied\n\tby best guess record for domain of sbabic@denx.de)\n\tsmtp.mailfrom=sbabic@denx.de"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlegroups.com; s=20161025;\n\th=sender:subject:to:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:x-original-sender\n\t:x-original-authentication-results:precedence:mailing-list:list-id\n\t:list-post:list-help:list-archive:list-subscribe:list-unsubscribe;\n\tbh=yaLphXPYf9oSsxd2IQKm5YtXfOtG1phe+isacX62sww=;\n\tb=CR0awcr4idKMHCoTOoYHX6uEwfeOSDQM32Dh0TeyFNN+rt7GJwGWmHeXP0u/VRGB5O\n\tH4/ApGhSOk3YV6Lv0uTaTxPcrS3mjgg9Moqwa91lUgTZe+/n9rp4N+t5ghSlSFqD3ijv\n\tLPrfPoX+q+xm9HL98WmHM39fQCFq8dCmMcmZXArEogNFlYWQoIUL4WgysoAKTPRCX2qy\n\tt8xybOBYK5QjIohGHz4LiUVtkp7pI+NIfeeaUJZDyOU2dPaLMahP0MqsgXTzDS/Fgwc5\n\tAqBQKRtWC+1NaueyMKcWB1cEnrYQ4Cgh0aNMpAh5oI9JoCkidID2/vAd/jn2ZQHoCe5/\n\tapkg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=sender:x-gm-message-state:subject:to:references:from:message-id\n\t:date:user-agent:mime-version:in-reply-to:content-language\n\t:x-original-sender:x-original-authentication-results:precedence\n\t:mailing-list:list-id:x-spam-checked-in-group:list-post:list-help\n\t:list-archive:list-subscribe:list-unsubscribe;\n\tbh=yaLphXPYf9oSsxd2IQKm5YtXfOtG1phe+isacX62sww=;\n\tb=nZk4VcbA6x9hMW5r1pV/qkUXnemNkgtK5nzJHMvs5J/Mg2kRqJltCI8+v9sNtHCwkB\n\t5wjOys50m1+crcRQ0p6XuAaJc2cZadcnTkIfrRz+qIoNJqJiauzSj3ESn89evGi+ZQlb\n\tYYGA4jRGmnhFNrvuKwW5pTWBk4qOaUWRiVDXMOc8s9ZHR2tqlYVMXg7cM3+RtONscKA4\n\tk3OrTIeMlUHbfA59urR5+2fHHwZgHsuG2cnBFLc/aOdXqUSol6t/Qv/xVSaX7POlB0x3\n\tIx59ERNcgH6LxsjzBPErA2teM7XHmoD0VaiN47Nj7ZeYDp/XFQJIvYCX5CQBhDxkYnYn\n\tskOg==","Sender":"swupdate@googlegroups.com","X-Gm-Message-State":"AHPjjUgLl5aNi0nnRwR1VikbGxpl5sKi1MT0ggLaapUN9+vqfEsggKx7\n\t9m4oMDuIp2iEEg==","X-Google-Smtp-Source":"ADKCNb6E99pTPglQRYsuBeHk2Kk9w6UugK1Su1yOHsDW4yJv3RGLLxvdjm+WN2eJeJJScaqentOkBQ==","X-Received":["by 10.46.32.129 with SMTP id g1mr28373lji.18.1505208598637;\n\tTue, 12 Sep 2017 02:29:58 -0700 (PDT)","by 10.46.80.25 with SMTP id e25mr1057554ljb.10.1505208598350;\n\tTue, 12 Sep 2017 02:29:58 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com","Received-SPF":"neutral (google.com: 212.18.0.10 is neither permitted nor\n\tdenied by best guess record for domain of sbabic@denx.de)\n\tclient-ip=212.18.0.10; ","X-Virus-Scanned":["amavisd-new at mnet-online.de","Debian amavisd-new at babic.homelinux.org"],"Subject":"Re: [swupdate] [PATCH 3/3] tmpdir: adapt documentation","To":"Christian Storm <christian.storm@siemens.com>, swupdate@googlegroups.com","References":"<20170908134547.9170-1-christian.storm@siemens.com>\n\t<20170908134547.9170-3-christian.storm@siemens.com>","From":"Stefano Babic <sbabic@denx.de>","Message-ID":"<f9faf126-de8b-e6c8-4354-50d39c5ca185@denx.de>","Date":"Tue, 12 Sep 2017 11:29:54 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<20170908134547.9170-3-christian.storm@siemens.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Language":"de-DE","X-Original-Sender":"sbabic@denx.de","X-Original-Authentication-Results":"gmr-mx.google.com;       spf=neutral\n\t(google.com: 212.18.0.10 is neither permitted nor denied by best\n\tguess record\n\tfor domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n\tcontact 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>,\n\t<mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n\t<mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n\t<mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"<mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n\t<https://groups.google.com/group/swupdate/subscribe>"}}]