summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2012-02-08 16:36:22 -0500
committerAnand Avati <avati@gluster.com>2012-02-08 22:51:06 -0800
commitf47558fc72bcb6d786b117061add384f9f6aa6d5 (patch)
tree46b073c3c24b6df26dc6ba212a3f27ac9625b3ef
parent8e81cbacc53adc77bc4eabb5a26d6d13012f5f86 (diff)
Use /dev/zero instead of /dev/urandom to get realistic numbers.
Change-Id: I460a03759b3e450765758e456f0b4f514ca934ae BUG: 788716 Signed-off-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-on: http://review.gluster.com/2728 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <shishirng@gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 558ab165161..e2b658a98a2 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -472,7 +472,7 @@ glusterfs_volume_top_write_perf (void *args)
goto out;
}
- input_fd = open ("/dev/urandom", O_RDONLY);
+ input_fd = open ("/dev/zero", O_RDONLY);
if (-1 == input_fd) {
ret = -1;
gf_log ("glusterd",GF_LOG_ERROR, "Unable to open input file");
@@ -564,7 +564,7 @@ glusterfs_volume_top_read_perf (void *args)
goto out;
}
- input_fd = open ("/dev/urandom", O_RDONLY);
+ input_fd = open ("/dev/zero", O_RDONLY);
if (-1 == input_fd) {
ret = -1;
gf_log ("glusterd", GF_LOG_ERROR, "Could not open input file");