Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp280024lql; Mon, 11 Mar 2024 02:25:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXi5tTzXn5rwS35exQoM1OLPIflPNQEWfoleGQlk9NoLCMOqG0tfkdHj98/sMfqEXDRsWMA1lfWEgtZ3yjUyXyXbeSoHJDU/7RGhdrbBA== X-Google-Smtp-Source: AGHT+IFTqvmBePPA6kSNzvmFdIM678xgCdYnp4w/pZMcnCtvM8a5WG9swA4CpXhAYf3L5IiMZLdD X-Received: by 2002:a0c:f986:0:b0:690:d881:3b40 with SMTP id t6-20020a0cf986000000b00690d8813b40mr877916qvn.11.1710149151962; Mon, 11 Mar 2024 02:25:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710149151; cv=pass; d=google.com; s=arc-20160816; b=b7TfH7M0wUbRZDgVl7TSWfnXyEHGPwG6+7OxMdy2mvH3gB0cOU8xeYh2O4vOwANx72 4Q9KON7f16F0hr/+ulMnMHH4Fd+9AKPdh4+mm4lC96ZePBGBRGrcXvjQAg92dKblkaHC cZWiiiYQW2+5/FLgP7jfdDNwe4Qds55i+OFCTxz7Gw7PgyagOWgliDHSG6dgRh+uEqNY siDOQDYZ0yk8p7mTgKI0VCITQ+75RcN+7jERy2LxxERl5GsRT2okk1bn+Qom5rN799xe Mr6M+B8f6xc4FvbIlc7INaClYjhp5f5ZG+xR3Wsl0DWL/tZ3RM7lh866mK9qWb8D2oQD JkxQ== ARC-Message-Signature: i=2; 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:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=xweGuz2EcliYTpJB5JmcOmCcUiI4LLTlw3hou6Xw2WI=; fh=7+ZKFi3qKTWMYfUGAHIQAI42djKBYNxOKxYC7BBVzyQ=; b=btBGMsFn5+i33YSnuOeP8730Bokonup5PTg2aEWvPWXMRicZZ5w0d8Pnm7iq9PzwG4 knJt5yHLc4RN/GNza8tU4yfOxt8oXW0VGrmNvUAu7mXqTgyp2jKUgfpzJx5PA3Ilov0s 0C2DhjcGrrC5VkZ/ovpicFsWvD56Qiv0jqCNUTpMt7fM23mVKZ8hGGjN4ly03pIL0lNZ Bs9K3IIZYr54+rnB/eXupK8oz+UGCla88t+FsnhJbiZ/N3VZrwuJXZzRYbIZ9qq33fIM yrG6i89aIQPv8pcf55yxZ3QBjo8BxtcjOIT9ilg+FQxhbB+x4Jgpd1QBhhEzBiRrpbSR IWlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=FonZ3Ej9; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-ext4+bounces-1588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id me11-20020a0562145d0b00b0068fa2e70f54si4820628qvb.11.2024.03.11.02.25.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 02:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=FonZ3Ej9; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-ext4+bounces-1588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AFFE01C20C84 for ; Mon, 11 Mar 2024 09:25:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB25717BD9; Mon, 11 Mar 2024 09:25:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="FonZ3Ej9" X-Original-To: linux-ext4@vger.kernel.org Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 727B717BA1 for ; Mon, 11 Mar 2024 09:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710149135; cv=none; b=ppFYmaTmP8fjre+fOT3FiHNdh/J7+pQjTDyr7ax9c47AyaY2UKKI49C0Jt2fxqzO1Czs2iIplcRdQ+8bGz5bemdFJobIKbP9lWjBZ3MShwQ0ql9OVKfDOECpUgilu0rYKDSMKJRfriW77chqmIlt3/NFOttjAex/kJg9WIJh3oQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710149135; c=relaxed/simple; bh=vxgDEDHmPVdKOo18wugfaNuuyfadd5F4i/1ADxrjot0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=E+zo7JOZJkhSgyoT5NZzE4k3pTKaVPXYkN+SutynRZaUeba7uGH2yZPYZO7X5tx/126MqYZXjhK5S8mINc5ar3KzP7eLGCKsI19Y5MarU5MO961FvMWJhCtuTwZ/fbobRp2G/iFmdizx68ZVTcbwobd+4nMB1WYtpI9geN0Ngvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=FonZ3Ej9; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-568107a9ff2so4474095a12.3 for ; Mon, 11 Mar 2024 02:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1710149132; x=1710753932; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xweGuz2EcliYTpJB5JmcOmCcUiI4LLTlw3hou6Xw2WI=; b=FonZ3Ej9s8aGIt9tKqwLOMWP60H2zZvc6NqcdjCwfbZIsT1jc4+WNqTrfYuLbz8aZM C6AeOb5Xz2NCJEBfWVOyPjpKkTTL3L4W/Grvg1aEVtbQ2T8OZm7Xviq8fQ3Dm1vjVq/2 SYnFeG65SEG2+DCRbYm8HZ9JOLhfQK7TS46Qk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710149132; x=1710753932; 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=xweGuz2EcliYTpJB5JmcOmCcUiI4LLTlw3hou6Xw2WI=; b=TbLm/y3MlxS3GHWI0OQdoahd99b5kWPoX1nq0adWQif43emsuL4umHRk0QttKlKBby xv96QJm7k9EarB4FNt9GRaeSk/GfqaxOfcJVuZcLoZihS9678bYPpeyDjzGUpGVN9kYx afjYinUHf2lDmUQMZVL223DZdRimUrNZRzX4RzHBw09aSBqBJ8UGDqtdqC8zEcmErhOQ fJlCblQBy5Z1bgc7oRknVUWMGCQEKi1uaoyNsmT/sA4kSSOjZbvmqnXrRxsutK74CNim cwcDlYj0omhukgd7EiBuSXFEHytEThDiKLCcBq9NK/HiW//u1b2yHaRUn5CAmaJkyAtT 5YcQ== X-Forwarded-Encrypted: i=1; AJvYcCVyjYsRyUOCknT9Kgc8SbjmBICJOgBzHdJnuOwdabsbfTZlXya9UWAgMaME1YLxdlI4t+sLD9hIPt70cpNPu2pn7IXYpfVGc+1b9w== X-Gm-Message-State: AOJu0Yz4xEPG7vfMtrZeKCZwQu6OsPw1vRRno0J5jRcdtGuSE+D+5ov0 67Nu6XAU1S0g2QBjHMGQWtSPenOuPzbW0xJczbEr1Hl67dk52qtS4dFwkoiUA+QETQmG0fr+D/b xswfW6bIUCfSD2DHl0UA4yRFZUdGzBKB7HNs2NA== X-Received: by 2002:a17:906:f215:b0:a45:b1cf:42f6 with SMTP id gt21-20020a170906f21500b00a45b1cf42f6mr3725666ejb.9.1710149131774; Mon, 11 Mar 2024 02:25:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240307160225.23841-1-lhenriques@suse.de> <20240307160225.23841-4-lhenriques@suse.de> In-Reply-To: <20240307160225.23841-4-lhenriques@suse.de> From: Miklos Szeredi Date: Mon, 11 Mar 2024 10:25:20 +0100 Message-ID: Subject: Re: [PATCH v2 3/3] ovl: fix the parsing of empty string mount parameters To: Luis Henriques Cc: "Theodore Ts'o" , Andreas Dilger , Alexander Viro , Christian Brauner , Jan Kara , Amir Goldstein , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 7 Mar 2024 at 19:17, Luis Henriques wrote: > > This patch fixes the usage of mount parameters that are defined as strings > but which can be empty. Currently, only 'lowerdir' parameter is in this > situation for overlayfs. But since userspace can pass it in as 'flag' > type (when it doesn't have a value), the parsing will fail because a > 'string' type is assumed. I don't really get why allowing a flag value instead of an empty string value is fixing anything. It just makes the API more liberal, but for what gain? Thanks, Miklos