Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1712164rwb; Wed, 26 Jul 2023 17:44:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2MS3H+Daj9mppm9Qci454ALDJ2KbXsQt/gH511J4ou5RjtvHvMjprBaIaaKA5RwJsx+Oz X-Received: by 2002:a17:906:76d6:b0:98f:c9b:24ed with SMTP id q22-20020a17090676d600b0098f0c9b24edmr515224ejn.67.1690418658988; Wed, 26 Jul 2023 17:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690418658; cv=none; d=google.com; s=arc-20160816; b=g2gh/3t9EwSqaEa3GTn3tyK1gj/gPCYZERHLJiUGcqjQPEIOc+azINwpCEZMmfPzqV be9KzK2pPJXDvCZSNtjjzpwJ/qEbyHUFcBlDkCtgdnPKzPqXwFCLMcQwRT/pLGt6N/5U nhgpfcn6uYUWv4p/mVcekKeIn4tyjMbUUG0J26hBjdxbA6svZcgTA8GAFcKN9hL/6kVu hh7T+Fy3SsLiI5IMR+nP1XS/gwgSfSBBUyQWJowuVlmsWCbWFy9zSIxQphTIyIwfmRDn 7Cv0dI48wvRSyKCk2cDUL0akaZpbhmhpt9bp0eoGqjdCOO3/kB6X3YsOcUwCueKi5Q6P liKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=sY3QJeaMISaIKdDxKtJKohJ2GJoWkJJcs9mJ7frhIvA=; fh=XDDodjs7ESHytTgkynZ3gUDUKtPl8tLuP3r8Aw2zhCI=; b=pnkPSDU3OieZHqa8sxpBAluLjn9SVWsei3mFo5uPl34rZQ4AXgw2LGX1FMXkGFXJqd gWt6ludiRqwVAoEbLMNTbe/uaJUFWZwDgAx27Pseh9YIW6u04oZBGDZU6pTv5aU7fiJN jH1WKqW0+RWFLG+aq21l5p6i7KCeWOe520C44/TE4EQUogzzK12r7ADJV14TarY1Ja2p WPU5P3whdX2uD45J+/aA8SN1pCVvztyQxqHtPWh5rYTQ9qVZDiODnI827L5gTDMkCAT6 sSl8WZLuPBKmKLhUEUuf29Sb8s7UqXTF+xEXOwS79npRLuBJG/Nknur4NUMGlwa6X8qA CcNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=JMeYciZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rs19-20020a170907037300b00992dc9d6b8bsi95082ejb.789.2023.07.26.17.43.54; Wed, 26 Jul 2023 17:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=JMeYciZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbjG0AC0 (ORCPT + 99 others); Wed, 26 Jul 2023 20:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbjG0ACY (ORCPT ); Wed, 26 Jul 2023 20:02:24 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A43B91A8 for ; Wed, 26 Jul 2023 17:02:23 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-31763b2c5a4so379253f8f.3 for ; Wed, 26 Jul 2023 17:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; t=1690416142; x=1691020942; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sY3QJeaMISaIKdDxKtJKohJ2GJoWkJJcs9mJ7frhIvA=; b=JMeYciZ6extbWy42C5yfWoIXWWCjILjf+vkioU3vFAhPr3DXf5HAt8QftPHoxB9O8e rM7uQXiGVx/Tl7WL29bpf3iyd1apIRCrbcfoXONu/DnbRkY9L8QYnxl6eK2oADbVEBmQ 071Ebtfv3y7ucNEMI8yKpXwMvapTrFBTWmmto1Atz0SWlrzFdueDMJyHzjCFUqu+gYzb s+ADi7TBqxb830QY+YhLKTIbTAwv0O3lsy9bG8h2IppqoeQ/2/23RuZO1rplTAfPCKdL 1kznMyoVGksodV9iTmWhsXZp/8SSXt+Vku0f7/KCkQO46qwONmSCLpav5StP6gxBYelG 9ONA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690416142; x=1691020942; h=content-transfer-encoding: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=sY3QJeaMISaIKdDxKtJKohJ2GJoWkJJcs9mJ7frhIvA=; b=BVlKYD0Vsbam+o2QiRlMWALeFZzqWRCcU1S21N82kRAvrGqOWHbALDAmxwDTam5oHr NU0yrqOEGKMn2sSGO08IM/A7MI8NSEVCJTBDUwVU+nun+W9RdCaSN0NyP1zfknASLO9I lgPxtWYeah0PilxGYGmIBKRkKVXyUY+Nr0oGXMidgpyMcMlY4AT4FnkwSpvyGnPcSLZ1 tl2nQVJ2Ebs74FWkK+ztmd5EkfKLKexFTONz5JNUGgKdO/8HcH55S7Ap4JBMOqyRcLGI rjczVz+RneebkLA2+e0/NgzIs+77HKtUNElXTt3ghASfAyfmml5ClN8EIQDjzxDI0is8 d0TA== X-Gm-Message-State: ABy/qLYUcsMgr5QLf4b1EY8Gg3ycFGZEw2UKdqXLQs004OGJfV+Ns7zO /osI9Ekx2XTyVHibzWNu2loel0LVBoFErFAa29aKNNiFnOsC2djH06l0ew== X-Received: by 2002:a05:6000:1146:b0:314:2d71:1f7a with SMTP id d6-20020a056000114600b003142d711f7amr408985wrx.32.1690416142177; Wed, 26 Jul 2023 17:02:22 -0700 (PDT) MIME-Version: 1.0 References: <20230726164535.230515-1-amiculas@cisco.com> <20230726164535.230515-11-amiculas@cisco.com> In-Reply-To: From: Trevor Gross Date: Wed, 26 Jul 2023 20:02:10 -0400 Message-ID: Subject: Re: [RFC PATCH v2 10/10] rust: puzzlefs: add oci_root_dir and image_manifest filesystem parameters To: Wedson Almeida Filho Cc: Ariel Miculas , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, tycho@tycho.pizza, brauner@kernel.org, viro@zeniv.linux.org.uk, ojeda@kernel.org, alex.gaynor@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 26, 2023 at 7:48=E2=80=AFPM Wedson Almeida Filho wrote: > > On Wed, 26 Jul 2023 at 18:08, Trevor Gross wrote: > > > [...] > > The guard syntax (available since 1.65) can make these kinds of match s= tatements > > cleaner: > > This is unstable though. > > We try to stay away from unstable features unless we really need them, > which I feel is not the case here. > Let/else has been stable since 1.65 and is in pretty heavy use, the kernel is on 1.68.2 correct? Could you be thinking of let chains (multiple matches joined with `&&`/`||`)? > let Some(oci_root_dir) =3D data.oci_root_dir else { > pr_err!("missing oci_root_dir parameter!\n"); > return Err(ENOTSUPP); > } > [...]