On 8/21/17 6:54 AM, Hou Tao wrote:
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.
I recognize that it's an RFC, but if this goes in please also update
Documentation/filesystems/xfs.txt which documents the current error
handling tunables.
Thanks!
-Eric