Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5118869pxb; Thu, 14 Oct 2021 20:01:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhnYIok+hq3hCathmE0Usc1608MHNVIP7ZoXVGnJedL9mNpXKx27vxn8OlnrAl6vTWdrN2 X-Received: by 2002:a63:ad49:: with SMTP id y9mr6115193pgo.352.1634266869557; Thu, 14 Oct 2021 20:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634266869; cv=none; d=google.com; s=arc-20160816; b=p++C4Qlr4ly8Tu3/12WnETjw93gkd87FQP1QooqaPJXP+Vl1OdIHUd6oPzIFbFSOL3 n5hI0+MRNPqfnnPg56++6uodvUrW+MxtW60/buODYjsSMN5oMbB2ffPTh6NeqqOjsNd/ zZvU9MDJBCssN7aXr7/OnJdyxEzeU690i96+/UrvU4tA+rtekDhGHk2Zyw+2RklGkH6k shkgYHaU6qXBUcMALgaxTLN+qiFlkicghC45VpwqlQhlbhvVVrzAHipXix159AW+/010 MA0W+KsyXiTiPEW3I1gWG1isbX94I/yVZy1vWSsYDUYPaShnUExImnllKaDKUOWRZRNR UciQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oWuNUA7gvuktrIQpr6Pe5SRyXlCwczbw/dYG505Xoj0=; b=BoZYe9mM2Zj6Kk9F0lUYr83KUlt6ZtoJjtaVkoAgrTmYEmh2KxEWxhuZ1LpJnhYIRl 8rZBI4DQshDxcfmSrrbiggPIs5Q0Biv/kEHqPNKQKN93YD38/tdFZkbJm1JrmY1XTjy3 3MJS09k1tWy4S90g+l2crRKDEheF/Pxn6lhUS4Td34woZ66KgRcgfMMoRSdqftd8y1kA m6DaMUQAV+vRS+WHXfk7nlygL1ZrrnpZO3VEggtCSeXy0cUp+CYAtQFdb7x1IK9hftl8 kegxgVMbvyZPTaZx3/HG959sORtcN3FchGI2sb4FZCWEZpJjVJT50+mr+lTjXYY+Zw0A zPvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si5914944pjl.86.2021.10.14.20.00.55; Thu, 14 Oct 2021 20:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234157AbhJNWBa (ORCPT + 99 others); Thu, 14 Oct 2021 18:01:30 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:38712 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229829AbhJNWB3 (ORCPT ); Thu, 14 Oct 2021 18:01:29 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 19ELx9av011867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Oct 2021 17:59:10 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id B48AD15C00CA; Thu, 14 Oct 2021 17:59:09 -0400 (EDT) Date: Thu, 14 Oct 2021 17:59:09 -0400 From: "Theodore Ts'o" To: Gabriel Krisman Bertazi Cc: jack@suse.com, amir73il@gmail.com, djwong@kernel.org, dhowells@redhat.com, khazhy@google.com, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-api@vger.kernel.org, repnop@google.com, kernel@collabora.com Subject: Re: [PATCH v7 26/28] ext4: Send notifications on error Message-ID: References: <20211014213646.1139469-1-krisman@collabora.com> <20211014213646.1139469-27-krisman@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211014213646.1139469-27-krisman@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Oct 14, 2021 at 06:36:44PM -0300, Gabriel Krisman Bertazi wrote: > Send a FS_ERROR message via fsnotify to a userspace monitoring tool > whenever a ext4 error condition is triggered. This follows the existing > error conditions in ext4, so it is hooked to the ext4_error* functions. > > It also follows the current dmesg reporting in the format. The > filesystem message is composed mostly by the string that would be > otherwise printed in dmesg. > > A new ext4 specific record format is exposed in the uapi, such that a > monitoring tool knows what to expect when listening errors of an ext4 > filesystem. > > Signed-off-by: Gabriel Krisman Bertazi > Reviewed-by: Amir Goldstein Reviewed-by: Theodore Ts'o