From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7149079772069363712 X-Received: by 2002:ab0:e05:0:b0:3bf:2088:64e1 with SMTP id g5-20020ab00e05000000b003bf208864e1mr4372026uak.118.1664536677566; Fri, 30 Sep 2022 04:17:57 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a67:dc82:0:b0:398:2638:7615 with SMTP id g2-20020a67dc82000000b0039826387615ls946917vsk.6.-pod-prod-gmail; Fri, 30 Sep 2022 04:17:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IR6jztqhoQd2/mAsIgT2jFE0/VLVc+TCFTFfRK7wtlIAxsW+ewtWGWs+Uksd2AdBI0m2D X-Received: by 2002:a05:6102:3a14:b0:39c:85e5:bcd5 with SMTP id b20-20020a0561023a1400b0039c85e5bcd5mr3839690vsu.80.1664536676884; Fri, 30 Sep 2022 04:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664536676; cv=none; d=google.com; s=arc-20160816; b=FbO1JZP5Baw8LoE7EgscryQCnQgkt1o4Jd0cz/E90O9ZdMR+p4Lt0tdJrfGR1Lj3Zn QcWM5bNPy39OL36Bd59KmjktbRqA1wShZ102mpRo1oy/0acjaa+NzHZ2stB9Lb2k/Gsy qBHezZUcZR0BOk1zwJWLkxVVqbhMBIZJ4kVCt+TekGi1OKIC4NCIp8x4bFzET0sBu/yF 4ZIFK9pnaK8HH2OH2I4ZtybPuxsEdRNBu4nqjhSx/ovMSaG++wDjyiIFaAGdA2V6y8E1 iA/E0teKyoAj+xvAy7JJbZxpC1TgbOriO7Q1wPQMwlMuyHrfcrDFJx18e7VT/fk4ImT5 KiXg== 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=6P/SyQSIWk3IuhJTRsv6vgioCLs5NuXrQC7tLr4IxIc=; b=wFieiOHwLCCTQPL/ZqR8AXcaoDyfdjZr6tQThI0/jGRUOdjvz27ZF1U8vsW9AQFlt/ XEcv5pve/f7xqA0gbywyQoEpNsBJjtEf62RYu/bhhlfcq19mjWWpz6yhzByhNhykJUs/ SAnS1Hreye2yIRhM8CWBl1zIrsTuDyN/6vtYahMMVu3t5yQg4t/JkO4uPh4V6Bci1sAj P2m9YMr6+OLxcVLJLwhiOJpGtHwd1/RRjfkCQupU3r1Smnr9xkql8WXDggMl2gYTK0zW DEqCjJ7e3DLKb4qlU3mLPgRgMXP5Px9fMB1b7ec7Y6N9ytGD9bXUls9ISAoE3BKuZMKa 5Vuw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BpkMYiIS; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d34 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-io1-xd34.google.com (mail-io1-xd34.google.com. [2607:f8b0:4864:20::d34]) by gmr-mx.google.com with ESMTPS id b1-20020a67fe81000000b003980b6c8861si104965vsr.2.2022.09.30.04.17.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Sep 2022 04:17:56 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d34 as permitted sender) client-ip=2607:f8b0:4864:20::d34; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BpkMYiIS; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d34 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-io1-xd34.google.com with SMTP id n192so2996976iod.3 for ; Fri, 30 Sep 2022 04:17:56 -0700 (PDT) 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; bh=6P/SyQSIWk3IuhJTRsv6vgioCLs5NuXrQC7tLr4IxIc=; b=BpkMYiISFUk4+g3cQzalMpFyFpe6SnissGfC9bMmDXgz2UCzjwQwKb4wWLeT4boEQI Rc2xn/KnVRpa3tFKJFduuuNbklm8LcfMjaqWQJdXmGg8CBPT+b7n+h7SZ4YmhMZ9gxmO IDyqKpSVHiA08bVg971edyyu+iI7o8rvO88p+jND/GqgbcRaOjAJnrF6FEhIyTjIN8oT C/YCAKp/DIaSiDniu58lfVEsKmsgZJ5tCxoqBkHy8kgKNFo0aII8m0w0Q2QeZV3ma9lu BVGwNAjUytVohVSOH1D4zQz9Dxiy03teUAJPplJg9eX/TcY/Iv1GHTdLidULRE7viRjB TNVg== 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; bh=6P/SyQSIWk3IuhJTRsv6vgioCLs5NuXrQC7tLr4IxIc=; b=yD3n0iF4PhifaIDcSaLLi6Opq9KPXdCaZv1aIJV23lR0LLNU6Nqto8ilzVdUb4b1k4 jhXc1yeUEGay4pM8dRCC3/LdDaV/EIVxu62p4IOzBlr0NKPnd+IxWT/NMa0HvNAF8ETq A7adZqykUxLsR2MI/kVjZA1dTQ5iNyGl1BQID5iUaf+6TaJOpwYBLV1WkE0bzF5/25n7 f0CgPBigxzvEraNB0njaekjf4+XY3uenLUyUB8AaCOGmRRufQpCpuUGbzb9yvVsHXK5B OGm/x4fvrth3Av7QsYkAu3mla3f2WyGdrYXz0DrpNu4Zie0hro94QqrosxmLNqL6xHie hPVQ== X-Gm-Message-State: ACrzQf3UD+PsBtC4R30SpEYcy3p6lbuh+j8H4pzBaf6EATCfsEbOWQZv W8SPmZpI9d5NhoFOllWO5veCNSiX2W3VXGz4Cw== X-Received: by 2002:a05:6602:2b84:b0:6a3:211a:4782 with SMTP id r4-20020a0566022b8400b006a3211a4782mr3772102iov.208.1664536676287; Fri, 30 Sep 2022 04:17:56 -0700 (PDT) MIME-Version: 1.0 References: <37b7c077-3d07-ab97-a9f8-a0e31bc85168@siemens.com> <7173fe9ca22bb8f50ba6c941fb62b1799f066e5d.camel@siemens.com> <3c13095fd15b6077e9b13b518ea7f25778a7c427.camel@siemens.com> In-Reply-To: From: "Roberto A. Foglietta" Date: Fri, 30 Sep 2022 13:17:44 +0200 Message-ID: Subject: Re: [PATCH 1/1] expand last partition supports btrfs (inline test) To: "Bezdeka, Florian" Cc: "Schmidl, Tobias" , isar-users@googlegroups.com, Jan Kiszka Content-Type: multipart/alternative; boundary="0000000000004e4d0705e9e325bb" X-TUID: jX2tM2QUH4vQ --0000000000004e4d0705e9e325bb Content-Type: text/plain; charset="UTF-8" Il Ven 30 Set 2022, 13:09 Roberto A. Foglietta ha scritto: > > Third: The mount point (/tmp/btrfs) is never cleaned up in the Robertos >> patch. >> > > I do umount but NOT rmdir because if for some reason umount fails > (expecially in combination with a bug that do not let the error code be > returned, I saw in busybox) I am going to remove the filesystem content. > Moreover, polluting the /tmp is usually not an issue. > Two toughts ecollided in my head: 1. do not run rm -rf on a dir that can contain a umounted filesystem 2. just in case do rmdir that will fail and do not harm the content The result was quite curios: I the doubt I do not do anything but polluting /tmp! > --0000000000004e4d0705e9e325bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Il Ven 30 Set 2022, 13:09 Roberto A. Foglietta <roberto.foglietta@gmail.com= > ha scritto:

Third: The mount point (/tmp/btrfs) is never cleaned up= in the Robertos
patch.

= I do umount but NOT rmdir because if for some reason umount fails (expecial= ly in combination with a bug that do not let the error code be returned, I = saw in busybox) I am going to remove the filesystem content. Moreover, poll= uting the /tmp is usually not an issue.

Two toughts ecollided in my head:= =C2=A0

1. do not run rm = -rf on a dir that can contain a umounted filesystem=C2=A0

2. just in case do rmdir that will fail a= nd do not harm the content

=C2=A0 The result was quite curios: I the doubt I do not do anything but= polluting /tmp!
--0000000000004e4d0705e9e325bb--