From ca3e5905ac02fb9c373ac3de10b44f061d04cd6f Mon Sep 17 00:00:00 2001 From: Mohit Agrawal Date: Sun, 20 Oct 2019 22:01:01 +0530 Subject: 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 Change-Id: I987d73bcf47ed1bb27878df40c39751296e95fe8 Updates: #745 Signed-off-by: Mohit Agrawal --- tests/bugs/posix/bug-1651445.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/bugs') diff --git a/tests/bugs/posix/bug-1651445.t b/tests/bugs/posix/bug-1651445.t index 5248d470568..4d08b69b9b0 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/* -- cgit