diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2019-10-20 22:01:01 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2020-01-01 07:08:41 +0000 |
commit | ca3e5905ac02fb9c373ac3de10b44f061d04cd6f (patch) | |
tree | 0d1ccaa15795f73bf47b7965792b2208b5279e61 /xlators/storage/posix/src/posix-entry-ops.c | |
parent | e21a5a1b1edc5f0ddea54be3dd10869de517b9e6 (diff) |
posix: Avoid diskpace error in case of overwriting the data
Problem: Sometime fops like posix_writev, posix_fallocate, posix_zerofile
failed and throw error ENOSPC if storage.reserve threshold limit
has reached even fops is overwriting the data
Solution: Retry the fops in case of overwrite if diskspace check
is failed
Credits: kinsu <vpolakis@gmail.com>
Change-Id: I987d73bcf47ed1bb27878df40c39751296e95fe8
Updates: #745
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-entry-ops.c')
-rw-r--r-- | xlators/storage/posix/src/posix-entry-ops.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-entry-ops.c b/xlators/storage/posix/src/posix-entry-ops.c index 85bc7bb6a2d..aadc590b376 100644 --- a/xlators/storage/posix/src/posix-entry-ops.c +++ b/xlators/storage/posix/src/posix-entry-ops.c @@ -1632,7 +1632,6 @@ posix_rename(call_frame_t *frame, xlator_t *this, loc_t *oldloc, loc_t *newloc, priv = this->private; VALIDATE_OR_GOTO(priv, out); - DISK_SPACE_CHECK_AND_GOTO(frame, priv, xdata, op_ret, op_errno, out); SET_FS_ID(frame->root->uid, frame->root->gid); MAKE_ENTRY_HANDLE(real_oldpath, par_oldpath, this, oldloc, NULL); |