Message ID | 20191228210722.1407-1-zajec5@gmail.com |
---|---|
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E4RPhDbJ"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uTGn/EE8"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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 ozlabs.org (Postfix) with ESMTPS id 47lbr34nxyz9sPK for <incoming@patchwork.ozlabs.org>; Sun, 29 Dec 2019 08:07:47 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HOmNRss4BI1XnP0GxKsHEv/CQqwtuCzrVHwafeLznBY=; b=E4RPhDbJB2winX bSYUMvHhMogomV9S1FDHVFLj76gZiesGT0FUxyxqS0xGfTX14bIa7XLwNv0TageGhS2ygI7Ul/QuY b1DcDW8UBoBOFuDHd1Co1FdBI8atgPpQPKw88rr0mECrG2RQlVNM+iMApIOncKRcMNRUuw+KIoIMJ hMQ2fWdASkbiyTBpA46QxKx0JKetMxbK+Et4SxWpf+uegMj1Iifsjzdw9fhGAdibjPH/indHPU+CI LAxEfwROlgMxQcX6zy6HwAvcYWxXAvyB/dAvuftIJo6Z9fxYuM2rndG1DgTpzA/lLvnL6QuAuD1Mc EdtMrzbCOv/YbMaql6OQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ilJJC-0001lk-HU; Sat, 28 Dec 2019 21:07:38 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ilJJA-0001kW-6m for openwrt-devel@lists.openwrt.org; Sat, 28 Dec 2019 21:07:37 +0000 Received: by mail-lj1-x236.google.com with SMTP id j26so29885304ljc.12 for <openwrt-devel@lists.openwrt.org>; Sat, 28 Dec 2019 13:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xrF7d5A3M3UO/vMVPZ+VXEMoTwY7IhBoDyE0uYY8jAg=; b=uTGn/EE8mRnaDXuZLls72MC69w61+JGKJ6h/b27oPkyEtNPDAXI1XJZAeaqj1B/bXy ++we0wC6wPGs6O/3ON3ppX+Bb+jHe3uCM155ELQzbMs8V2qK9AKv9O+GikTiewnfY2q2 dQbwRxHxn8HN+grk52fSXUYS8PY4dr+4sXg3Qz+h1ARGadfsKmG96x1HCcthNgLIwxKt TkWXOsK3wKCTI+c0rRtSYXGXqJij6OUkj1orS91sncTWN3L9/Jg4UZx2kk8LLpz9r7YN Rob1eJ7ewFgcXnxObll2nw16dXf6tXn+MdNgLEAF0xGDTC0RPyMAbBtvUGUZaRVQi80Z BVgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xrF7d5A3M3UO/vMVPZ+VXEMoTwY7IhBoDyE0uYY8jAg=; b=e6WNEBN18tx66D2gmah9yRdABWN/+UyGNxPOVWwiBCub+hUt9jhiVLk9ZzSMFYFBdJ 02B/KlVfy8XXl6mzc6oh04H/UTMJyOK4c77EB0IXQlCWKmSM1snxf+hVyQLtbVa7A44s UpHwsa2i+UvokAR4fzyk+uYmLu6ByhkAbOKoEQYvjl28bLGJayN9z7RqcS1wrAtAcbvy BZOkrB489aopH4jrUhUm0ng0eabcOIZLnJ7pWe8emNVlt38arvp/bKpD+FQHmVhKRU89 dLQeqREu0JxOgHtnX+1hQoPfHzBaF2rNCBksjXM7zmTIYSoYNrzYZ/yq2TyZ1iN1dTO6 k8nw== X-Gm-Message-State: APjAAAXBFsjhjaGkhMpeIC4f9zSq9OcZPUNWPjdSrmM0nXKT9pnfk9BZ Ae4ZzcgWGFpqU6CBmz+gVixue9TM X-Google-Smtp-Source: APXvYqyFEJL7hcHrs34Hr1vZOhLuv6T7x9/aaqzqVkuUN8aT56Gz3KTyjgJYOwQozcmLLf6UgGG2uA== X-Received: by 2002:a2e:b0f5:: with SMTP id h21mr30167337ljl.9.1577567252246; Sat, 28 Dec 2019 13:07:32 -0800 (PST) Received: from localhost.localdomain (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id m189sm16641767lfd.92.2019.12.28.13.07.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Dec 2019 13:07:31 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <zajec5@gmail.com> To: openwrt-devel@lists.openwrt.org Date: Sat, 28 Dec 2019 22:07:20 +0100 Message-Id: <20191228210722.1407-1-zajec5@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191228_130736_459533_0B584F5E X-CRM114-Status: UNSURE ( 6.93 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:236 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [OpenWrt-Devel] [PATCH fstools 0/2] block(d): remove remaining files if they exist X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <rafal@milecki.pl>, John Crispin <john@phrozen.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
block(d): remove remaining files if they exist
|
expand
|
From: Rafał Miłecki <rafal@milecki.pl> I noticed that rebooting with devices mounted can result in: 1) Leaving directories in /mnt/ when not using autofs 2) Leaving symlinks in /mnt/ when using autofs They can cause mounting errors on further attempts. With mountd this problem didn't exist due to using /tmp/mounts/ instead of /mnt/. With block(d) we have to find some solution. This patches takes care of removing files that can cause mounting or symlink-ing errors. Worth implementing may be also a /mnt/ cleanup done at boot/init time. Rafał Miłecki (2): block: remove mount target file if it's a link blockd: remove symlink linkpath file if it's a dir or link block.c | 3 +++ blockd.c | 7 +++++++ 2 files changed, 10 insertions(+)