diff options
| author | Pranith Kumar K <pkarampu@redhat.com> | 2019-09-04 12:06:34 +0530 |
|---|---|---|
| committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2019-09-06 07:27:21 +0000 |
| commit | 7b3971ad0152eb1bb89a982333970118a6bd4922 (patch) | |
| tree | 33e6e35fd7c2bdc49c834c8ca3cf0f1f852a11ef /xlators/cluster/ec/src/ec-messages.h | |
| parent | 6563ffb04d7ba51a89726e7c5bbb85c7dbc685b5 (diff) | |
cluster/ec: Fail fsync/flush for files on update size/version failure
Problem:
If update size/version is not successful on the file, updates on the
same stripe could lead to data corruptions if the earlier un-aligned
write is not successful on all the bricks. Application won't have
any knowledge of this because update size/version happens in the
background.
Fix:
Fail fsync/flush on fds that are opened before update-size-version
went bad.
fixes: bz#1748836
Change-Id: I9d323eddcda703bd27d55f340c4079d76e06e492
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-messages.h')
| -rw-r--r-- | xlators/cluster/ec/src/ec-messages.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-messages.h b/xlators/cluster/ec/src/ec-messages.h index ce299bb61be..72e98f11286 100644 --- a/xlators/cluster/ec/src/ec-messages.h +++ b/xlators/cluster/ec/src/ec-messages.h @@ -56,6 +56,6 @@ GLFS_MSGID(EC, EC_MSG_INVALID_CONFIG, EC_MSG_HEAL_FAIL, EC_MSG_EXTENSION_UNKNOWN, EC_MSG_EXTENSION_UNSUPPORTED, EC_MSG_EXTENSION_FAILED, EC_MSG_NO_GF, EC_MSG_MATRIX_FAILED, EC_MSG_DYN_CREATE_FAILED, EC_MSG_DYN_CODEGEN_FAILED, - EC_MSG_THREAD_CLEANUP_FAILED); + EC_MSG_THREAD_CLEANUP_FAILED, EC_MSG_FD_BAD); #endif /* !_EC_MESSAGES_H_ */ |
