Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5555777imm; Tue, 19 Jun 2018 12:20:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIfPQVx5LoS+3xyeGWz4g0kZLJaLaI6slVtuxTuNmR6QaOz7HOAlqcKuXWG/Zo65a/vW8hB X-Received: by 2002:a62:2091:: with SMTP id m17-v6mr19222337pfj.110.1529436024291; Tue, 19 Jun 2018 12:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529436024; cv=none; d=google.com; s=arc-20160816; b=DcRXbY8spwi5qhTZT+nRC7dtbu8VXh0heYI6+mguXqCOEIVhA0xVAMISNK9AWaum7r +uN8tDht3k9tu6M86HQ+9kIeFieYrGB9/rcw/QRK97iQ5QP5sRVJpLX0Ky6/DomkA5kN qRiC17MPd0/0/Ddn/BErkX6NHmgHhYaKZy29xFg8sfNFLsXIiEk9z/CakXoj6+rRpc8D 7z464LpZuBLu9oY9c4ygBR571i63+gh88eYtqpznvymXOKxfFWhY/+uc4C2IfAa2fBx1 RJBZhsUfh6DP5eUN0PLr63+dwIGEu5L9w0vChcfFRHAoDrjlGjz8BZuXi0GKRmf07NfG vcFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Pd6a1z4ipWg0P576zimc6CBisKhAy0qZBmPYF9sjMSw=; b=Pnjk//G2nml0CXtyfMvjUu6GPK26v0rTdeVvX78tW15Ywjd3jgxGWUga2od3+R0NXR e02aXjuNYbNMCDW14IJWFHUYBYRkAM9kl+CDFOHDEELKFDvl3ST1JQFa18rRrkwNErOI CP2VrqbHV/FnHsTE2zktGXzbqSelaXCDmMHlQe/+geFundjM2BZwbnXFBgviMPPN53Y7 Zalirnw7Wszb1X8REtYBj2YTi9VrUQG4Riw2ECDftF9Zc4848ow/wCcsRik8eThYCMvw XK0GISegj25FY0dq9WFnRbTMTm8UPUkNhb62PlKHZ6kKTECINbZWAR6lNZsI4ZipBh12 Ohzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tOsl4Exq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12-v6si314244pga.608.2018.06.19.12.20.09; Tue, 19 Jun 2018 12:20:24 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tOsl4Exq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030346AbeFSTT1 (ORCPT + 99 others); Tue, 19 Jun 2018 15:19:27 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36701 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966263AbeFSTT0 (ORCPT ); Tue, 19 Jun 2018 15:19:26 -0400 Received: by mail-lf0-f67.google.com with SMTP id n24-v6so1212003lfh.3; Tue, 19 Jun 2018 12:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=Pd6a1z4ipWg0P576zimc6CBisKhAy0qZBmPYF9sjMSw=; b=tOsl4ExqhU6PP2sm0nJQkbh0sz9joyvl1XB8OsZV6+a3XEWkXmNg2AZXHn6g1/7hmO +2tnf8WU9wRpJxxGMhL+/SfPDySxNzUUcmY7m1cxfWzsp9OL8clDwMWO8DvtOBdZzGhf uLaI1TNwuyvEWoDnOto6hXLTD/7A9zUeXfG4wxwHT2fO3bSl9AD0Du7uL/qU39bnAfKR OH36L4uZH5QRmGsIAsPttmGkEWAbGaGYgnz2/3tL9i+/7JDpwq/43ash6bHQk5MREYeX 2yEJRVj/wAYYe23kJjRYdsXtUsfx6VZh12YA72YQIgQ8sQJh6h0o0A+wqEpewOO2NRLe Kmfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=Pd6a1z4ipWg0P576zimc6CBisKhAy0qZBmPYF9sjMSw=; b=bSDIJh8Xgr63s7bOnDtXRrIBbiHrs8r+8kXGbijh9w7Npnm1h9sToGeEdz32o0iB2S 1OoXP6YV4bxl9IaHGILIwcjh6tB9LIly1DJ+Jbr5PF/WQcIbt+GJFeAM8J1ZWrLiQtih ec5Dp/KXXGhhz/9yyxHlSAQy4/xVHmW3Xc1owN8atvBgx1xjLqTEaYDP0Wm9d8U+20r8 9NieBK8vnZXejtl52vXPXdoIZca8aNPtdaRMMEzLTEt58TW6NYO3pbYxOYfl1d5afPfr rwmqKoHOZGSUVChCGAOQtyohWa3RBQYzz8ifLgloPj5e02VSs9Reym9SQ/xizJgAqvSP EIBg== X-Gm-Message-State: APt69E0ogZ46BEstFT/dZBFgzPRXQAyi7XvIdqdBgIaUjH0XAeJRsQET IgWhL/GjIRmwCC/rtMb4IuFLPXFlXQwYes6jozs= X-Received: by 2002:a2e:401b:: with SMTP id n27-v6mr12502574lja.6.1529435964603; Tue, 19 Jun 2018 12:19:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:56c8:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 12:19:23 -0700 (PDT) In-Reply-To: References: <20180619153822.3638475-1-arnd@arndb.de> <20180619165633.acyxrweiedyhvre7@cs.cmu.edu> From: Arnd Bergmann Date: Tue, 19 Jun 2018 21:19:23 +0200 X-Google-Sender-Auth: 5yMbSh2Lo677-M8YAIl07BAjgpg Message-ID: Subject: Re: [PATCH] coda: stop using 'struct timespec' in user API To: Arnd Bergmann , y2038 Mailman List , Jonathan Corbet , Deepa Dinamani , "open list:DOCUMENTATION" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" 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 9:13 PM, Arnd Bergmann wrote: > On Tue, Jun 19, 2018 at 6:56 PM, Jan Harkes wrote: >>> 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. I couldn't find out enough background for this, maybe you can fill it in: I see that there is a user space component and a server component, but I'm not sure if there is exactly one of each, or if there are multiple implementations that are written against the same interface. If we only have one code base, it should be fairly straightforward to make it deal with 'unsigned' timestamps consistently, which would let the code work fine until 2106 rather than wrapping around from 2038 to 1902. > > Not exposing an internal kernel datatype is definitely an improvement, > > so this is an ACK for me. To clarify: the problem isn't as much the internal kernel type, but the glibc internal type that we know is going to change with future glibc versions. This means it is important that the header file change makes it into every user space program that uses the psdev interface. Arnd