Fibration etc
T�rnqvist
Hi!
I think this may be of some interest to other people too, so I won't just take it up on IRC.
What's up with this:
mjt@shrike:~/tmp$ echo -e 'lexicographic\0' > ..metas/plugin/fibration mjt@shrike:~/tmp$ cat ..metas/plugin/fibration 1 dot-o fibrate .o files separatelymjt@shrike:~/tmp$
I actually noticed that it changes the behavior of empty directories. Maybe the READ.ME should mention this?
Is there any means of refibrating populated directories or do I have to bounce everything by some tmp directory?
This is then also correct, it just fails because directories are populated with dot-o?
/dev/hda1 / reiser4 defaults,plugin.fibration=ext-1
0 0
However, if I do an mkdir after having mounted like that, shouldn't all new directories be ext-1 by default, not dot-o?
How does the fibration work with links? Does it fibrate names of files or contents of files together? How about hardlinks? Does it follow symlinks?
Is there some way of check that with some debug tool?
Thanks!
Signature · 1 line
mjt
Quoted 5 lines · Markus Törnqvist
Hi!
I think this may be of some interest to other people too, so I won't just take it up on IRC.
Quoted 7 lines
What's up with this:
mjt@shrike:~/tmp$ echo -e 'lexicographic\0' > ..metas/plugin/fibration mjt@shrike:~/tmp$ cat ..metas/plugin/fibration 1 dot-o fibrate .o files separatelymjt@shrike:~/tmp$I actually noticed that it changes the behavior of empty directories. Maybe the READ.ME should mention this?
Yes, it should.
Quoted 3 lines
Is there any means of refibrating populated directories or do I have to bounce everything by some tmp directory?
There is no kernel mechanism.
Quoted 3 lines
This is then also correct, it just fails because directories are populated with dot-o?
Correct.
Quoted 6 lines
/dev/hda1/ reiser4 defaults,plugin.fibration=ext-1
0 0However, if I do an mkdir after having mounted like that, shouldn't all new directories be ext-1 by default, not dot-o?
Err.... this mount option is a left-over from old times. Fibration of a new directory is controlled by fibration of its parent.
Quoted 4 lines
How does the fibration work with links? Does it fibrate names of files or contents of files together? How about hardlinks? Does it follow symlinks?
Fibration affects
* names,
* bodies of files "located in" the directory.
Names are always sorted according to the fibration.
File is "located" within directory where it was created. If file is hard-linked from another directory D2, its new name will be stored according to D2's fibration, but body would remain intact.
Content of symbolic link is treated exactly like every other file in this respect, and target of symbolic link is.. not related.
Quoted 2 lines
Is there some way of check that with some debug tool?
debugfs.reiser4 -t
Quoted 6 lines
Thanks!
Signature · 1 line
mjt
Nikita.