reiserfs-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How do I  list  Reiser4 statistics on number of files on r4 partition and disk space used
@ 2011-01-18 23:32 doiggl
  2011-01-19  0:37 ` Edward Shishkin
  0 siblings, 1 reply; 3+ messages in thread
From: doiggl @ 2011-01-18 23:32 UTC (permalink / raw)
  To: reiserfs-devel

Hello
How do I  list  Reiser4 Statistics on number of files on r4 partition and
disk space used and space saved with compression ?
I can list these items at this time [1]
Thanks Glenn

[1]

# fsck.reiser4 --print-profile /dev/sdb
Default profile:
create:          "reg40"           (id:0x0 type:0x0)    [Regular file
plugin for creat(2)]
key:             "key_large"       (id:0x1 type:0xb)    [Key plugin]
compress:        "lzo1"            (id:0x0 type:0xc)    [Compression
plugin]
compressMode:    "conv"            (id:0x4 type:0xd)    [Compression Mode
plugin]
cluster:         "64K"             (id:0x0 type:0x10)   [Cluster plugin]
hash:            "r5_hash"         (id:0x1 type:0x3)    [Directory entry
hash plugin]
fibration:       "ext_1_fibre"     (id:0x2 type:0x4)    [Key fibration
plugin]
formatting:      "smart"           (id:0x2 type:0x5)    [File body
formatting plugin]


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How do I  list  Reiser4 statistics on number of files on r4 partition and disk space used
  2011-01-18 23:32 How do I list Reiser4 statistics on number of files on r4 partition and disk space used doiggl
@ 2011-01-19  0:37 ` Edward Shishkin
  2011-01-19  1:10   ` Edward Shishkin
  0 siblings, 1 reply; 3+ messages in thread
From: Edward Shishkin @ 2011-01-19  0:37 UTC (permalink / raw)
  To: doiggl; +Cc: reiserfs-devel

On 01/19/2011 12:32 AM, doiggl@velocitynet.com.au wrote:
> Hello

Hi

> How do I  list  Reiser4 Statistics on number of files on r4 partition and

ls mountpoint | wc -l

I don't know how to do it offline. Perhaps there are
proper tools (measurefs, or so) in reiser4progs.


> disk space used and space saved with compression ?

sync(1) + df(1) will show occupied space.

Also you can use du(1) utility. However,
you must fsck your partition with --fix option before
using du (i_blocks and i_bytes are unsupported online
because of performance issues).

Edward.


> I can list these items at this time [1]
> Thanks Glenn
>
> [1]
>
> # fsck.reiser4 --print-profile /dev/sdb
> Default profile:
> create:          "reg40"           (id:0x0 type:0x0)    [Regular file
> plugin for creat(2)]
> key:             "key_large"       (id:0x1 type:0xb)    [Key plugin]
> compress:        "lzo1"            (id:0x0 type:0xc)    [Compression
> plugin]
> compressMode:    "conv"            (id:0x4 type:0xd)    [Compression Mode
> plugin]
> cluster:         "64K"             (id:0x0 type:0x10)   [Cluster plugin]
> hash:            "r5_hash"         (id:0x1 type:0x3)    [Directory entry
> hash plugin]
> fibration:       "ext_1_fibre"     (id:0x2 type:0x4)    [Key fibration
> plugin]
> formatting:      "smart"           (id:0x2 type:0x5)    [File body
> formatting plugin]
>
> --
> To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How do I  list  Reiser4 statistics on number of files on r4 partition and disk space used
  2011-01-19  0:37 ` Edward Shishkin
@ 2011-01-19  1:10   ` Edward Shishkin
  0 siblings, 0 replies; 3+ messages in thread
From: Edward Shishkin @ 2011-01-19  1:10 UTC (permalink / raw)
  To: doiggl; +Cc: reiserfs-devel

On 01/19/2011 01:37 AM, Edward Shishkin wrote:
> On 01/19/2011 12:32 AM, doiggl@velocitynet.com.au wrote:
>> Hello
>
> Hi
>
>> How do I list Reiser4 Statistics on number of files on r4 partition and
>
> ls mountpoint | wc -l
>
> I don't know how to do it offline. Perhaps there are
> proper tools (measurefs, or so) in reiser4progs.
>
>
>> disk space used and space saved with compression ?
>
> sync(1) + df(1) will show occupied space.
>
> Also you can use du(1) utility. However,
> you must fsck your partition with --fix option before
> using du (i_blocks and i_bytes are unsupported online
> because of performance issues).


So, du(1) is to monitor compressed size, ls(1) - non-compressed one.
That said, you can calculate compression ratio for every reiser4 
file(directory).


>
> Edward.
>
>
>> I can list these items at this time [1]
>> Thanks Glenn
>>
>> [1]
>>
>> # fsck.reiser4 --print-profile /dev/sdb
>> Default profile:
>> create: "reg40" (id:0x0 type:0x0) [Regular file
>> plugin for creat(2)]
>> key: "key_large" (id:0x1 type:0xb) [Key plugin]
>> compress: "lzo1" (id:0x0 type:0xc) [Compression
>> plugin]
>> compressMode: "conv" (id:0x4 type:0xd) [Compression Mode
>> plugin]
>> cluster: "64K" (id:0x0 type:0x10) [Cluster plugin]
>> hash: "r5_hash" (id:0x1 type:0x3) [Directory entry
>> hash plugin]
>> fibration: "ext_1_fibre" (id:0x2 type:0x4) [Key fibration
>> plugin]
>> formatting: "smart" (id:0x2 type:0x5) [File body
>> formatting plugin]
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> reiserfs-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-19  1:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-18 23:32 How do I list Reiser4 statistics on number of files on r4 partition and disk space used doiggl
2011-01-19  0:37 ` Edward Shishkin
2011-01-19  1:10   ` Edward Shishkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).