read: Value too large for defined data type

Bug #1161989 reported by epitron
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
fatrace
Fix Released
Undecided
Unassigned
fatrace (Debian)
Fix Released
Unknown
fatrace (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

'fatrace' is a great little program, but it seems to have trouble with large files (> 2gigs).

If I try to access one of these files while 'fatrace' is running, it prints "read: Value too large for defined data type", and terminates.

I'm currently looking for a solution.

description: updated
description: updated
description: updated
Revision history for this message
epitron (chris-ill-logic) wrote :

Turns out, this is a bug in the kernel.

This patch fixes it: https://patchwork.kernel.org/patch/2142341/

But, as of linux v3.8.4, it still hasn't been included.

Revision history for this message
epitron (chris-ill-logic) wrote :

So, I've filed this bug in a few places, and it's still unresolved.

The Linux kernel is ignoring the patch. The fanotify API says that you should be able to specify O_LARGEFILE when you use fanotify_init (in the last comment): https://bugs.archlinux.org/task/34520

I've read that putting "#define _LARGEFILE_SOURCE / #define _FILE_OFFSET_BITS 64" at the top of your .c file should enable largefile support, but I think that only works within that one C file. The error is happening inside the fanotify kernel module, which is what's actually opening the file.

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in trunk r54.

Changed in fatrace:
status: New → Fix Committed
Changed in fatrace (Ubuntu):
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in new upstream release: https://launchpad.net/fatrace/trunk/0.7

Changed in fatrace:
status: Fix Committed → Fix Released
Changed in fatrace (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fatrace - 0.7-1

---------------
fatrace (0.7-1) unstable; urgency=medium

  * New upstream release:
    - Use O_LARGEFILE to fix "Value too large for defined data type" error
      with large files on some platforms. (LP: #1161989, Closes: #722901)
    - Increase buffer size to 256 KiB. (LP: #1312095)

 -- Martin Pitt <email address hidden> Thu, 07 Aug 2014 09:41:25 +0200

Changed in fatrace (Ubuntu):
status: Fix Committed → Fix Released
Changed in fatrace (Debian):
status: New → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

For the record, while this helped a bit it's still not fully functional. See bug 1372873.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.