public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: "Lukáš Czerner" <lczerner@redhat.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>,
	linux-ext4@vger.kernel.org, nikola.ciprich@linuxbox.cz
Subject: Re: [PATCH] ext4: add sysfs entry showing whether the fs contains errors
Date: Wed, 7 May 2014 10:44:34 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.1405071040240.2128@localhost.localdomain> (raw)
In-Reply-To: <20140506192325.GB5012@thunk.org>

On Tue, 6 May 2014, Theodore Ts'o wrote:

> Date: Tue, 6 May 2014 15:23:26 -0400
> From: Theodore Ts'o <tytso@mit.edu>
> To: Darrick J. Wong <darrick.wong@oracle.com>
> Cc: Lukas Czerner <lczerner@redhat.com>, linux-ext4@vger.kernel.org,
>     nikola.ciprich@linuxbox.cz
> Subject: Re: [PATCH] ext4: add sysfs entry showing whether the fs contains
>     errors
> 
> On Tue, May 06, 2014 at 10:43:01AM -0700, Darrick J. Wong wrote:
> > 
> > Minor complaint: "contains" makes me think that cat'ing that file will return
> > either 0 or 1, not a string of error text.  Perhaps we could shorten it to
> > /sys/fs/ext4/sda/errors ?
> 
> What I'd suggest doing is simply calling it errors_count, and
> returning s_error_count.  While we're at it, we could also return
> s_first_error_time and s_last_error_time as well, since I imagine
> those would could be quite useful for someone trying to create a
> system health monitoring daemon.
> 
> Cheers,
> 
> 						- Ted

Right now I am using the same function which prints this information
to the log. So I am going to use simpler output for the sysfs.

<error count> <first time> <function>:<line> <last time> <function>:<line>

That should be easy to parse. I think that just calling it errors is
good enough.

Thanks!
-Lukas

  reply	other threads:[~2014-05-07  8:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06 13:19 [PATCH] ext4: add sysfs entry showing whether the fs contains errors Lukas Czerner
2014-05-06 17:43 ` Darrick J. Wong
2014-05-06 19:23   ` Theodore Ts'o
2014-05-07  8:44     ` Lukáš Czerner [this message]
2014-05-20  9:47       ` Nikola Ciprich
2014-05-20  9:56         ` Lukáš Czerner
2014-07-29 14:49           ` Theodore Ts'o
2014-07-30  7:47             ` [PATCH] ext4: add sysfs entry showing whether the fs contains errorsx Lukáš Czerner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.00.1405071040240.2128@localhost.localdomain \
    --to=lczerner@redhat.com \
    --cc=darrick.wong@oracle.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=nikola.ciprich@linuxbox.cz \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox