Message ID | 0444a7832f4a6f588fc157e45b2ec496c7150c5a.camel@newmedia-net.de |
---|---|
State | Not Applicable |
Delegated to: | Petr Štetiar |
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=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=doXIS66e; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=newmedia-net.de header.i=@newmedia-net.de header.a=rsa-sha256 header.s=mikd header.b=EM8qowTA; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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 4FbSBt189Xz9sRf for <incoming@patchwork.ozlabs.org>; Thu, 6 May 2021 18:57:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Date:To:From:Message-ID: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HjAFW1+G0SMSBOM5CMvfMeztzdBA06Tx4GohL+i8pZw=; b=doXIS66ecKkNFv lV4015FRy1IyTjFST+niQ9vcD8BmAOfTDx3yX4zIsk6ot4ioXR5jJwkfLu8Vg3ME61QV13RK9JN7g PHPnqDZb6/eigzhiLqTIR4opwV2MCtYDaQMkoPHk+T0pmgfAn+W+N86maqZWme2gi4RDxmfSGviTq BDMDYvnUK3z2Y2+VrDfH/b1o9weZdJZQuRgUq0wO2NKVwmnGcmEZR4g8U+fQLVVZo3zBBOWfMajEw J9K/qwhernuJ/2ZfNn7OxtPEuZVN8TQf3V4E25eRffdhw3aZEYUxDIwEEoBvH7OvyouAlbpuSWcvB CJqt5e0LXULJyqubNHHg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leZn5-003jD0-5f; Thu, 06 May 2021 08:55:27 +0000 Received: from smtps.newmedia-net.de ([2a05:a1c0:0:de::167] helo=webmail.newmedia-net.de) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leZmz-003jBv-Cp for openwrt-devel@lists.openwrt.org; Thu, 06 May 2021 08:55:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newmedia-net.de; s=mikd; h=Subject:Content-Transfer-Encoding:MIME-Version:Content-Type:Date:Cc:To:From:Message-ID; bh=5sv1ixCzdHaABiKY3ZsnYLF5F7OwyA80DWe5EvuFlEU=; b=EM8qowTAKKkoXj3WD/zgiBcJsz0Qwwrvl1pTdjhPv1g/piI7h9yF3hdl5kNSGMXz73lS93C9B432pIqit9XOFKci9W5wGz8BI+gqy7taEr8mPMu6ch4jzhF+mLnrcwRr4yny24FM7DsZ/KddRBEtcu2c8EbWirHdJDhtFnns8+g=; Message-ID: <0444a7832f4a6f588fc157e45b2ec496c7150c5a.camel@newmedia-net.de> From: Daniel Danzberger <danzberger@newmedia-net.de> To: openwrt-devel@lists.openwrt.org Date: Thu, 06 May 2021 10:55:12 +0200 User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a05:a1c7:1:b101:9ba7:5add:4581:a0b5 X-SA-Exim-Mail-From: danzberger@newmedia-net.de Subject: fstools: block: No mount after reload_config confusion X-SA-Exim-Version: 4.2.1 (built Thu, 26 May 2011 15:22:33 +0200) X-SA-Exim-Scanned: No (on webmail.newmedia-net.de); Unknown failure X-NMN-MailScanner-Information: Please contact the ISP for more information X-NMN-MailScanner-ID: 1leZmr-000Mrd-OC X-NMN-MailScanner: Found to be clean X-NMN-MailScanner-From: danzberger@newmedia-net.de X-Spam-Status: No X-Received: from [2a05:a1c7:1:b101:9ba7:5add:4581:a0b5] by webmail.newmedia-net.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from <danzberger@newmedia-net.de>) id 1leZmr-000Mrd-OC; Thu, 06 May 2021 10:55:16 +0200 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_095522_075260_97D4DD9A X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, when adding a new 'mount' to /etc/config/fstab and executing reload_config afterwards, I noticed that the new 'mount' is not mounted automatically. It is mounted however after reboot or executing 'blo [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.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: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
fstools: block: No mount after reload_config confusion
|
expand
|
diff --git a/block.c b/block.c index c6d93d1..17d33d1 100644 --- a/block.c +++ b/block.c @@ -1179,9 +1179,11 @@ static int main_autofs(int argc, char **argv) continue; blockd_notify("hotplug", pr->dev, m, pr); - if ((!m || !m->autofs) && (mp = find_mount_point(pr->dev))) { - blockd_notify("mount", pr->dev, NULL, NULL); - free(mp); + if ((!m || !m->autofs)) { + if ((mp = find_mount_point(pr->dev))) + free(mp); + else + blockd_notify("mount", pr->dev, NULL, NULL); } } } else {