Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2513245lqb; Tue, 28 May 2024 02:06:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUs6nw+z9Z66KmrtqnlcHZvS32xqfOBnwuRrz+bGHiZY2cO+yff7yNRHCGWWewmxP99IYInlT8HBgzJ5q4QNFW+7TFhyVcdHOJ3HUKbuA== X-Google-Smtp-Source: AGHT+IGfFcEdMdNvKWGCmbSQuE+Q+Ae2JauZ9n4Lh055WdoqycdeLv4eZIhRKRfg5MCYr83yzWPs X-Received: by 2002:a05:6e02:1fec:b0:373:8cd3:4d1 with SMTP id e9e14a558f8ab-3738cd319a9mr96080235ab.9.1716887184588; Tue, 28 May 2024 02:06:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716887184; cv=pass; d=google.com; s=arc-20160816; b=iKW4lr9vqwhXAqKdUefxs2xEmumrXr2IPo0ad4evHZCTZbM5wPl8/GdzvJB9K0ESIu Ob1szs4l2Pwct/50EShvjQ6j31V79dAozPNy6zw1hcmCFyGk1eQV3SaMznVRaw+s7+9N 7km5FXs2UWCC8N/+zcQFYVJfgrUapOoB9/NpsObJS4WQtU8VzocezuPuLWHIjdaa76Pj xXs3W5n24sM0cR1nPOVmYYWDKFoNYerSztUYRFKhB2QIWXoqEXoedQnqN+RYQ6OTTzuu 3iLKpJr4YnsFogo+gFtpG3kcJiaUTOgkXBcD+x4D1RVnDYEVDgBkxs4DB65r9U2m63AQ EgVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=XxpobPu2s04aDHCSU8HoaN1HgFuJlZN8yBuvL8SN10g=; fh=Xvm1Qe2+9CJcNwztKMONKMyTg1x+gee7jZEqgLX64jA=; b=mU2Uu6pazE52T0ruziQ+6gTxxEYjhSaf5X/ZyIVJw3e/ouh9hRapKS7S2BfnIHx8Xv F2wAeqC9kAEh03TsUH4+qSN8+N9kNZ7C2QdWMPPuYqvr1xv3BZUoRlUbONN/kBYAxEZX o62KbCg08c7nLZ7zfldx7AnCSTKuCXTtMB2Rq1iwt8iIlENECbE4wtRNzgDcZ9nCG65y qbNa/wHAPX3Ke6HHW/PQiCCX2Bq8XxOsC3J4b8UcWTpWYd0/52+fokac3VIFVLCd1D6h h4Gt1hDg53t1QGEPIjw45kQiOR0t5hekWDfnGLzyEKW2E8pSr0w6WIsidtqP7HFubDO9 nkHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=azok4Lh3; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-191980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221c6a269si7740061a12.32.2024.05.28.02.06.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 02:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=azok4Lh3; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-191980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E85C5B23669 for ; Tue, 28 May 2024 09:03:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7F5413CABD; Tue, 28 May 2024 09:03:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="azok4Lh3" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A05E613C3F4 for ; Tue, 28 May 2024 09:03:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716886985; cv=none; b=JfmY3NiuV3Wj+i75zvP25AQtqwXlfeqTOXap4ItxHZG+82t+czi2q89foE0UX8L6K0HKXPySpTJhOaHyv2yvlUDWY+iCF6ZUGYdht+VsC7v5GVkn5uf+Fe8j3hu9Xs8fG7e3ius65EyTpBVx7XJfJY2LW62SJejAB/lP9EZcPPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716886985; c=relaxed/simple; bh=uboriDCKWeJMPTjPITy2yzoiM+nx4vV167P9uIGhE10=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z5Dcl7zU/P5rth+wxCojUXBbKMpJ9/THLku0P45C/KWDOgz8P+8ZelJoTWCovqMAXiRcVCdejcPWnGXiH2akK09DriP/OKQScMoWIpF1s9D0Mf4RWBC3ynYUdvwyxToNIvhN2W9lZCrBY/kWalUcOgpjZhmLDRL3+J8ridSt58s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=azok4Lh3; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716886982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XxpobPu2s04aDHCSU8HoaN1HgFuJlZN8yBuvL8SN10g=; b=azok4Lh3XM9vU847YtlWAEEKTFZrDoZguCgXAPXTh6pICjRRttTR8T2wdV7HUCAZkFDY06 xrKrn4ignrxyvp8yu6kG8USsvrFbjsh+Ok1snVWf4I1eyfyKrfaDhiH2tHSNlyjmEt+TpL TQ7lTbSWNAhSxCsWKwz+lVHulAGJ0gM= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-347-YLZ8MyRlOXS9icYNxf5gTQ-1; Tue, 28 May 2024 05:03:00 -0400 X-MC-Unique: YLZ8MyRlOXS9icYNxf5gTQ-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2e95a1f049aso4021011fa.0 for ; Tue, 28 May 2024 02:02:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716886978; x=1717491778; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XxpobPu2s04aDHCSU8HoaN1HgFuJlZN8yBuvL8SN10g=; b=Hqa+YzhYILjkeWI0Z2F3zLmtQbWwSU9fL6uMrPEbqH8fR4mpdhKvH4U7BHWmUcAve1 7NnhB5L8HBT1e2/w7EhS7Elc1QmffswClCNBEtIcE0ALb4cUZbo/GxpXbknXiMeQ0t6R Fj8XKcj7pHAJrtCykWLgOrN3u6ncNIB1ZcQGf6aTGPhVu5dbTG97W9kayTKWbSwa1+Ju cpOZN779rvQZKvILwXFnkVzWYQX7fehqSIG97hl42Bkahlp0GXfh8qGwsXrI4R/iMIny lSteefAITo6RpVTBqXCmktVpwAXilXSvB2qQEM667bVDGaXynjP12WL0dDsqzPd30/bI P0eA== X-Forwarded-Encrypted: i=1; AJvYcCVSHuRsEkBlusmMxLuYhnedRZSZ+9eTdo04ZIkeVdCDsYlqa0X7m1z3txGFvGqVjAtkzpQbZNAMVK6UHg/pXH80LOPlnrAowzWSJVjb X-Gm-Message-State: AOJu0YwpvzMTdJvHf34McFGFaZ499lE9fFkxROYPFHone/xWxw/djlFz TqPSSuAjGQ+dNnNNPddl2fQ7BMrVGAwXrT+aylgfaXmUtrrXQoXKiq0AUmT3P/2BrGZ5/5yTUFZ ULplyP5Lv2Fw4dh80nS3Mj9HljiBNSue+tXc08GGDGHhoyWCHrVgyM8a2hKfC6A== X-Received: by 2002:a2e:a695:0:b0:2e9:85cd:a8b3 with SMTP id 38308e7fff4ca-2e985cdac72mr12031221fa.7.1716886978553; Tue, 28 May 2024 02:02:58 -0700 (PDT) X-Received: by 2002:a2e:a695:0:b0:2e9:85cd:a8b3 with SMTP id 38308e7fff4ca-2e985cdac72mr12030911fa.7.1716886977958; Tue, 28 May 2024 02:02:57 -0700 (PDT) Received: from p1.Home ([2001:8a0:672b:c00:2848:324e:c3d8:68df]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3557a1c93c6sm11112638f8f.85.2024.05.28.02.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 02:02:57 -0700 (PDT) From: Eric Curtin To: linux-unionfs@vger.kernel.org (open list:OVERLAY FILESYSTEM) Cc: Alexander Larsson , Eric Curtin , Wei Wang , Miklos Szeredi , Amir Goldstein , linux-unionfs@vger.kernel.org (open list:OVERLAY FILESYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ovl: change error message to info for empty lowerdir Date: Tue, 28 May 2024 10:02:40 +0100 Message-ID: <20240528090244.6746-1-ecurtin@redhat.com> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In some deployments, an empty lowerdir is not considered an error. The current implementation logs this scenario as an error during boot, which can be misleading and cause unnecessary concern for users. This commit changes the log level from pr_err to pr_info to reflect the non-error nature of an empty lowerdir in these cases. Reported-by: Wei Wang Signed-off-by: Eric Curtin --- fs/overlayfs/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/overlayfs/params.c b/fs/overlayfs/params.c index 4860fcc4611bb..53170d73bb79c 100644 --- a/fs/overlayfs/params.c +++ b/fs/overlayfs/params.c @@ -231,7 +231,7 @@ static int ovl_mount_dir_noesc(const char *name, struct path *path) int err = -EINVAL; if (!*name) { - pr_err("empty lowerdir\n"); + pr_info("empty lowerdir\n"); goto out; } err = kern_path(name, LOOKUP_FOLLOW, path); -- 2.45.0