|
|
d1681e |
From b13aa33a408b8ca85b306be9c8dbadaff4ed7c64 Mon Sep 17 00:00:00 2001
|
|
|
d1681e |
From: Pranith Kumar K <pkarampu@redhat.com>
|
|
|
d1681e |
Date: Mon, 8 Jan 2018 11:53:17 +0530
|
|
|
d1681e |
Subject: [PATCH 122/128] tests: Use /dev/urandom instead of /dev/random for dd
|
|
|
d1681e |
|
|
|
d1681e |
If there's not enough entropy in the system then reading /dev/random would take
|
|
|
d1681e |
a significant time since it would take a long time for the /dev/random buffers
|
|
|
d1681e |
to get full as is desired in this dd run.
|
|
|
d1681e |
Milind found that this test file takes almost a 1000 seconds or more to pass
|
|
|
d1681e |
instead of just a minute because of this.
|
|
|
d1681e |
|
|
|
d1681e |
>BUG: 1431955
|
|
|
d1681e |
>Change-Id: I9145b17f77f09d0ab71816ae249c69b8fe14c1a5
|
|
|
d1681e |
>Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
|
|
|
d1681e |
Upstream Patch: https://review.gluster.org/#/c/19160/
|
|
|
d1681e |
|
|
|
d1681e |
BUG: 1509810
|
|
|
d1681e |
Change-Id: I9145b17f77f09d0ab71816ae249c69b8fe14c1a5
|
|
|
d1681e |
Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
|
|
|
d1681e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/127405
|
|
|
d1681e |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
d1681e |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
d1681e |
---
|
|
|
d1681e |
tests/basic/ec/ec-fix-openfd.t | 2 +-
|
|
|
d1681e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d1681e |
|
|
|
d1681e |
diff --git a/tests/basic/ec/ec-fix-openfd.t b/tests/basic/ec/ec-fix-openfd.t
|
|
|
d1681e |
index b62fbf4..c32f933 100644
|
|
|
d1681e |
--- a/tests/basic/ec/ec-fix-openfd.t
|
|
|
d1681e |
+++ b/tests/basic/ec/ec-fix-openfd.t
|
|
|
d1681e |
@@ -43,7 +43,7 @@ EXPECT "1" get_fd_count $V0 $H0 $B0/${V0}1 test_file
|
|
|
d1681e |
EXPECT "1" get_fd_count $V0 $H0 $B0/${V0}2 test_file
|
|
|
d1681e |
|
|
|
d1681e |
#Write to file
|
|
|
d1681e |
-dd iflag=fullblock if=/dev/random bs=1024 count=2 >&$fd 2>/dev/null
|
|
|
d1681e |
+dd iflag=fullblock if=/dev/urandom bs=1024 count=2 >&$fd 2>/dev/null
|
|
|
d1681e |
|
|
|
d1681e |
#Test the fd count
|
|
|
d1681e |
EXPECT "1" get_fd_count $V0 $H0 $B0/${V0}0 test_file
|
|
|
d1681e |
--
|
|
|
d1681e |
1.8.3.1
|
|
|
d1681e |
|