From owner-freebsd-fs@freebsd.org Thu Apr 25 21:12:47 2019 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11ABC15A29E4 for ; Thu, 25 Apr 2019 21:12:47 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660074.outbound.protection.outlook.com [40.107.66.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 659206C0CA; Thu, 25 Apr 2019 21:12:44 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YQBPR0101MB0852.CANPRD01.PROD.OUTLOOK.COM (52.132.65.154) by YQBPR0101MB1555.CANPRD01.PROD.OUTLOOK.COM (52.132.68.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.16; Thu, 25 Apr 2019 21:12:43 +0000 Received: from YQBPR0101MB0852.CANPRD01.PROD.OUTLOOK.COM ([fe80::39fc:b2f:42e8:a1d4]) by YQBPR0101MB0852.CANPRD01.PROD.OUTLOOK.COM ([fe80::39fc:b2f:42e8:a1d4%4]) with mapi id 15.20.1835.010; Thu, 25 Apr 2019 21:12:43 +0000 From: Rick Macklem To: Adam , Kurt Jaeger CC: freebsd-fs Subject: Re: NFS 4.2 plans ? Thread-Topic: NFS 4.2 plans ? Thread-Index: AQHU+5raoPZlHF+nd0yQLy86FMFq9aZNRP4AgAAVpnY= Date: Thu, 25 Apr 2019 21:12:43 +0000 Message-ID: References: <20190425191224.GI9159@fc.opsec.eu>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: af91374c-4cae-4b8d-771a-08d6c9c2c210 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:YQBPR0101MB1555; x-ms-traffictypediagnostic: YQBPR0101MB1555: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-forefront-prvs: 0018A2705B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(376002)(136003)(39860400002)(346002)(189003)(199004)(229853002)(2906002)(71190400001)(476003)(71200400001)(7696005)(6436002)(6246003)(55016002)(53936002)(966005)(86362001)(486006)(6306002)(76176011)(256004)(9686003)(4326008)(25786009)(14454004)(99286004)(74316002)(52536014)(81166006)(46003)(786003)(68736007)(110136005)(102836004)(11346002)(316002)(6506007)(8936002)(305945005)(97736004)(446003)(81156014)(8676002)(33656002)(66446008)(64756008)(66476007)(74482002)(76116006)(66556008)(73956011)(5660300002)(7116003)(66946007)(478600001)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:YQBPR0101MB1555; H:YQBPR0101MB0852.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: nD8dkZ5NneVbuUeTKw3OdRtoIKlAS17xpgK6toUCfJhXlYe9GXfj65sv4BFGOOLq7C9QeCt4meEh94mOI47SMRbcpJ/NGNTg38nbEDZJXGoAMfkXu0/k42b2/zvwut7gQf98vwB5cFBh4FhUlPk2dL/b6GfkfVbVdaswdCi6wMAjIPc8bkiKM7WrbJ2PMYj8tnqgg+wJJCOVKQvScbFtBGHiwccTmy+sFVyivgpa7zhPiRtYchyGu/Lgg3G7o2wQEa7orW6SLeSfFR06NdVaiet6xbTvzriqnyR8j5FMFooboYziHDLe8wmuwn5H4IjhumPPYLyphCkkipJyB5mi9gYZusuu6tA1vfmtQm4MwmKZi7ut/ascspLcmcUN5fuCgJatryVns58bQM/1lduHVRH0F6h/ZyhHmvIxPABldAI= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: af91374c-4cae-4b8d-771a-08d6c9c2c210 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2019 21:12:43.5020 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB1555 X-Rspamd-Queue-Id: 659206C0CA X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.66.74 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-3.05 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[uoguelph.ca]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com]; NEURAL_HAM_SHORT(-0.75)[-0.750,0]; RCVD_IN_DNSWL_NONE(0.00)[74.66.107.40.list.dnswl.org : 127.0.3.0]; IP_SCORE(-0.99)[ipnet: 40.64.0.0/10(-2.66), asn: 8075(-2.22), country: US(-0.06)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Apr 2019 21:12:47 -0000 Adam wrote: >> >> I've read that NFS 4.2 was specified 2016 in >> >> https://tools.ietf.org/html/rfc7862 >> >> so who knows if someone is working on this ? >> > > >https://lists.freebsd.org/pipermail/freebsd-current/2017-December/067755.h= tml The NFSv4.2 stuff lives in the FreeBSD svn under: projects/nfsv42 What is there works, but doesn't have many of the new features (which are a= ll optional) implemented in it. I do have some work I've done on it during the winter, which I will be sync= 'ing into the above projects branch sometime soon. To be honest, I don't think most of it will be particularily useful. Exampl= es of what it will are: - Some support for the posix_fadvise POSIX_FADV_WILLNEED POSIX_FADV_DONTNEED - Some support for the posix_fallocate() operation. - pNFS LayoutError, which allows the client to report an I/O error without = returning the layout (for NFSv4.1, the client must report the I/O error via a Layou= tReturn). - I don't think this is useful for the FreeBSD client, which will always = do a LayoutReturn The big one that I intend to do for the is the intra-server file copy. I do plan to get this into FreeBSD13, but I can't be sure. It will require = a fair amount of "negotiation" for things like adding a system call to do the file copy. (I will start with whatever Linux has, since Solaris is no longer mai= nstream imho.) I am also not sure if it possible to do per-file cloning within ZFS. (ZFS h= as per-fs cloning, but the NFSv4.2 spec supports a similar operation, but for a singl= e file. Basically, cloning of a file allows the clones to be copied on write after = the clone is created. Unless it can easily be done within ZFS, it won't be in the NFS= v4.2 implementation. If you are interested, check the commit logs for projects/nfsv42 accessible= via svnweb.freebsd.org. rick