Check for ccreg40
Hi,
sure,
debugfs.reiser4 -p /dev/foo
should print everything needed
Regards
Mat
Quoted 7 lines · Mat
Hi,
sure,
debugfs.reiser4 -p
/dev/foo
No, with the option "-p" debugfs.reiser4 (and other utilities of reiser4progs package) prints the "default vector of plugins" and doesn't look at /dev/foo..
Edward.
Quoted 13 lines
should print everything needed
Regards
Mat
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · Mat
Hi,
sure,
Quoted 8 lines
debugfs.reiser4 -p
/dev/fooshould print everything needed
Regards
Mat
debugfs.reiser4 1.0.6
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING.
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] Error: Device is mounted 'rw' at the moment. Use -f to force over.
I am confused, does reg40 means no compression, or does the compress lzo1 being there means compression?
Thanks
Quoted 10 lines · Edward Shishkin
Quoted 7 lines · Mat
Hi,
sure,
debugfs.reiser4 -p
/dev/foo
Quoted 6 lines
No, with the option "-p" debugfs.reiser4 (and other utilities of reiser4progs package) prints the "default vector of plugins" and doesn't look at
/dev/foo..Edward.
Oops I did not see the -t in your email. Correct it showed me what I wanted to know, reg40 :(
Thanks
Hi,
I haven't looked at r4 development for a while now and I have a few questions.
Quoted 4 lines
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] [...]I am confused, does reg40 means no compression, or does the compress lzo1 being there means compression?
Is it possible to create a regular r4 partition and choose which files keep compressed (how?) or do I have to create a all-compressed partition?
To play with compression can I just use the standard patch from
http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/ ?
Does this patch include also file-as-directory stuff?
BTW it might be good to change the *Reiser4 is released!* message on
http://reiser4.erudified.com/install_v4.html
to at least point to
http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/
instead of giving a 404.
Best regards,
Maciej
Quoted 14 lines · John
debugfs.reiser4 1.0.6
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING.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] Error: Device is mounted 'rw' at the moment. Use -f to force over.
Quoted 1 line
I am confused, does reg40 means no compression, or does the compress lzo1 being there means compression?
The first statement is correct.
The above is initial vector of plugins that will be installed by mkfs.reiser4 to the root directory when formatting a partition (and then propagated through the semantic tree by the system). So, actually the option "-p" makes sense only for mkfs utility, I don't know why other utilities (debugfs, fsck) also show this:
IMHO not a very good idea.
This option is to show resulted vector of plugins _before_ formatting a partition. Sometimes it is convenient to see what you'll actually have (especially if you want to override some default values). For example, "mkfs.reiser4 -p -o create=ccreg40,compress=gzip1" will show:
create: "ccreg40" (id:0x4 type:0x0) [Regular file plugin for creat(2)] key: "key_large" (id:0x1 type:0xb) [Key plugin] compress: "gzip1" (id:0x1 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]
Note, that "compress", "compressMode" and cluster" settings make sense only with "ccreg40" installed.
Also "formatting" makes sense only with "reg40" installed. Such dependencies are not well documented, so please keep them in mind for now..
Edward.
Quoted 3 lines · Maciej Soltysiak
Hi,
I haven't looked at r4 development for a while now and I have a few questions.
[...]
Quoted 5 lines
Quoted 3 lines
I am confused, does reg40 means no compression, or does the compress lzo1 being there means compression?
Is it possible to create a regular r4 partition and choose which files keep compressed (how?)
Not yet.
There is a (deprecated) pseudo-file interface, which allows to set compression et al per directory (the latest patch is against 2.6.13).
Quoted 1 line
or do I have to create a all-compressed partition?
Yes.
Reiser4 has means to automatically reduce cpu and memory usage on incompressible data.
With the default plugin scheduler (compressMode: "conv") conversion will be performed in 2 interfaces:
1. FILE: convert cryptcompress to unix-file plugin;
2. COMPRESS: turn on/off compression in flush time.
However, this scheduler uses very simple heuristics which work incorrectly on various media files, etc.. I believe it can be improved to process 80-90% of _all_ files properly.
Quoted 4 lines
To play with compression can I just use the standard patch from
http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/ ?
Yes.
Quoted 1 line
Does this patch include also file-as-directory stuff?
No, this stuff was removed (see my comment about pseudo-file interface above)
Quoted 5 lines
BTW it might be good to change the *Reiser4 is released!* message on
Quoted 7 lines
to at least point to
http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/
instead of giving a 404.
This is a temporal place for Hans's whitepaper.
I don't have a time to fix all the links to work properly.
Thanks,
Edward.
Quoted 20 lines · Edward Shishkin
Quoted 7 lines · Mat
Hi,
sure,
debugfs.reiser4 -p
/dev/fooNo, with the option "-p" debugfs.reiser4 (and other utilities of reiser4progs package) prints the "default vector of plugins" and doesn't look at
/dev/foo..Edward.
Quoted 2 lines
should print everything needed
Quoted 14 lines
Quoted 6 lines
Regards
Mat
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel"in
Quoted 5 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
oops, sorry,
I thought it would print the plugins of the current partition
is there a way by showing the plugins in using grep (e.g. whether it's used lzo or gzip compression) ?
for example grep 'ccreg shows' the following, that should mean ccreg40 / cryptcompression was used, correct ?
debugfs.reiser4 -t -f /dev/sdd8 | grep ccreg debugfs.reiser4 1.0.6
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING.
create : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)
object : id = 4 (ccreg40)Thanks
Mat
Quoted 6 lines · Matthew
On Tue, May 13, 2008 at 1:16 AM, Edward Shishkin
<[email protected]> wrote:
[...]
Quoted 4 lines
is there a way by showing the plugins in using grep (e.g. whether it's used lzo or gzip compression) ?
grep for "lzo1" or "gzip1".
At least stat-data of root directory must contain it.
Quoted 5 lines
for example grep 'ccreg shows' the following, that should mean ccreg40 / cryptcompression was used, correct ?
yup
Quoted 8 lines
debugfs.reiser4 -t -f
/dev/sdd8| grep ccreg debugfs.reiser4 1.0.6
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING.create : id = 4 (ccreg40) object : id = 4 (ccreg40)