linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] xfs: add customizable default values for error configuration
@ 2017-08-21 11:54 Hou Tao
  2017-08-21 11:54 ` [PATCH RFC 1/3] xfs: prepare for the customizable default values of " Hou Tao
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Hou Tao @ 2017-08-21 11:54 UTC (permalink / raw)
  To: linux-xfs; +Cc: darrick.wong, cmaiolino

Hi all,

XFS has the configurable error handlers for each mounted device, but
the default values of these configuration are static. It will be useful
to make the default values customizable when there are many XFS filesystems
and we need to shutdown the filesystem after getting any error.

The patches are simple. A sysfs tree is created under .../xfs/default_error
and its hierarchies are the same with the tree under .../fs/xfs/<dev>/error.

When the default value of any error configuration is being modified, the
corresponding value of all mount points will be checked again the old
default value. If they are the same, the value of the mount point will
be updated to the new default value as well, else the value of the mount
point will NOT be changed.

Thoughts, reviews, flames appreciated.

Tao

Hou Tao (3):
  xfs: prepare for the customizable default values of error
    configuration
  xfs: add sysfs files for default values of error configuration
  xfs: make the default values of error configuration customizable and
    workable

 fs/xfs/xfs_buf_item.c |   6 +-
 fs/xfs/xfs_mount.c    |   9 +-
 fs/xfs/xfs_mount.h    |  37 +++-
 fs/xfs/xfs_super.c    |  11 +-
 fs/xfs/xfs_sysfs.c    | 569 +++++++++++++++++++++++++++++++++++++++++---------
 fs/xfs/xfs_sysfs.h    |   9 +-
 6 files changed, 518 insertions(+), 123 deletions(-)

-- 
2.5.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-08-24  2:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21 11:54 [PATCH RFC 0/3] xfs: add customizable default values for error configuration Hou Tao
2017-08-21 11:54 ` [PATCH RFC 1/3] xfs: prepare for the customizable default values of " Hou Tao
2017-08-21 11:54 ` [PATCH RFC 2/3] xfs: add sysfs files for " Hou Tao
2017-08-21 11:54 ` [PATCH RFC 3/3] xfs: make the default values of error configuration customizable and workable Hou Tao
2017-08-21 22:50 ` [PATCH RFC 0/3] xfs: add customizable default values for error configuration Dave Chinner
2017-08-22 16:59   ` Darrick J. Wong
2017-08-23 10:29     ` Hou Tao
2017-08-23  9:26   ` Hou Tao
2017-08-24  0:16     ` Dave Chinner
2017-08-24  0:46       ` Darrick J. Wong
2017-08-24  1:00         ` Dave Chinner
2017-08-24  1:42           ` Hou Tao
2017-08-24  2:06             ` Dave Chinner
2017-08-22  4:05 ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).