I met a problem with unziping file when the extracted file is greather than 2GB.
I tried several unzip versions with the same result.
The filesystem is jfs2 type and user has file limit "unlimited" "file(blocks) unlimited"
Of course I can manually create files greather thna 2GB so I think this must be the unzip bug.
Under the MS Windows the file can be unpacked without any problems.
Any idea how to fix the issue on AIX? (an application works with zip files).
Thank you in advance!
(below problem reproduced with latest unzip)
user@testsystem:/home/user$ ls -al
total 1263176
drwxr-xr-x 2 user staff 256 Nov 27 17:58 .
drwxr-xr-x 3 user staff 4096 Nov 24 01:43 ..
-rw-r--r-- 1 user staff 249506545 Nov 22 23:39 myarchivefile.ZIP
user@testsystem:/home/user$
user@testsystem:/home/user$ unzip -t -P password myarchivefile.ZIP
Archive: myarchivefile.ZIP
testing: myarchivefile OK
No errors detected in compressed data of myarchivefile.ZIP.
user@testsystem:/home/user$ unzip -P password myarchivefile.ZIP
Archive: myarchivefile.ZIP
inflating: myarchivefile
myarchivefile: write error (disk full?). Continue? (y/n/^C)
On the other screen I have been observing filesystem usage:
$ while true;do df -g .|grep -v ^Filesystem;sleep 5;done
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.88 75% 30883 4% /home
/dev/hd1 15.00 3.62 76% 30883 4% /home
/dev/hd1 15.00 3.22 79% 30883 4% /home
/dev/hd1 15.00 2.91 81% 30883 5% /home
/dev/hd1 15.00 2.61 83% 30883 5% /home
/dev/hd1 15.00 2.33 85% 30883 6% /home
/dev/hd1 15.00 2.04 87% 30883 6% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
And when unzip errored and prompted, I saw in the directory only 2GB file!!
user@testsystem:/home/user$ ls -al
total 1263176
drwxr-xr-x 2 user staff 256 Nov 27 17:58 .
drwxr-xr-x 3 user staff 4096 Nov 24 01:43 ..
-rw-r--r-- 1 user staff 249506545 Nov 22 23:39 myarchivefile.ZIP
-rw-r--r-- 1 user staff 2147483647 Nov 27 18:25 myarchivefile
I tried several unzip versions with the same result.
The filesystem is jfs2 type and user has file limit "unlimited" "file(blocks) unlimited"
Of course I can manually create files greather thna 2GB so I think this must be the unzip bug.
Under the MS Windows the file can be unpacked without any problems.
Any idea how to fix the issue on AIX? (an application works with zip files).
Thank you in advance!
(below problem reproduced with latest unzip)
user@testsystem:/home/user$ ls -al
total 1263176
drwxr-xr-x 2 user staff 256 Nov 27 17:58 .
drwxr-xr-x 3 user staff 4096 Nov 24 01:43 ..
-rw-r--r-- 1 user staff 249506545 Nov 22 23:39 myarchivefile.ZIP
user@testsystem:/home/user$
user@testsystem:/home/user$ unzip -t -P password myarchivefile.ZIP
Archive: myarchivefile.ZIP
testing: myarchivefile OK
No errors detected in compressed data of myarchivefile.ZIP.
user@testsystem:/home/user$ unzip -P password myarchivefile.ZIP
Archive: myarchivefile.ZIP
inflating: myarchivefile
myarchivefile: write error (disk full?). Continue? (y/n/^C)
On the other screen I have been observing filesystem usage:
$ while true;do df -g .|grep -v ^Filesystem;sleep 5;done
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.88 75% 30883 4% /home
/dev/hd1 15.00 3.62 76% 30883 4% /home
/dev/hd1 15.00 3.22 79% 30883 4% /home
/dev/hd1 15.00 2.91 81% 30883 5% /home
/dev/hd1 15.00 2.61 83% 30883 5% /home
/dev/hd1 15.00 2.33 85% 30883 6% /home
/dev/hd1 15.00 2.04 87% 30883 6% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
And when unzip errored and prompted, I saw in the directory only 2GB file!!
user@testsystem:/home/user$ ls -al
total 1263176
drwxr-xr-x 2 user staff 256 Nov 27 17:58 .
drwxr-xr-x 3 user staff 4096 Nov 24 01:43 ..
-rw-r--r-- 1 user staff 249506545 Nov 22 23:39 myarchivefile.ZIP
-rw-r--r-- 1 user staff 2147483647 Nov 27 18:25 myarchivefile