diff options
author | Cyril Plisko <[email protected]> | 2012-09-13 23:25:15 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-09-17 11:06:58 -0700 |
commit | 49d39798f286cce2497a87fc06d78c051ca87570 (patch) | |
tree | 8eebad026e5f70e9ea45c017b9cc12cab66db701 /module/zfs/dsl_prop.c | |
parent | 8312c6df55c1fb2ad3536fc3bc7ae93c429b85aa (diff) |
ZFS replay transaction error 5
When zfs_replay_write() replays TX_WRITE records from ZIL
it calls zpl_write_common() to perform the actual write.
zpl_write_common() returns the number of bytes written
(similar to write() system call) or an (negative) error.
However, the code expects the positive return value to be
a residual counter. Thus when zpl_write_common() successfully
completes it is mistakenly considered to be a partial write and
the error code delivered further. At this point the ZIL processing
is aborted with famous "ZFS replay transaction error 5" error
message given to the message buffer.
The fix is to compare the zpl_write_commmon() return value with
the buffer size and flag error only when they disagree.
Signed-off-by: Cyril Plisko <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #933
Diffstat (limited to 'module/zfs/dsl_prop.c')
0 files changed, 0 insertions, 0 deletions