#765643 gnome-disk-utility: gnome-disks fail at benchmarking on 32bit architectures

Package:
gnome-disk-utility
Source:
gnome-disk-utility
Description:
manage and configure disk drives and media
Submitter:
Marius Mikucionis
Date:
2015-05-14 16:54:49 UTC
Severity:
normal
#765643#5
Date:
2014-10-16 21:27:28 UTC
From:
To:
the problem is that gdubenchmarkdialog.c uses signed 32bit lseek(3)
prototype to seek the disk position and fails on offsets further than
2^31.

the fix is to switch to 64bit prototype lseek64(3) or just ensure that
off_t is of 64bit type.

here is a (trivial) patch:

diff --git a/src/disks/gdubenchmarkdialog.c
b/src/disks/gdubenchmarkdialog.c
index 6f751da..e47d7b6 100644
--- 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>