From nobody Sun Jun 30 20:06:52 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WC0ZK6z2wz5QNs9 for ; Sun, 30 Jun 2024 20:07:05 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WC0ZK13r6z4kvV for ; Sun, 30 Jun 2024 20:07:05 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=OEg9IP4V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::102e as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2c927152b4bso1637647a91.2 for ; Sun, 30 Jun 2024 13:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719778023; x=1720382823; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=/QbakTc7ndHfDhU6aSA0MW1KkU6fEIEsq9wirqEUimQ=; b=OEg9IP4VEy2KdK7Xa8yXUDGdd8wt276pENCzH6vDntfwlA5gETpcetrM8FNWh9i7Kv 0rFhjLHP4+hj08urfiVyEzdXHXDN5D4EghYpOhPZmbb5k7HEGJN+g0sT3ZF9nIqL4aWw imdyEyBJlbUOv76uK4wkTW0HL8av3cYBpgasp4q8kcK1bFfHj+fzm5P2RwK4vZXIh9Dz if0MusTVkZqRfZTqqbJ54+D+S250p3ECPnAmoIO+MTbW8NzHZ5ehKidNTmNsGSvTddwM EGm2111ZPYn1rRnzOgoz7wrd2OaE8kUUF4CpULrzitW/Fyfgu3+TDQJ6iv8cg01VVtN0 s7Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719778023; x=1720382823; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/QbakTc7ndHfDhU6aSA0MW1KkU6fEIEsq9wirqEUimQ=; b=u4ACC4CITb8DsM6iUOxuezSKKqh/Zt0g5dTZZ/5t5QwpM7wREPywSvIwPskhSu5YXC cxfoTKjw3qftyWYrtkqyeV0PwWiTR5fSpCyXK+B6njzdWBd4iLCYb8eFxDqgNL7uJGyR IxUB4Anfpj/krFzLM83ezDwAZVIVSEC3+loIr/+1itqaytjnLTsKh9etr6XmHVuAYj2A Y0EpJ81o+sVKe/2ZgD8M/UYZ9VHVePWsrefpfkMSvb9sPmvvAvOkng+1U7BaE4xtleGz RQ4P8BLCEWw7PepCYdsxwUfp5csx1QAgu+/v3V7PTRbM9jFRS8YR7n1zsLnegV1rbXum K9wg== X-Gm-Message-State: AOJu0YwcLIthj910gMlOQhR4YYjpl2D3STrkAsUpDmW0PB1qFcuDgRaK f3FGg1ftBHauUB1BNKOYTXeY8FH4nx1PUSH3j5TlGN1pb8QSvRc26GqeAvULx5ASJE1nOyine42 JoCpR7ONKCeb31MjSkqkmTwFo6u+O X-Google-Smtp-Source: AGHT+IGkrHrg17Qhpz4Hu3LXROji/Idptv3+vUu68Io3uhOwr/8hMJpZ4OYK0dZliUdnL+1M+wRfAacOsnyL3jNUalo= X-Received: by 2002:a17:90a:d809:b0:2bd:9319:3da1 with SMTP id 98e67ed59e1d1-2c93d72fbbdmr3328262a91.25.1719778023324; Sun, 30 Jun 2024 13:07:03 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 From: Rick Macklem Date: Sun, 30 Jun 2024 13:06:52 -0700 Message-ID: Subject: Multiple exports(5) lines generated by ZFS's sharenfs property (patch for review) To: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.98)[-0.980]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; TAGGED_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102e:from] X-Rspamd-Queue-Id: 4WC0ZK13r6z4kvV Hi, I just put a patch on phabricator (D45814) that adds support for multiple sets of options for different hosts/networks to the ZFS sharenfs property. (It is based loosely on a patch in bugzilla PR#147881, now 14 years old.) I have listed a couple of reviewers, but please feel free to review it as well. (It will eventually need to become a pull request for OpenZFS, but I'd like to run it past FreeBSD'ers first.) The sets are separated by ';'s. One question is whether ';'s separated by only whitespace should be allowed. If allowed they generate a "default" exports line that exports the file system to the world with default options, such as read/write. The patch currently on phabricator allows this, but I am thinking that it should not do so. --> The default case could still be specified as it is now, as a single set of options without any ';'s in the sharenfs property. Thanks in advance for any reviews, rick