summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/file.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-20 17:06:17 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-13 19:23:54 +0300
commit1a29af8bd740b2720caeafbffece1c0be6a9d06d (patch)
treeab0e9e7c327b20afbcbbc3ccf4063e8cd54a41a2 /fs/ubifs/file.c
parent14ffd5d0b051b0b937df0cf3580a92f428ff70b1 (diff)
downloadop-kernel-dev-1a29af8bd740b2720caeafbffece1c0be6a9d06d.zip
op-kernel-dev-1a29af8bd740b2720caeafbffece1c0be6a9d06d.tar.gz
UBIFS: use EROFS when emulating failures
When the debugging failure emulation is enabled and UBIFS decides to emulate an I/O error, it uses EIO error code. In which case UBIFS switches into R/O mode later on. The for the user-space is that when a failure is emulated, the file-system sometimes returns EIO and sometimes EROFS. This makes it more difficult to implement user-space tests for the failure mode. Let's be consistent and return EROFS in all the cases. This patch is an improvement for the debugging code and does not affect the functionality at all. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/file.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud