Package: exiftran
Version: 2.09-1+b1
Severity: normal

Dear Maintainer,

I ran exiftran on a .jpg file that sits on a large XFS filesystem.
The file's inode number doesn't fit in 32 bits.

: nr@homedog 14353 ; exiftran -i -p -a img_1098.jpg
processing img_1098.jpg
fstat(img_1098.jpg): Value too large for defined data type
: nr@homedog 14354 ; stat img_1098.jpg 
  File: ‘img_1098.jpg’
  Size: 3353239         Blocks: 6552       IO Block: 4096   regular file
Device: 821h/2081d      Inode: 6445944267  Links: 1
Access: (0644/-rw-r--r--)  Uid: (32074/      nr)   Gid: ( 6202/      nr)
Access: 2015-07-10 19:00:00.000000000 -0400
Modify: 2015-07-11 13:24:06.000000000 -0400
Change: 2015-07-11 14:30:24.743942355 -0400
 Birth: -


Recompiling with large-file support fixes the problem.
A patch is attached.


-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages exiftran depends on:
ii  libc6            2.19-18
ii  libexif12        0.6.21-2
ii  libjpeg62-turbo  1:1.3.1-12

exiftran recommends no packages.

exiftran suggests no packages.

-- no debconf information
Description: support large inode numbers
 exiftran was failing when given a file whose inode number
 would not fit in 32 bits.  This is a problem on large XFS filesystems.
 .
 fbi (2.09-1.1) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Support for large inode numbers (more than 32 bits)
Author: Norman Ramsey <n...@cs.tufts.edu>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:


--- fbi-2.09.orig/filebutton.c
+++ fbi-2.09/filebutton.c
@@ -1,3 +1,6 @@
+#define D_LARGE_FILE_SOURCE 1
+#define _FILE_OFFSET_BITS 64
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
--- fbi-2.09.orig/jpegtools.c
+++ fbi-2.09/jpegtools.c
@@ -21,6 +21,9 @@
  * lossless transformations of JPEG data.
  */
 
+#define D_LARGE_FILE_SOURCE 1
+#define _FILE_OFFSET_BITS 64
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>

Reply via email to