Re: [PATCH] ext4: add sysfs entry showing whether the fs contains errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> Date: Tue, 6 May 2014 15:23:26 -0400
> From: Theodore Ts'o <tytso@xxxxxxx>
> To: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
> Cc: Lukas Czerner <lczerner@xxxxxxxxxx>, linux-ext4@xxxxxxxxxxxxxxx,
>     nikola.ciprich@xxxxxxxxxxx
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux