Package: squashfs-tools
Version: 1:3.0-5.1
Severity: important


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages squashfs-tools depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  zlib1g                        1:1.2.3-13 compression library - runtime

squashfs-tools recommends no packages.

-- no debconf information

mksquashfs fails to append files to an existing filesystem larger thean 2GB.
It starts scanning the existing filesystem and fails with error "Lseek on 
destination failed: Invalid argument"

I've found a path on internet to correct this bug 
(http://www.nabble.com/lseek-failed-t1314699.html) :

diff -Nura squashfs3.0/squashfs-tools/Makefile 
squashfs3.0-new/squashfs-tools/Makefile
--- squashfs3.0/squashfs-tools/Makefile 2006-03-15 16:36:20.000000000 -0500
+++ squashfs3.0-new/squashfs-tools/Makefile     2006-03-21 10:43:32.000000000 
-0500
@@ -17,3 +17,7 @@
        $(CC) unsquashfs.o -lz -o $@

 unsquashfs.o: unsquashfs.c squashfs_fs.h read_fs.h global.h
+
+clean:
+       rm -f mksquashfs unsquashfs *.o
+
diff -Nura squashfs3.0/squashfs-tools/read_fs.c 
squashfs3.0-new/squashfs-tools/read_fs.c
--- squashfs3.0/squashfs-tools/read_fs.c        2006-03-15 16:36:21.000000000 
-0500
+++ squashfs3.0-new/squashfs-tools/read_fs.c    2006-03-21 10:10:59.000000000 
-0500
@@ -186,7 +186,8 @@
                                        + sBlk->block_size - 1) >> 
sBlk->block_log : inode.file_size >>
                                        sBlk->block_log;
                                long long file_bytes = 0;
-                               int i, start = inode.start_block;
+                               int i;
+                               squashfs_block_t start = inode.start_block;
                                unsigned int *block_list;

                                TRACE("scan_inode_table: regular file, 
file_size %lld, blocks %d\n", 
inode.file_size, blocks);
@@ -219,7 +220,8 @@
                                int frag_bytes;
                                int blocks;
                                long long file_bytes = 0;
-                               int i, start;
+                               int i;
+                               squashfs_block_t start;
                                unsigned int *block_list;

                                if(swap) { 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to