diff options
| author | Pranith Kumar K <pkarampu@redhat.com> | 2019-07-29 14:08:37 +0530 |
|---|---|---|
| committer | Pranith Kumar K <pkarampu@redhat.com> | 2020-02-25 12:34:17 +0530 |
| commit | 9e5766294dc72dfabdb4f2f1443ae841ac3f8dfd (patch) | |
| tree | 61ec9bd9bf26fe28065742b978e1d5b9896489cf /libglusterfs/src | |
| parent | 7baa97ccbf18be6d3ddb139f7f07c8ff017e75b1 (diff) | |
cluster/ec: Fix reopen flags to avoid misbehavior
Problem:
when a file needs to be re-opened O_APPEND and O_EXCL
flags are not filtered in EC.
- O_APPEND should be filtered because EC doesn't send O_APPEND below EC for
open to make sure writes happen on the individual fragments instead of at the
end of the file.
- O_EXCL should be filtered because shd could have created the file so even
when file exists open should succeed
- O_CREAT should be filtered because open happens with gfid as parameter. So
open fop will create just the gfid which will lead to problems.
Fix:
Filter out these two flags in reopen.
Change-Id: Ia280470fcb5188a09caa07bf665a2a94bce23bc4
Fixes: bz#1805055
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src')
0 files changed, 0 insertions, 0 deletions
