From owner-freebsd-fs@freebsd.org Wed Apr 19 20:29:11 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A358DD46E3A for ; Wed, 19 Apr 2017 20:29:11 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660058.outbound.protection.outlook.com [40.107.66.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 52D961E29 for ; Wed, 19 Apr 2017 20:29:10 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM (10.165.218.133) by YTXPR01MB0191.CANPRD01.PROD.OUTLOOK.COM (10.165.218.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 19 Apr 2017 20:29:08 +0000 Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) by YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) with mapi id 15.01.1034.015; Wed, 19 Apr 2017 20:29:08 +0000 From: Rick Macklem To: Doug Rabson CC: "freebsd-fs@freebsd.org" , "jim@ks.uiuc.edu" Subject: Re: NFSv4 Linux client atime for exclusive create Thread-Topic: NFSv4 Linux client atime for exclusive create Thread-Index: AQHStW9Xwd3iU1MkQkKHy7u7vlbe/6HM0kmAgABXYs0= Date: Wed, 19 Apr 2017 20:29:08 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=uoguelph.ca; x-microsoft-exchange-diagnostics: 1; YTXPR01MB0191; 7:TfEHfgdffpM8gzz6obYSp7EG2aM/0stVM+MfSSWw8d2sw5vXZBjy9dpTaFMAppkHb8EpFA0uAjI1kA67yVm5Qp5M0bNTUXeJdl/8sNG44d2w2PbxZwfQPXn/lh91SI0T7opxH6PGRJOVgny1MVrw0tFk9jo7iQa2ZUF8JLsGAmiy/YsfSjCB1LTmET0CySOLHatP7MEZzdts5NSk3hp1OoeM0a/iP6ldDG2KFyIqYqDeeQji1sNOPjWSP48mLkKG90vWcMC/PM4qDxeEDOeSfD+kFCA8Nt6VmRv/7/qpxvGKmX+6FMrUMvNIUM8r3ljItZ1DUUBEL1QOJU3/iMsrvQ== x-ms-office365-filtering-correlation-id: 55ad63c5-7eab-44b1-21b2-08d48762bb63 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:YTXPR01MB0191; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123564025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:YTXPR01MB0191; BCL:0; PCL:0; RULEID:; SRVR:YTXPR01MB0191; x-forefront-prvs: 028256169F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39840400002)(39850400002)(39400400002)(39450400003)(51444003)(24454002)(4326008)(9686003)(110136004)(54906002)(55016002)(7696004)(229853002)(305945005)(2950100002)(38730400002)(74316002)(53936002)(5660300001)(6916009)(122556002)(33656002)(81166006)(6506006)(54356999)(76176999)(6436002)(6246003)(2900100001)(3280700002)(102836003)(2906002)(8936002)(77096006)(50986999)(8676002)(25786009)(189998001)(3660700001)(74482002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:YTXPR01MB0191; H:YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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-originalarrivaltime: 19 Apr 2017 20:29:08.4982 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR01MB0191 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 20:29:11 -0000 Doug Rabson wrote: >Is the client using EXCLUSIVE4 or EXCLUSIVE4_1 for the open? If its EXCLUS= IVE4_1, i.e. the >mode which allows attribute setting during the open, the = client should use the value of >the supattr_exclcreat attribute (see sectio= n 5.8.1.14 of rfc5661) to figure out what >attributes can be set. In this c= ase, supattr_exclcreat should not include atime which should >force the cli= ent to update it separately. The packet trace Jim sent me was NFSv4.0 and, as such, used EXCLUSIVE4. (The Open was followed by a Setattr in a separate compound RPC that only sp= ecified the "mode" attribute. The client never seemed to specify an atime.) I haven't tried an NFSv4.1 mount yet, but I need to take a look at it. (I did succeed in reproducing the problem with an NFSV4.0 mount from a Linu= x box I have.) >It would be helpful to see a packet trace for this which should make it cl= earer what is >happening here. Jim did send me this off list. I now have a patch that stores the create_verifier in an extended attribute= and I think that should be fine? (It does imply that NFSv4.0 read/write mounts will onl= y work correctly for server file systems that support extended attributes, but I t= hink that is a reasonable restriction that can't be avoided?) [stuff snipped] rick=