From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89A79C433DF for ; Fri, 26 Jun 2020 15:05:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 64562207E8 for ; Fri, 26 Jun 2020 15:05:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593183903; bh=p/3If5DPn1u2nlI9onpW6gMxW3c9vb7aDYcf/r+jStk=; h=From:To:Cc:Subject:Date:List-ID:From; b=gSk3+bF937Dx0McMOe/kWk78xnrRgkAVQF5E5LJ5BAijT3/KQCb727V2nWx6++5I/ /lsqru3QxNwV4T9RgDutQJ1ifaIPsMSKtWTG0z1Xe0oP/E0o3TWHIvC8ZM8Dziw/uL TfbnyVbQ2AScHgSqoWm9qoiSsBhs6Mb882cMerOo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727943AbgFZPFC (ORCPT ); Fri, 26 Jun 2020 11:05:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:57028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbgFZPFC (ORCPT ); Fri, 26 Jun 2020 11:05:02 -0400 Received: from tleilax.com (68-20-15-154.lightspeed.rlghnc.sbcglobal.net [68.20.15.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C342206E9; Fri, 26 Jun 2020 15:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593183902; bh=p/3If5DPn1u2nlI9onpW6gMxW3c9vb7aDYcf/r+jStk=; h=From:To:Cc:Subject:Date:From; b=qe8l7G0g4avILFfCxWGviR10U4cJg0Ls+ryR+p0Glwq4ar3rpi1K8eYVoLBwePqVE gx3uYFm5HrBAZ8gTWytMrFN8VPtpVoLbL1BvgIe98yh8s6SMefxsZuEqb1efXDSzrd 08xBpqOK3THHV97r2k6IBX8gSURnuXWk39Zkl0qU= From: Jeff Layton To: dhowells@redhat.com Cc: linux-fsdevel@vger.kernel.org, andres@anarazel.de Subject: [fsinfo PATCH v2 0/3] fsinfo: add error state information to fsinfo Date: Fri, 26 Jun 2020 11:04:57 -0400 Message-Id: <20200626150500.565417-1-jlayton@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Hi David, I sent a draft version of these patches back in 2018. The per-sb errseq_t tracking was just merged for v5.8, so most of the underlying infrastructure is now in place. Wiring up the reporting of that to fsinfo() is fairly trivial. Can you toss these onto your fsinfo pile? If that goes in at some point in the future, it'd be nice to have this infolevel available on day 1. This is based on your current fsinfo-core branch. The patches are also available here if you want to cherry-pick them instead: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/log/?h=fsinfo-wberr Thanks! Jeff Layton (3): errseq: add a new errseq_scrape function vfs: allow fsinfo to fetch the current state of s_wb_err samples: add error state information to test-fsinfo.c fs/fsinfo.c | 11 +++++++++++ include/linux/errseq.h | 1 + include/uapi/linux/fsinfo.h | 13 +++++++++++++ lib/errseq.c | 33 +++++++++++++++++++++++++++++++-- samples/vfs/test-fsinfo.c | 10 ++++++++++ 5 files changed, 66 insertions(+), 2 deletions(-) -- 2.26.2