From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7176574724112121856 X-Received: by 2002:a17:902:eb91:b0:189:eed8:89ce with SMTP id q17-20020a170902eb9100b00189eed889cemr10890758plg.77.1671000647072; Tue, 13 Dec 2022 22:50:47 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:62cc:b0:219:4318:f24e with SMTP id k12-20020a17090a62cc00b002194318f24els23260837pjs.0.-pod-control-gmail; Tue, 13 Dec 2022 22:50:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf65F1wvblDV8V11vh1+8m9EAtcevonb4zm8h0fY6wvo7b8dYRbuVrAYzagTM9p2Xoo50iBN X-Received: by 2002:a05:6a21:9213:b0:a4:8725:fdcd with SMTP id tl19-20020a056a21921300b000a48725fdcdmr29910775pzb.15.1671000646126; Tue, 13 Dec 2022 22:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671000646; cv=none; d=google.com; s=arc-20160816; b=GhdHaNSv4DgIJRI8EEDlNilAB4JZ6wvBjaHtuHNEwd8flJZGWldBye8CwkpJFQTM/7 HZramczZYrQVpR3qJZ0dGsmQeCc8M0bBPJFtnlszC3UQSbGyxVw4A0Lc4JspThAf443e Ka/0sHId1+p2zuvAANNeuyINxAV+tfFYc3OhL1kibx4bIfEos7HdU0zLft6UpGWGnPPy zW+etlEGIFoWAgzmwWBckStEmc14s10owj7LI58fwmeOk7XaDJdwC1EvzuHJ7luiNxwN p0hdnoy3rqJ5CnKcWrVdZyYtC9d2njNLv1eUgTTAOMvruj3zdolr9YnAp63DagsKoP4G pNqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=lndLyFdaqsKrECXt8yiey6ZA2O23PHvbl4H71tTQxYU=; b=HXLATuVTwQtMgwnfcG0viZwl2/aCJhmYCDTRZ7FDDNeTWSHy9Xk4Qir6hOzNsWh4LO uvXYAetIKMlkYX9Ykt/MWS8FHPUosda3WdwOw4KG7/Vs3CJgUSmsbcHSmzRYwa63vSxn YEmotHsq8QstVJ+V7Dm9/Lg9TSjobnLbrmVfTj9t7/pTOgoLGogXCZ0OCcSDgTwk9LFV AI8d5ayXeCDnjYThfyuxTJQmlvAg0sHXYZv/N2IiIe/b+RY7F9uMnXF5JKz91Ep0HiR3 HOUZAelHQJMG8grCJ6WC/WLkq8LG7yAnTTF2aaIqObCEgxfENdeZYQ2d0Y3SoVa0862X t06g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iUC5mffG; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::72b as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com. [2607:f8b0:4864:20::72b]) by gmr-mx.google.com with ESMTPS id f16-20020a170902ce9000b00186850a4ecbsi190016plg.10.2022.12.13.22.50.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Dec 2022 22:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::72b as permitted sender) client-ip=2607:f8b0:4864:20::72b; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iUC5mffG; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::72b as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qk1-x72b.google.com with SMTP id pe2so870599qkn.1 for ; Tue, 13 Dec 2022 22:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lndLyFdaqsKrECXt8yiey6ZA2O23PHvbl4H71tTQxYU=; b=iUC5mffG5yTcxYsArCcpLPFxsTLJowAitY6kI9ZOJNW0MubEbidVbkUisjmpyoUgfc /Q+za+aHC2fKnbqPfYBrLfnn+AK3lz6nu1lLW3+OqpCuNLdjf2vM6JC7t77WIxAHpdoH 1CBSKNRGDcqUvqloGsJKW3iNeV4AhBQNjupQa4NgjsBeTNI4nnLdYfmP/aX6k/c7r8WE Naecq2ZaHOMJONuvVt/OSIRHqY61bVG6ehrPgwcEHuqyEQIv0yFkbQQsvdKZEzQx8iLY uwjaq/89Dm/Qj3J872u+AprXjtpL3sj2IxxnAu7onvlv5jrmSR/Ay0ElZZgXIQiCCe3g 1nzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lndLyFdaqsKrECXt8yiey6ZA2O23PHvbl4H71tTQxYU=; b=6qAJL9ma4LHSQoYL8fjXUVFvMyJWOAVKX3uGivu9LACChmXXShJoT4wePgD43lNsks IWRXutj3JRv/0RlYbVBiqI+5ckW7ugHoMnSBlZ1kPHoaL7d1VqJw2DafIllb7K5uQeR6 Gf5T8S3tqCHY/fH+6aUWZL2aJjSeZ05O7B9a0Yad/JrvF9+3vE0ckHLxq/diEdZQWZ7j gbQir2jCJAXHxWeYTA6nC1q2tOR/8Kphecf/qt+zJBpe/tO/6ZgpRmmZzXdJHTNXo3gy j2V372wQC+t4WopfCmWrFAeXjs83Snz7bgQ2yYEBwlVPrfyXSSKCXvh80a4sw4yocqri SIpQ== X-Gm-Message-State: ANoB5plfFMQUspmKTHzA0r94XS/xwelm5cZyeF86ViJn31elxZoSYrYm PEGcAXHQeR4PzUj81/Qt9iGyASAFpOtdb9yXeQ== X-Received: by 2002:ae9:eb94:0:b0:6fe:d744:ec56 with SMTP id b142-20020ae9eb94000000b006fed744ec56mr9357638qkg.203.1671000645287; Tue, 13 Dec 2022 22:50:45 -0800 (PST) MIME-Version: 1.0 References: <20221213101509.535-1-henning.schild@siemens.com> <20221213101509.535-2-henning.schild@siemens.com> <20221213181805.0f369386@md1za8fc.ad001.siemens.net> <20221213220557.2d1544b0@md1za8fc.ad001.siemens.net> In-Reply-To: From: "Roberto A. Foglietta" Date: Wed, 14 Dec 2022 07:50:07 +0100 Message-ID: Subject: Re: [PATCH v4 1/5] expand-on-first-boot: support resizing a btrfs To: "Moessbauer, Felix" Cc: "Schild, Henning" , "isar-users@googlegroups.com" , "Joe_MacDonald@mentor.com" Content-Type: text/plain; charset="UTF-8" X-TUID: 7zquciDAdMja On Wed, 14 Dec 2022 at 04:33, Moessbauer, Felix wrote: > > What Felix tried to tell you was to use a variable like in my patch > > but using TMPDIR as the name of the variable. When that variable is > > not defined then "" is the default value. Now, what happens to mktemp > > when it is called with -p ""? Nothing bad, it simply performs without > > -p. Why was Felix pointing this out? Probably because in my patch tmp > > variable should be set if null but using mktemp this is not necessary > > anymore. > > No! Please also stop guessing what I could have meant and wait at least > a day for me to answer (instead of trying to convince others of your > interpretation of my opinion). > > The way Henning implemented it is exactly how I meant it. > > As this whole thing runs as a systemd service, a user can easily set > TMPDIR via a drop-in file. > Felix, thanks for the clarification, the behaviour is aligned with the manual but expliciting the variable would have been easier to read without checking the manal -p DIR, --tmpdir[=DIR] interpret TEMPLATE relative to DIR; if DIR is not specified, use $TMPDIR if set, else /tmp. With this option, TEMPLATE must not be an absolute name; unlike with -t, TEMPLATE may contain slashes, but mktemp creates only the final component This is the output of the command without, with and with specified TMPDIR variable roberto:~/robang74/isar-nvidia-debian$ echo "x$TMPDIR" x roberto:~/robang74/isar-nvidia-debian$ mktemp -d -p "" ciao.XXX /tmp/ciao.wLK roberto:~/robang74/isar-nvidia-debian$ export TMPDIR=/dev/shm roberto:~/robang74/isar-nvidia-debian$ mktemp -d -p "" ciao.XXX /dev/shm/ciao.fYb roberto:~/robang74/isar-nvidia-debian$ mktemp -d ciao.XXX ciao.Lwp roberto:~/robang74/isar-nvidia-debian$ mktemp -d -p "$TMPDIR" ciao.XXX /dev/shm/ciao.gw1 Cheers, R-