jigneshvasoya / fuse-zip

Automatically exported from code.google.com/p/fuse-zip
GNU Lesser General Public License v3.0
0 stars 0 forks source link

mountpoint directory size reported wrong on Linux-i386 machines #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
fuse-zip directories report size as 18446744069414584320 (which is 2^64 - 2^32, 
about 16 
exabytes). 

To reproduce, mount using fuse-zip (on the architecture noted below). The 
mountpoint will have 
size 18446744069414584320. Create any directory in the volume, it will also 
have that size:
$ mkdir testmount
$ ls
total 24
drwx------  3 ethan ethan 4096 2008-08-08 20:12 ./
drwx------ 33 ethan ethan 4096 2008-08-08 20:00 ../
drwx------  2 ethan ethan 4096 2008-08-08 20:12 testmount/
$ fuse-zip test.zip testmount
$ ls
total 9223372034707292176
drwx------  3 ethan ethan                 4096 2008-08-08 20:12 ./
drwx------ 33 ethan ethan                 4096 2008-08-08 20:00 ../
drwxr-xr-x  2 ethan ethan 18446744069414584320 2008-08-08 20:12 testmount/
$ cd testmount
$ mkdir testdir
$ echo test > test.txt
$ ls
total 9223372032559808523
drwxr-xr-x 4 ethan ethan 18446744069414584320 2008-08-08 20:12 ./
drwx------ 3 ethan ethan                 4096 2008-08-08 20:12 ../
drwxr-xr-x 2 ethan ethan 18446744069414584320 2008-08-08 20:12 testdir/
-rw-r--r-- 1 ethan ethan                    5 2008-08-08 20:12 test.txt
$ cd ..
$ fusermount -u testmount
$ ls
total 32
drwx------  3 ethan ethan 4096 2008-08-08 20:13 ./
drwx------ 33 ethan ethan 4096 2008-08-08 20:00 ../
drwx------  2 ethan ethan 4096 2008-08-08 20:12 testmount/
-rw-------  1 ethan ethan  215 2008-08-08 20:13 test.zip
$ unzip test.zip 
Archive:  test.zip
   creating: testdir/
  inflating: test.txt                
$ ls
total 48
drwx------  4 ethan ethan 4096 2008-08-08 20:17 ./
drwx------ 33 ethan ethan 4096 2008-08-08 20:00 ../
drwx------  2 ethan ethan 4096 2008-08-08 20:12 testdir/
drwx------  2 ethan ethan 4096 2008-08-08 20:12 testmount/
-rw-------  1 ethan ethan    5 2008-08-08 20:12 test.txt
-rw-------  1 ethan ethan  215 2008-08-08 20:13 test.zip
$ 

Version is fuse-zip-0.2.3
Relevant dependencies all handled through yum: 
$ yum list fuse fuse-devel libzip libzip-devel zlib zlib-devel
Installed Packages
fuse.i386                                2.7.3-3.fc8            installed       
fuse-devel.i386                          2.7.3-3.fc8            installed       
libzip.i386                              0.8-4.fc8              installed       
libzip-devel.i386                        0.8-4.fc8              installed       
zlib.i386                                1.2.3-14.fc8           installed       
zlib-devel.i386                          1.2.3-14.fc8           installed       

Operating system is Linux, Fedora Core 8, 32-bit.
$ uname -a
Linux  2.6.25.11-60.fc8 #1 SMP Mon Jul 21 02:06:29 EDT 2008 i686 athlon i386 
GNU/Linux

The correct operation of fuse-zip does not appear to be affected, as shown 
above unzipping the 
created zip file. 

On another computer, which is OSX on Intel (uname -a prints: Darwin 8.11.1 
Darwin Kernel 
Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 
i386 
i386), running the same sequence of commands as pasted above, the mount 
directory and 
directories created inside the volume (testmount and testdir) report size of 0. 

Original issue reported on code.google.com by notet...@gmail.com on 9 Aug 2008 at 12:35

GoogleCodeExporter commented 9 years ago

Original comment by alexander.galanin on 9 Aug 2008 at 11:04

GoogleCodeExporter commented 9 years ago
Fixed in v0.2.4. Please, check.

Original comment by alexander.galanin on 9 Aug 2008 at 11:04

GoogleCodeExporter commented 9 years ago
Thanks, seems to work. Reports directory sizes as 0. 

Original comment by notet...@gmail.com on 9 Aug 2008 at 6:05

GoogleCodeExporter commented 9 years ago

Original comment by alexander.galanin on 9 Aug 2008 at 7:19