Comment 22 for bug 1081019

Revision history for this message
Marius Mikučionis (mmikucionis) wrote :

The problem is that the benchmark code uses 32bit lseek(2) function.
It should either be replaced with lseek64(2), or define _FILE_OFFSET_BITS 64
Here is a (one-line) patch:

--- a/src/disks/gdubenchmarkdialog.c
+++ b/src/disks/gdubenchmarkdialog.c
@@ -9,6 +9,7 @@

 #include "config.h"

+#define _FILE_OFFSET_BITS 64
 #include <glib/gi18n.h>
 #include <gio/gunixfdlist.h>
 #include <gio/gunixinputstream.h>