Package: uswsusp
Version: 0.7-1.2
Severity: important
Tags: patch

  In trying to set up uswsusp I found myself needing the offset of my
swapfile.  On running 'swap-offset /var/lib/swapfile1' I get:

20:57:07 3$ swap-offset /var/lib/swapfile1
open(): Value too large for defined data type
r...@emilia:~;
20:57:24 3$ 

If you modify swap-offset.c to include:

#define _FILE_OFFSET_BITS 64

before the #include's and change the lseek() call to lseek64() it works:

20:57:04 3$ /usr/local/src/uswsusp-0.7/swap-offset /var/lib/swapfile1
resume offset = 12462091
r...@emilia:~;
20:57:07 3$ 

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.31.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages uswsusp depends on:
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.1-1  GCC support library
ii  libgcrypt11                   1.4.4-4    LGPL Crypto library - runtime libr
ii  liblzo2-2                     2.03-1     data compression library
ii  libpci3                       1:3.1.4-1  Linux PCI Utilities (shared librar
ii  libsplashy1                   0.3.13-5   Library to draw splash screen on b
ii  libx86-1                      1.1+ds1-6  x86 real-mode library

Versions of packages uswsusp recommends:
ii  initramfs-tools               0.93.4     tools for generating an initramfs
ii  mount                         2.16.1-3   Tools for mounting and manipulatin

Versions of packages uswsusp suggests:
pn  splashy                       <none>     (no description available)

-- debconf information:
* uswsusp/suspend_loglevel:
  uswsusp/no_swap:
  uswsusp/resume_offset:
* uswsusp/early_writeout: true
* uswsusp/image_size: 962849095
* uswsusp/snapshot_device:
* uswsusp/max_loglevel:
  uswsusp/shutdown_method: platform
* uswsusp/encrypt: false
  uswsusp/RSA_key_bits: 1024
* uswsusp/continue_without_swap: false
* uswsusp/compute_checksum: false
  uswsusp/no_snapshot:
* uswsusp/compress: true
  uswsusp/create_RSA_key: false
  uswsusp/RSA_key_file: /etc/uswsusp.key
* uswsusp/resume_device: /dev/sda2
* uswsusp/splash: false



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to