lkml.org 
[lkml]   [2021]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] ubifs: ubifs to export filesystem error counters
Date
Hello Richard,

> > Not all ubifs filesystem errors are propagated to userspace.
> >
> > Export bad magic, bad node and crc errors via sysfs. This allows userspace
> > to notice filesystem errors:
> >
> > /sys/fs/ubifs/ubiX_Y/errors_magic
> > /sys/fs/ubifs/ubiX_Y/errors_node
> > /sys/fs/ubifs/ubiX_Y/errors_crc
> >
> > The counters are reset to 0 with a remount.
> >
> > Signed-off-by: Stefan Schaeckeler <sschaeck@cisco.com>
> > ---
> > Changes in v2:
> > - merged sysfs.h header into ubifs.h.
> > - io.c: wrapped incrementing error counters into new functions
> > record_*_error().
> > - sysfs.c: removed sysfs write callback for clearing stats.
> > - sysfs.c: ubifs_sysfs_register(): free c->stats on error.
> > - sysfs.c: ubifs_attr_show(): use sysfs_emit().
> >
> > fs/ubifs/Makefile | 2 +-
> > fs/ubifs/io.c | 21 +++++++
> > fs/ubifs/super.c | 16 ++++-
> > fs/ubifs/sysfs.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++
> > fs/ubifs/ubifs.h | 35 +++++++++++
> > 5 files changed, 225 insertions(+), 2 deletions(-)
> > create mode 100644 fs/ubifs/sysfs.c
>
> Queued for 5.16.

The merge window for 5.16 is about to close. May I point out that, as far as I
can tell, you have not sent a pull request for ubifs, yet.

Stefan

\
 
 \ /
  Last update: 2021-11-13 03:15    [W:0.122 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site