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 /tests | |
parent | e21a5a1b1edc5f0ddea54be3dd10869de517b9e6 (diff) | |
download | glusterfs-ca3e5905ac02fb9c373ac3de10b44f061d04cd6f.tar.gz glusterfs-ca3e5905ac02fb9c373ac3de10b44f061d04cd6f.tar.xz glusterfs-ca3e5905ac02fb9c373ac3de10b44f061d04cd6f.zip |
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 'tests')
-rw-r--r-- | tests/bugs/posix/bug-1651445.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bugs/posix/bug-1651445.t b/tests/bugs/posix/bug-1651445.t index 5248d47056..4d08b69b9b 100644 --- a/tests/bugs/posix/bug-1651445.t +++ b/tests/bugs/posix/bug-1651445.t @@ -33,6 +33,7 @@ sleep 5 # setup_lvm create lvm partition of 150M and 40M are reserve so after # consuming more than 110M next dd should fail TEST ! dd if=/dev/zero of=$M0/c bs=5M count=1 +TEST dd if=/dev/urandom of=$M0/a bs=1022 count=1 oflag=seek_bytes,sync seek=102 conv=notrunc rm -rf $M0/* |