google / fuse-archive

FUSE file system for archives and compressed files (ZIP, RAR, 7Z, ISO, TGZ, XZ...)
Apache License 2.0
166 stars 17 forks source link

fuse-archive reports the number of blocks taken by each file as zero #14

Closed fdegros closed 1 month ago

fdegros commented 2 years ago

fuse-archive reports the number of blocks taken by each file as zero, which gives some confusing sizes with some tools.

Example:

$ fuse-archive "Big One.zip" mnt

$ ls -ls mnt
total 0
0 -r--r--r-- 1 fdegros primarygroup 6777995272 Mar 26  2020 'Big One.txt'

$ stat "mnt/Big One.txt" 
  File: mnt/Big One.txt
  Size: 6777995272      Blocks: 0          IO Block: 4096   regular file
Device: 39h/57d Inode: 2           Links: 1
Access: (0444/-r--r--r--)  Uid: (270632/ fdegros)   Gid: (89939/primarygroup)
Access: 1970-01-01 10:00:00.000000000 +1000
Modify: 2020-03-26 00:00:44.000000000 +1100
Change: 1970-01-01 10:00:00.000000000 +1000
 Birth: -

$ du mnt
0       mnt

$ df mnt
Filesystem     1K-blocks  Used Available Use% Mounted on
fuse-archive           0     0         0    - /usr/local/google/home/fdegros/Downloads/mnt