Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2535861ybe; Tue, 3 Sep 2019 14:32:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyA5Gctf58zCPHQzAfdqUPs7QPGlOLqpDDNNXRTzpxB9DaBMrGZFja5VbXbZzaX3e+5PIgq X-Received: by 2002:a17:90a:bc06:: with SMTP id w6mr1499285pjr.130.1567546354415; Tue, 03 Sep 2019 14:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567546354; cv=none; d=google.com; s=arc-20160816; b=Fml4UdpNT6Arlvrr7UtjtUZMX/zl/FO9zaxVD9Bt9jnbTZFb6jnQ/eXSZbb+mpnsid j8/dZ3U7Yd9LzvWAQZ5pAn4BAXu5KGHqZrtXNkHyxp5q7mlMABm0dIMfUXNBRjKcspnz gMLQuut0GKQBk4Mn78mTH4nK/vzgoyBmzFQJLWe3PzyP1gj5yIpKIMsm22UQcSEOWtYI XVhes5Hjnl85fsePODD4REeFP+ndBpx7nPHPaXTkXRitKkD4WkdQmKkksmYhZ7+McP6d 9P8N3bY/Gv+2gr9J0aZdUA0HsLKZ1qvm16OE80vG/IWP3E8svinLBmCiEECJ1KQ3dONT 3j3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sgg+hgCp6X2Un4SsyW+3qZ5TSFEYSxv9pzy5icvxR5Q=; b=g64M4jnOeB5PFAJ6wKPkwiwEDqDrkqhmIH51qG10RVlNzc8AdFlCRtK0I/IfhJ1KcI z3INJ4pbYKRSe0NowklWiT6ol4ITToo5XygIYITZ9ZbQa9iI3FKBZ4s19O1U6MLY++aR SQFVrscEei+nRnLw2irVCc7qKbmzZnkqlTX7nGIuWimvxvRaZi+jESo7MR7uU8OJWw1A 5BDodL3D9gsq/v2iu1OrA4qMtqBvVqbwv7Z99YrgOpeA16caxOoM1JCHn9YiB6N2109X tJE7mpfGb75gFtczEPGlM6ITvUhK0ct3qBiOlvGn9DTbJgAg0AAUws4j0cZEFZl7EsjR s6lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cVXx869w; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n24si11075303pfa.167.2019.09.03.14.32.18; Tue, 03 Sep 2019 14:32:34 -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=pass header.i=@gmail.com header.s=20161025 header.b=cVXx869w; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbfICVbT (ORCPT + 99 others); Tue, 3 Sep 2019 17:31:19 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:41508 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfICVbT (ORCPT ); Tue, 3 Sep 2019 17:31:19 -0400 Received: by mail-io1-f65.google.com with SMTP id f19so1077427iof.8; Tue, 03 Sep 2019 14:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sgg+hgCp6X2Un4SsyW+3qZ5TSFEYSxv9pzy5icvxR5Q=; b=cVXx869w7AOAbXnHxMv3DkjrwOXif49phbiltz8MmrsuDF6uuKQUw+qy4J65cDsMZL 9DhgaVYSi1oZzI/RxpwjvpJSxUoxYl+TqN+Hq5OSob5YNnvbro2nHcIhzR+D7I0PRisj A85/YlZGOFrvRSh3Nb+N6SJzjglfxzX/SW6d2DPgdmYHBfhy9R5QxZF51yeCRzYUQp5s civHY6gG1Alh2IujuwTP3GVGzsrBdDZ2RH3TY1y/Lbg+1IFxlOFls5D7tAJR9PL1FKk5 3bWc3iJmJMZ5Y8oWQcOduKeZ1kw623ZQhxHgWIuYFQLP3NzpN4osOpj79BzYWgkqXQrq GUPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sgg+hgCp6X2Un4SsyW+3qZ5TSFEYSxv9pzy5icvxR5Q=; b=aArE05oDmHjf0z9GGrEfFZLLVM5rUB3kvYl2fK2dwg9p87LgvvUWTt3b6iMFDLWCb+ OZq83ewBDhc8CfpEr8+8drsU8l4Z94YntUF3i0hAzd/6BCFY+II3l3Uq256DCjLdjBcR GgetZLL1rgb/QZt6X9uPcDNwfmXmbFwn8YUsWgx/mzQ2r5/eoqRdrhr7dsHpCOy1qzFU v5fAJIzzHP6pb/iOPB9NWr8imykalC+X+lKQiEtkfj1v0hcDVogrdUPI5hDxCUEPgfEj CybJIjg/Ctbyn4/8rDQRp5XA/SS6/UJcPD5XOplZAPz1utplXktBIYEgcrwqEXIxT9aO Q1wA== X-Gm-Message-State: APjAAAVrtt4Ln8i8CPk5pyEMwsxGtFoZ0cfztEJj/m+BFRmcKD7/Gh2g b2gl34vx8VsgilMOXIe9ZZy4ZH28SpkmaRiG9TWtaQ== X-Received: by 2002:a02:948c:: with SMTP id x12mr1916478jah.96.1567546277969; Tue, 03 Sep 2019 14:31:17 -0700 (PDT) MIME-Version: 1.0 References: <1567523922.5576.57.camel@lca.pw> <20190903211747.GD2899@mit.edu> In-Reply-To: <20190903211747.GD2899@mit.edu> From: Deepa Dinamani Date: Tue, 3 Sep 2019 14:31:06 -0700 Message-ID: Subject: Re: "beyond 2038" warnings from loopback mount is noisy To: "Theodore Y. Ts'o" Cc: Qian Cai , Jeff Layton , Alexander Viro , Linux FS-devel Mailing List , Linux Kernel Mailing List , Ext4 Developers List , Andreas Dilger , Arnd Bergmann 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, Sep 3, 2019 at 2:18 PM Theodore Y. Ts'o wrote: > > On Tue, Sep 03, 2019 at 09:18:44AM -0700, Deepa Dinamani wrote: > > > > This prints a warning for each inode that doesn't extend limits beyond > > 2038. It is rate limited by the ext4_warning_inode(). > > Looks like your filesystem has inodes that cannot be extended. > > We could use a different rate limit or ignore this corner case. Do the > > maintainers have a preference? > > We need to drop this commit (ext4: Initialize timestamps limits), or > at least the portion which adds the call to the EXT4_INODE_SET_XTIME > macro in ext4.h. As Arnd said, I think this can be fixed by warning only when the inode size is not uniformly 128 bytes in ext4.h. Is this an acceptable solution or we want to drop this warning altogether? Arnd, should I be sending a pull request again with the fix? Or, we drop the ext4 patch and I can send it to the maintainers directly? > I know of a truly vast number of servers in production all over the > world which are using 128 byte inodes, and spamming the inodes at the > maximum rate limit is a really bad idea. This includes at some major > cloud data centers where the life of individual servers in their data > centers is well understood (they're not going to last until 2038) and > nothing stored on the local Linux file systems are long-lived --- > that's all stored in the cluster file systems. The choice of 128 byte > inode was deliberately chosen to maximize storage TCO, and so spamming > a warning at high rates is going to be extremely unfriendly. > > In cases where the inode size is such that there is no chance at all > to support timestamps beyond 2038, a single warning at mount time, or > maybe a warning at mkfs time might be acceptable. But there's no > point printing a warning time each time we set a timestamp on such a > file system. It's not going to change, and past a certain point, we > need to trust that people who are using 128 byte inodes did so knowing > what the tradeoffs might be. After all, it is *not* the default. We have a single mount time warning already in place here. I did not realize some people actually chose to use 128 byte inodes on purpose. -Deepa