From nobody Fri Jan 10 23:24:42 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 4YVHnC6XgFz5kmhL for ; Fri, 10 Jan 2025 23:25:03 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 4YVHnC03rGz4t6K for ; Fri, 10 Jan 2025 23:25:03 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=YTS8K27M; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5d3e6274015so4126222a12.0 for ; Fri, 10 Jan 2025 15:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736551501; x=1737156301; 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=nxsI6SHcSRMSvzybCTSOVFx/1K3Fi6s2nCquzMQxXVA=; b=YTS8K27MzSdDzRZtFozdS6zJSs+KLtkVg9ItsQISnF9j5/NSTgZY69pAUyEbNkDsyC 2kshf8794yzSlFSVd+aQYb3JKurTCw7bAXApedzYBtnsi8/srWi0/DD3ss5eyAmfyu6J eZBGSK5skQvvLlONtNrXEjT8AZzhynxEq/EIMj08F+E1KwAZgvouyRKG/cCQOqD1hHkv zbSPhtkWmC0lP2ypiEfoTp4pYVqsnCMbSP82w96C09HUahzAq02AkL23CYx2IRU6vKHU iC3UfJVDYyRce4kIUP1flaz4FKGbLdyRZi/73i6pp6QT/VuheYoZzBRqXNAIfK6IcBij a76A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736551501; x=1737156301; 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=nxsI6SHcSRMSvzybCTSOVFx/1K3Fi6s2nCquzMQxXVA=; b=gmv9CHwhxOSkHUv6gywBfuftJu1QoORjHDUSxcxH+LZDsj5VW33v6xAZnoy16SWJRZ 5a9/8H3qpw7e4dZ+xK8Vgt5yTSf0i9kRyaxNC2yejB/o1svYOTKzmccHyw4fL7aBAO0w T70Xjr3O0/QGiHqV2fMwmvQzPZiZcFN6GEc2cQ+cXeTJmiaRbW2gVIA1FkXfCv+J/1Yb YvN9/nUWQhr+Vz853+MURAC4NbmJycXfpboLzldiDFUTeltBaX3LK/BeKKIEm5yxe6ff UDe+KEJX3WXgwGJb9uR/l+o8LMGLQJuZzSIsJGh2LUxESaHFTS0mynLiM2KP9YYvNM6n khUw== X-Gm-Message-State: AOJu0Ywt9Ap7Fj5APWPiOpUTGvgQM0FQCKeLoCSXuuHw+C4VD4xVwnQ6 y6lfLQ2NQOUoLJoMPuzkcZZIeKiVrE6ic+ylNe2+Pij86Qm/gtae/RAlqeW0ma+0hOnNu17yVUZ 0I6M6CMSNcKYxSlpcWRI0YbGkDrkP X-Gm-Gg: ASbGncv2+SQCwl6n5j/ArsO1+mUMzzCVZ95rqmi1EUvuq2AUiiGw1OMRK0IdB9y93oq xetDWFig9ONnb64vCwAAitOfsn7/b0OxR9fXGofyebuoJETXM2fjLcxJmxGLOkcfTc8L0ejc= X-Google-Smtp-Source: AGHT+IFpHOCGjnaBkgmLxOtOesKjW+7W5IKc7/P8A916phKJ0smPCBhCNQ4HNX0FEwHxz9IZIL5fC9qhqkb4N6uFc6o= X-Received: by 2002:a05:6402:2345:b0:5d0:b51c:8479 with SMTP id 4fb4d7f45d1cf-5d972e0a087mr12088443a12.10.1736551500722; Fri, 10 Jan 2025 15:25:00 -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 15:24:42 -0800 X-Gm-Features: AbW1kvbhzG3yh9uRoS4WlHRtSjEd5QUvsaiXQk9MQEROOX_zk5REM7ClptJJfKw 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: 4YVHnC03rGz4t6K 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)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; 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::532: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? I will probably try to come up with at least a proof of concept patch soon. Once I have that much, I can start to think of what a VOP_WRITESAME() might look like. If possible, it would be nice to get this in 15, since it = would have to wait for 16 otherwise. Dan, if you could create a bugzilla PR (bugs.freebsd.org) asking for this a= s a new feature, at least it won't get completely forgotten and I can hang patc= hes there. You could look at the release schedule for FreeBSD 15 to see what the optimistic bound on an implementation of this is. rick ps: If you can discuss it, I would also like to hear something about the use case. This can help justify the work. > > Dan > -- > Dan Shelton - Cluster Specialist Win/Lin/Bsd >