Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5441151imm; Tue, 19 Jun 2018 10:23:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLpU3Fp8xkd9FQOxb8P6COCxu7cLfVKSkASZK+FswizUAah9ewMMZtC8cf5dKEdA7C8uZmx X-Received: by 2002:a63:b34e:: with SMTP id x14-v6mr15719618pgt.243.1529429017701; Tue, 19 Jun 2018 10:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529429017; cv=none; d=google.com; s=arc-20160816; b=aA5n52KIQVB71/ly0dAFQONHFIv/ruPlKqoFi4ZTH7yFO57pkxA7DVyBpg7QNpxVeO mkUUBvvyyPM89s/G1F0Ax8PQEkKt3sIBQYlsycBRN/2oo4VIt+SyYmfqNCGvZzlZU0f2 uMDVPUDdzF9UhQrHB76mQFTjNxXXzfgxbuAoAHCxcoNZqmN98JSOBkuqzKxIkkk7588b J3bgF0eV68kIRNe6WXg2WCs2JoFehYg9k6SUKqxTE81Vb2n4uk/nHhhAbd2LlWu/yB5U 732MSgzjQgLz4rauZRGQHREqhWEoWcwiOOHVsEnWeHPHkWxo7iDq/iNztj05gyQD9aer uVMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=nAzl8kNBqAbHmG+tSclxGMNXMAWb0KEyr8UAYjI2UMQ=; b=LPVdZ/iN3PZKkFMsGpeFNQ7D8ylv2L/5LTh1W+vEFEGYt68Nx1KqMxZYfM85wG/cyX ZQrEKfFrbNiT7lchOGRovvOJmXk3R2sbV4zPxjigSPixdSXXDxr9I2ed3NUIO8oPVU39 YaF6olbLY3N8rYLPGWlP4mWLS9IDfW2ZZuM3M3ubGQpDxn6iSolVxTsGt4l3Q07Az69y iFu7VosFLKGez9o2HE43hiGcFqOQtXt312X0RF4YZQwLzG++m5FcDcfpwanYcbcyNjku GW3kf1V7/esoDpXvI38y2QaTUpQDHd9/Qv+gPKl9IMLiPTzAWiE1NBvR+g/KfwVnpb+J ZMdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62-v6si174423pfk.197.2018.06.19.10.23.23; Tue, 19 Jun 2018 10:23:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966819AbeFSRWf (ORCPT + 99 others); Tue, 19 Jun 2018 13:22:35 -0400 Received: from hurricane.elijah.cs.cmu.edu ([128.2.209.191]:55466 "EHLO hurricane.elijah.cs.cmu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966502AbeFSRWe (ORCPT ); Tue, 19 Jun 2018 13:22:34 -0400 X-Greylist: delayed 1549 seconds by postgrey-1.27 at vger.kernel.org; Tue, 19 Jun 2018 13:22:33 EDT Received: from [127.0.0.1] (helo=cs.cmu.edu) by hurricane.elijah.cs.cmu.edu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1fVJvt-0004HT-3S; Tue, 19 Jun 2018 12:56:41 -0400 Date: Tue, 19 Jun 2018 12:56:33 -0400 From: Jan Harkes To: Arnd Bergmann Cc: y2038@lists.linaro.org, Jonathan Corbet , Deepa Dinamani , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] coda: stop using 'struct timespec' in user API Message-ID: <20180619165633.acyxrweiedyhvre7@cs.cmu.edu> Mail-Followup-To: Arnd Bergmann , y2038@lists.linaro.org, Jonathan Corbet , Deepa Dinamani , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180619153822.3638475-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619153822.3638475-1-arnd@arndb.de> User-Agent: NeoMutt/20180512 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 05:37:35PM +0200, Arnd Bergmann wrote: > Unfortunately, this breaks the layout of the coda_vattr structure, so > we need to redefine that in terms of something that does not change. > I'm introducing a new 'struct vtimespec' structure here that keeps > the existing layout, and the same change has to be done in the coda > user space copy of linux/coda.h before anyone can use that on a 32-bit > architecture with 64-bit time_t. This looks good to me. > An open question is what should happen to actual times past y2038, > as they are now truncated to the last valid date when sent to user That is definitely quite a hard problem because this propagates all the way back to the Coda file servers and how they store metadata. In fact the existing client-server protocol only uses 32-bit time in seconds, so we already lose the nanosecond resolution and 64-bit systems don't actually benefit from having the extra bits in their struct timespec. Not exposing an internal kernel datatype is definitely an improvement, so this is an ACK for me. Jan