From nobody Fri Jan 10 14:57:34 2025 X-Original-To: freebsd-hackers@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 4YV4X36l2Yz5kSnm for ; Fri, 10 Jan 2025 14:57:55 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (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 4YV4X30tH1z4tND for ; Fri, 10 Jan 2025 14:57:55 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=JO41IfOH; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2a00:1450:4864:20::52b as permitted sender) smtp.mailfrom=rick.macklem@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5d3d479b1e6so2840453a12.2 for ; Fri, 10 Jan 2025 06:57:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736521073; x=1737125873; darn=freebsd.org; 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=Y5pWoivjys7/vQEf5zmjIIbG5yrVtlDk84lnnuFFkoY=; b=JO41IfOH3BiJd258ccQjjicKDSTt1+sO+q6tLOah9nO1Hf+ye6h7MSu85iXPq15VMX P7r4/Pb4k8jo2iG8jqYQYqtGTKcvVh8la79doDHWv6yiQ9XcRFXAj7cTW5lYNG0ltflZ 6WnAGdP9l82THyGMGZG5tgtvDPAIT/DnplnVQTSlF0clxJPgFbxw7sfWxBgsx+saSdo5 iXi6iFntBO75p5BJCZZR3tfghngjRO5W1EY84PTHZtapzJ6904Fs03w8iOGNBhSQERbV 9PFA16n1w/72Hv7G5GocPBeE+79Ants4Ojr7xEfpLnN5H5y9wKx25aSyKXtR3NHQC7Rj LqZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736521073; x=1737125873; 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=Y5pWoivjys7/vQEf5zmjIIbG5yrVtlDk84lnnuFFkoY=; b=A5Lc7kPDSQJhxxHq+fKwFrUmooS5W7cwtFEy6RIx8PW+aKYNQJBk7li9r8aU8iqcKE e7RO12Aq6VDtZcBl8/0JN3l9KAxG0M+gZFY/ajKQVGjzGPBHZm4krALpTBzuozgaBaCr DRjb3iEokwCjIld/OgtH+U1fQWUXkWWE5dJqYlwf6Qyl+4zn9ifqy99SboyjcBeeTyJW FIaI1ioIg9ms68ZryGAqBoKOs0O6NPj9tgAbPYz2Nx6Tb9PBp4AL3BdWUWTMP0UAw3UM 9r9e0DGZPpKm9Lzoulep95RVfXGaKjIodiIGc/kVruJWDHh3yzlt2TG60SiiM2y8gjCb RMWQ== X-Gm-Message-State: AOJu0Yy7eE+r51RC7q21JU1iLVHBaH4kcei4GqyPZCv3gsYeybYDJ4HG wslLEbEeBver2e5coOGfJrxbWUibfSs3+WpaTDOlCQ0CLP7ppw0NeYreP3YAoHwHs0reR4JOI85 Ze9OmtsDWBllc8BtKW35xPmzvQZXD X-Gm-Gg: ASbGncv4leoC60mEgJ7+ytekTiVRzRuLl6DRJ9bWAm+jRKpDGo6aqwIwKE418ONn9kT AcLybWhmX88fx7rGt2Er5WzcDyHfS4DHqW976/dECGrPurFuSJ1+S9hI8PuYlnE+LPgKo X-Google-Smtp-Source: AGHT+IFscKGhEci0QNrEF7N1ppgstP95M3RreKZXN7haqUxEKSN7KvOUa0BANy36HkiwuU8W9nFC0zh4fkU07R3KNyQ= X-Received: by 2002:a50:858c:0:b0:5d9:857e:b259 with SMTP id 4fb4d7f45d1cf-5d9857eb31cmr13258035a12.31.1736521073084; Fri, 10 Jan 2025 06:57:53 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Rick Macklem Date: Fri, 10 Jan 2025 06:57:34 -0800 X-Gm-Features: AbW1kvabYbl1oosly5P1xEfmuNywSWMMGzL8JMFdAnKEk7qawu8htjdCynhRv8o Message-ID: Subject: Re: WRITE_SAME support in FreeBSD nfsd NFSv4.1 mode? To: Dan Shelton Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YV4X30tH1z4tND X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_RCPT(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52b:from] On Thu, Jan 9, 2025 at 8:14=E2=80=AFPM Dan Shelton wrote: > > On Fri, 10 Jan 2025 at 02:59, Rick Macklem wrote= : > > > > On Thu, Jan 9, 2025 at 4:31=E2=80=AFPM Dan Shelton wrote: > > > > > > Hello! > > > > > > Does FreeBSD nfsd support the WRITE_SAME request in NFSv4.1 mode? > > Not at this time, I'm afraid. > > > > Maybe in a future release, rick > > How fast could it be implemented? For the simplest version, not too long. The simplest version would be synchronous only and use VOP_WRITE() calls. Doing a new VOP_xxx() call to try and optimize it per-fs would take quite a bit longer. (I know very little about ZFS, but= just maybe, block cloning would be useful for this?) Btw, it is a NFSv4.2 call, so it would only be supported for NFSv4.2 and no= t NFSv4.1. rick > > Dan > -- > Dan Shelton - Cluster Specialist Win/Lin/Bsd >