xfs: configurable behavior on errors at unmount time
authorZorro Lang <zlang@redhat.com>
Tue, 5 Jul 2016 09:30:24 +0000 (17:30 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 7 Jul 2016 04:24:13 +0000 (12:24 +0800)
commit2a7b77abcd1dde735186b363da24540706c43b73
tree73a9fc03067346de590bce5d53d843ef8a8104d9
parent4cd659be9cbc28fa5b62c35c22c4a491b301afeb
xfs: configurable behavior on errors at unmount time

XFS used to retry forever on non-critical errors, and unmount could
hang in such case. Commit e6b3bb78962e ("xfs: add "fail at unmount"
error handling configuration") introduced an error configuration
option in sysfs(fail_at_unmount) and made this behavior
configurable.

Now test this "fail_at_unmount" behavior to make sure XFS doesn't
retry forever on error at unmount time, if configured so. Also
introduced new helpers to require/set/get sysfs attributes.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc
tests/xfs/006 [new file with mode: 0755]
tests/xfs/006.out [new file with mode: 0644]
tests/xfs/group