Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp106287ybh; Mon, 9 Mar 2020 17:18:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvc9bssoYe72cc6/Cnl2SSrVpbfkOWSp0uyimRAjyKbc66kKUMtu3PxlrVU5K9tIxjYD7hs X-Received: by 2002:a54:4f14:: with SMTP id e20mr85697oiy.84.1583799536229; Mon, 09 Mar 2020 17:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583799536; cv=none; d=google.com; s=arc-20160816; b=ICXv4LMqYaVECdjtIyzq2T0WmJXcB/h/mZQihuiW5PLwp7zlVyaYHujWMHChyJ4Rlr S6uN/Qw/mH6A0dKmSUASBTc67VD6UdKQiTqMqGmQBfFVNCkk2L1eqT+ohsAubSIg2UgI YqB4sC3a1VXB8Qp0rIgJ2KJhDR/PCKLQoxuL9oNKUgPWosXNkEw/FeRvRJoXAFZwQ9yO Q+XKWpef1T3eEnDbqzQrHbDuA72ngiGkVDGuV07yj4ZKQH5mEOhV0+Gu8oUcyt6iUCTv 4eDQtc9gUBxizmqh2y62yU4aIcNPFg2ncKr5l8r4Z3jczsjGXV92VoPQ5luuH8csgHP+ pG8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=y2GQYGvf1VdVHeGmvE5sDqwzusjgACWrEd8rXJZj1/8=; b=LALHgI5F0/zev9ifPodjn7tTdYji+SEE2ScXQkDeNRfpZgod4dTWGtwQMDn4n0nOVX 18lemXRSPXdfSGGeleAzgUJErZrlmmC+5yMXvKvCyJ9fflNFzUAyoiXP+RgtleYX1CCe t5Ndr868GVfjIuQWrh9FnoGr3iFiSFkijRiNIk7kPJYorYPR+2wY06QU9Ggk35GyybXQ 23wbZ/Y7wPLYapT1gHiKgwuf4t8+1VOZDe6fesh+oC7B5Qsp7PTeWTugLYGsjZBdIu7v 7twygklbTlnbWfTR5dM3p9Tu4J4FBsTgJa613EAltCPxIms4WwR7Av4Zmp4JPk6J4j9O Klgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm1 header.b=hCLjptm8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=hR1CHx7s; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 m1si7023836otn.271.2020.03.09.17.18.29; Mon, 09 Mar 2020 17:18:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@anarazel.de header.s=fm1 header.b=hCLjptm8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=hR1CHx7s; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727322AbgCJAS1 (ORCPT + 99 others); Mon, 9 Mar 2020 20:18:27 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:39277 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbgCJAS0 (ORCPT ); Mon, 9 Mar 2020 20:18:26 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 35D6B2B17; Mon, 9 Mar 2020 20:18:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 09 Mar 2020 20:18:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=y2GQYGvf1VdVHeGmvE5sDqwzusj gACWrEd8rXJZj1/8=; b=hCLjptm8wkq6KP7tCx7x9OtPNkX0eMvm5L8o2L97Wdo y7vZrsFkN2f4S8Xv4R8dqRogUS/9W/QJ66jTev5Aoip48Jo0P4gB73pf4vehqIPK JjNTp8MWQ1ArZcM945bWyUlu9TnTT7vRowJNgZw7oaWVz+6Ro+kUV+BvaTb/Axir Rd6auBHkdyebUJ4UZ8DYveKmdHVSu6fdUbPx5wy2rYk0qCyFwSg38WMAwVPUg5Ku GA4lOOXpIKxaAK22UekVw8FFJzKTa6OzjJ9Oxk/T3qcyaA35MUgwyxYjd1ZtgS6K i5h6lcNjdPFhMmGhYyeM8m3cEHGO/5NZU3TbC7SzNdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=y2GQYG vf1VdVHeGmvE5sDqwzusjgACWrEd8rXJZj1/8=; b=hR1CHx7sGSLI0tfsHsnts5 3Hmffp3/lf5X5mVKSJZiHGvay1HEsa/lAhINcfhikONaFnXvPMdWcLXqeI65qu98 5IGZzvzrZLQ9rEQZTkcsAFr2dIvY4csYaQValDPkpQpiqkp6DIy7g6XepjoptqAM TAM4ZHUlxf1IYp29XvsF7D7DaBJDJkw0kAtUKVLfY/O4E08dDeL6j/ykjMW5rpWe 5XcWL8In/VDf8l+3tnGbBDB8uwSj9B1NPqbn3/lNK7AcsnmcVtwEgK191sA2Nh4G LIeRxCXeQnoCNpMDjJXnTOClDNOcp3XeJNhqoSjyqGciCTV5p+IuLeAxePrsi5bg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudduledgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudejrddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 007C43061856; Mon, 9 Mar 2020 20:18:23 -0400 (EDT) Date: Mon, 9 Mar 2020 17:18:21 -0700 From: Andres Freund To: Jeff Layton Cc: David Howells , torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, Theodore Ts'o , Stefan Metzmacher , Andreas Dilger , linux-ext4@vger.kernel.org, Aleksa Sarai , Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, linux-api@vger.kernel.org, raven@themaw.net, mszeredi@redhat.com, christian@brauner.io, jannh@google.com, darrick.wong@oracle.com, kzak@redhat.com, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/14] VFS: Filesystem information [ver #18] Message-ID: <20200310001821.vb7qwfhnq67rsknn@alap3.anarazel.de> References: <158376244589.344135.12925590041630631412.stgit@warthog.procyon.org.uk> <2d31e2658e5f6651dc7d9908c4c12b6ba461fc88.camel@redhat.com> <20200309192240.nqf5bxylptw7mdm3@alap3.anarazel.de> <32c384ac3adf0cf924d3071a13af7edffe53cc2b.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32c384ac3adf0cf924d3071a13af7edffe53cc2b.camel@redhat.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi, On 2020-03-09 18:49:31 -0400, Jeff Layton wrote: > On Mon, 2020-03-09 at 12:22 -0700, Andres Freund wrote: > > On 2020-03-09 13:50:59 -0400, Jeff Layton wrote: > > > I sent a patch a few weeks ago to make syncfs() return errors when there > > > have been writeback errors on the superblock. It's not merged yet, but > > > once we have something like that in place, we could expose info from the > > > errseq_t to userland using this interface. > > > > I'm still a bit worried about the details of errseq_t being exposed to > > userland. Partially because it seems to restrict further evolution of > > errseq_t, and partially because it will likely up with userland trying > > to understand it (it's e.g. just too attractive to report a count of > > errors etc). > > Trying to interpret the counter field won't really tell you anything. > The counter is not incremented unless someone has queried the value > since it was last checked. A single increment could represent a single > writeback error or 10000 identical ones. Oh, right. A zero errseq would still indicate something, but that's probably fine. > > Is there a reason to not instead report a 64bit counter instead of the > > cookie? In contrast to the struct file case we'd only have the space > > overhead once per superblock, rather than once per #files * #fd. And it > > seems that the maintenance of that counter could be done without > > widespread changes, e.g. instead/in addition to your change: > What problem would moving to a 64-bit counter solve? I get the concern > about people trying to get a counter out of the cookie field, but giving > people an explicit 64-bit counter seems even more open to > misinterpretation. Well, you could get an actual error count out of it? I was thinking that that value would get incremented every time mapping_set_error() is called, which should make it a meaningful count? Greetings, Andres Freund