lkml.org 
[lkml]   [2006]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 15 Jun 2006 11:51:49 +0200 (MEST)
FromJan Engelhardt <>
SubjectRe: squashfs size in statfs
>> Hello list,
>>
>>
>> # l /mnt
>> total 36293
>> drwxr-xr-x 2 root root 20 Jun 5 11:50 .
>> drwxr-xr-x 31 root root 4096 Jun 5 2006 ..
>> -rw-r--r-- 1 root root 37158912 Jun 5 11:06 mem
>> # df
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> /dev/shm/sc.sqfs 26688 26688 0 100% /mnt
>> # l sc.sqfs
>> -rwx------ 1 jengelh users 27279360 Jun 5 11:50 sc.sqfs
>>
>> I think statfs() should show the uncompressed size, no?
>
>No.
>
Yes, because CRAM does it that way, and maybe zisofs does it too:

11:50 shanghai:/dev/shm # mount out.cram /mnt -oloop,ro
11:50 shanghai:/dev/shm # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/shm/out.cram 14336 14336 0 100% /mnt
11:50 shanghai:/dev/shm # l out.cram
-rw-r--r-- 1 root root 110592 Jun 15 11:50 out.cram



Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-15 11:54    [from the cache]
©2003-2010