mountpoint directory size reported wrong on Linux-i386 machines
Issue #9
closed
Originally reported on Google Code with ID 9
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.
Reported by notethan
on 2008-08-09 00:35:34
Comments (6)
-
Account Deleted -
Account Deleted ``` Fixed in v0.2.4. Please, check. ```
Reported by `alexander.galanin` on 2008-08-09 11:04:22 - Status changed: `Fixed`
-
Account Deleted ``` Thanks, seems to work. Reports directory sizes as 0. ```
Reported by `notethan` on 2008-08-09 18:05:01
-
Account Deleted Reported by `alexander.galanin` on 2008-08-09 19:19:03 - Status changed: `Verified`
-
repo owner - changed status to resolved
-
repo owner - changed status to closed
- edited description
- Log in to comment
Reported by `alexander.galanin` on 2008-08-09 11:04:00 - Status changed: `Accepted` - Labels added: Component-Logic