Skip to contentSkip to conversation

--rebuild-tree always finds errors --check is ok

DISCUSSION hanasaki 3 participants 7 messages Jan 1, 2005 – Jan 10, 2005

lore
Share & tools
lore

hanasaki

author
#0 lore raw

Running reiser3 on kernel 2.6.10 and 2.6.9 with Debian sarge and unstable.

the --rebuild-tree always finds errors and corrects them. even when run more than once consecutively without mounting the partition in between.

--check says all is good.

#1 lore raw

Hello

Quoted 5 lines · hanasaki

Running reiser3 on kernel 2.6.10 and 2.6.9 with Debian sarge and unstable.

the --rebuild-tree always finds errors and corrects them. even when run more than once consecutively without mounting the partition in between.

Please provide reiserfsck --rebuild-tree output. What is version of your reiserfsck? (reiserfsck -V)

Quoted 5 lines

--check says all is good.

author
#2 lore raw

Version of reiserfsk
======================
== From debian sarge
/sbin/reiserfsck -V
reiserfsck 3.6.19 (2003 www.namesys.com)
== also used the version in knoppix 3.7 with similar results

the output of two consecutive runs of --rebuild-tree on the same unmounted partition are attached. Below is the diff

diff data00-run1 data00-run0
14c14
< 172168 directory entries were hashed with "r5" hash.
---

Quoted 1 line

172167 directory entries were hashed with "r5" hash.

Quoted 4 lines · Vladimir Saveliev

Hello

On Sun, 2005-01-02 at 00:55, hanasaki wrote:

Quoted 17 lines
Quoted 5 lines

Running reiser3 on kernel 2.6.10 and 2.6.9 with Debian sarge and unstable.

the --rebuild-tree always finds errors and corrects them. even when run more than once consecutively without mounting the partition in between.

Please provide reiserfsck --rebuild-tree output. What is version of your reiserfsck? (reiserfsck -V)

Quoted 5 lines

--check says all is good.

####### Pass 0 #######
block 254411: The number of items (21) is incorrect, should be (1) - corrected
block 254411: The free space (1) is incorrect, should be (2256) - corrected
pass0: vpf-10110: block 254411, item (0): Unknown item type found [0 251658496 0x1001800 ??? (15)] - deleted block 1574493: The number of items (18) is incorrect, should be (0) - corrected
block 1574493: The free space (1184) is incorrect, should be (4072) - corrected
block 2206239: The number of items (1) is incorrect, should be (0) - corrected
block 2206239: The free space (0) is incorrect, should be (4072) - corrected
block 2844875: The number of items (2) is incorrect, should be (1) - corrected
block 2844875: The free space (0) is incorrect, should be (4048) - corrected
pass0: vpf-10110: block 2844875, item (0): Unknown item type found [16777472 16780544 0x200 ??? (15)] - deleted block 3326501: The number of items (1) is incorrect, should be (0) - corrected
block 3326501: The free space (0) is incorrect, should be (4072) - corrected
172167 directory entries were hashed with "r5" hash.
####### Pass 1 #######
####### Pass 2 #######
####### Pass 3 #########
####### Pass 3a (lost+found pass) #########

####### Pass 0 #######
block 254411: The number of items (21) is incorrect, should be (1) - corrected
block 254411: The free space (1) is incorrect, should be (2256) - corrected
pass0: vpf-10110: block 254411, item (0): Unknown item type found [0 251658496 0x1001800 ??? (15)] - deleted block 1574493: The number of items (18) is incorrect, should be (0) - corrected
block 1574493: The free space (1184) is incorrect, should be (4072) - corrected
block 2206239: The number of items (1) is incorrect, should be (0) - corrected
block 2206239: The free space (0) is incorrect, should be (4072) - corrected
block 2844875: The number of items (2) is incorrect, should be (1) - corrected
block 2844875: The free space (0) is incorrect, should be (4048) - corrected
pass0: vpf-10110: block 2844875, item (0): Unknown item type found [16777472 16780544 0x200 ??? (15)] - deleted block 3326501: The number of items (1) is incorrect, should be (0) - corrected
block 3326501: The free space (0) is incorrect, should be (4072) - corrected
172168 directory entries were hashed with "r5" hash.
####### Pass 1 #######
####### Pass 2 #######
####### Pass 3 #########
####### Pass 3a (lost+found pass) #########

#3 lore raw

Hello

Quoted 72 lines · hanasaki

Version of reiserfsk
======================
== From debian sarge
/sbin/reiserfsck -V
reiserfsck 3.6.19 (2003 www.namesys.com)
== also used the version in knoppix 3.7 with similar results

the output of two consecutive runs of --rebuild-tree on the same unmounted partition are attached. Below is the diff

diff data00-run1 data00-run0
14c14
< 172168 directory entries were hashed with "r5" hash.
---

Quoted 1 line

172167 directory entries were hashed with "r5" hash.

Quoted 4 lines · Vladimir Saveliev

Hello

On Sun, 2005-01-02 at 00:55, hanasaki wrote:

Quoted 17 lines
Quoted 5 lines

Running reiser3 on kernel 2.6.10 and 2.6.9 with Debian sarge and unstable.

the --rebuild-tree always finds errors and corrects them. even when run more than once consecutively without mounting the partition in between.

Please provide reiserfsck --rebuild-tree output. What is version of your reiserfsck? (reiserfsck -V)

Quoted 5 lines

--check says all is good.

______________________________________________________________________
####### Pass 0 #######
block 254411: The number of items (21) is incorrect, should be (1) - corrected
block 254411: The free space (1) is incorrect, should be (2256) - corrected
pass0: vpf-10110: block 254411, item (0): Unknown item type found [0 251658496 0x1001800 ??? (15)] - deleted block 1574493: The number of items (18) is incorrect, should be (0) - corrected
block 1574493: The free space (1184) is incorrect, should be (4072) - corrected
block 2206239: The number of items (1) is incorrect, should be (0) - corrected
block 2206239: The free space (0) is incorrect, should be (4072) - corrected
block 2844875: The number of items (2) is incorrect, should be (1) - corrected
block 2844875: The free space (0) is incorrect, should be (4048) - corrected
pass0: vpf-10110: block 2844875, item (0): Unknown item type found [16777472 16780544 0x200 ??? (15)] - deleted block 3326501: The number of items (1) is incorrect, should be (0) - corrected
block 3326501: The free space (0) is incorrect, should be (4072) - corrected
172167 directory entries were hashed with "r5" hash.
####### Pass 1 #######
####### Pass 2 #######
####### Pass 3 #########
####### Pass 3a (lost+found pass) #########

______________________________________________________________________
####### Pass 0 #######
block 254411: The number of items (21) is incorrect, should be (1) - corrected
block 254411: The free space (1) is incorrect, should be (2256) - corrected
pass0: vpf-10110: block 254411, item (0): Unknown item type found [0 251658496 0x1001800 ??? (15)] - deleted block 1574493: The number of items (18) is incorrect, should be (0) - corrected
block 1574493: The free space (1184) is incorrect, should be (4072) - corrected
block 2206239: The number of items (1) is incorrect, should be (0) - corrected
block 2206239: The free space (0) is incorrect, should be (4072) - corrected
block 2844875: The number of items (2) is incorrect, should be (1) - corrected
block 2844875: The free space (0) is incorrect, should be (4048) - corrected

Quoted 8 lines

pass0: vpf-10110: block 2844875, item (0): Unknown item type found [16777472 16780544 0x200 ??? (15)] - deleted block 3326501: The number of items (1) is incorrect, should be (0) - corrected
block 3326501: The free space (0) is incorrect, should be (4072) - corrected
172168 directory entries were hashed with "r5" hash.
####### Pass 1 #######
####### Pass 2 #######
####### Pass 3 #########
####### Pass 3a (lost+found pass) #########

Can you do:
debugreiserfs -p that-device | gzip -c > fs.gz and make fs.gz downloadable. That would allow us to fix reiserfsck bug faster.

#4 lore raw
In reply to hanasaki
Quoted 9 lines · hanasaki

Version of reiserfsk
======================
== From debian sarge
/sbin/reiserfsck -V
reiserfsck 3.6.19 (2003 www.namesys.com)
== also used the version in knoppix 3.7 with similar results

the output of two consecutive runs of --rebuild-tree on the same unmounted partition are attached. Below is the diff

rebuild-tree finds some blocks that looks like reiserfs formatted blocks for the first sight whereas they are not and just belongs to some file bodies. The consistency check reveals no valid metadata in them, so they are considered as not valid reiserfs formatted blocks and left not modified on disk. This is why the second run of rebuild-tree finds them again and tries to do all the stuff again.

Signature · 2 lines
Thanks,
Vitaly Fertman
Quoted 21 lines

diff data00-run1 data00-run0
14c14
< 172168 directory entries were hashed with "r5" hash.
---

Quoted 1 line

172167 directory entries were hashed with "r5" hash.

Quoted 13 lines · Vladimir Saveliev

Hello

Quoted 5 lines · hanasaki

Running reiser3 on kernel 2.6.10 and 2.6.9 with Debian sarge and unstable.

the --rebuild-tree always finds errors and corrects them. even when run more than once consecutively without mounting the partition in between.

Please provide reiserfsck --rebuild-tree output. What is version of your reiserfsck? (reiserfsck -V)

Quoted 1 line

--check says all is good.

author
#5 lore raw

Could you outline exactly what takes place on a rebuild-tree?

I was under the incorrect assumption that if a rebuild-tree is 100% successful then the FS is ok and a subsequent rebuild-tree will have nothing to fix/report. .....

Quoted 17 lines · Vitaly Fertman
Quoted 9 lines · hanasaki

Version of reiserfsk
======================
== From debian sarge
/sbin/reiserfsck -V
reiserfsck 3.6.19 (2003 www.namesys.com)
== also used the version in knoppix 3.7 with similar results

the output of two consecutive runs of --rebuild-tree on the same unmounted partition are attached. Below is the diff

rebuild-tree finds some blocks that looks like reiserfs formatted blocks for the first sight whereas they are not and just belongs to some file bodies. The consistency check reveals no valid metadata in them, so they are considered as not valid reiserfs formatted blocks and left not modified on disk. This is why the second run of rebuild-tree
finds them again and tries to do all the stuff again.

#6 lore raw
Quoted 1 line · hanasaki

Could you outline exactly what takes place on a rebuild-tree?

reiserfs has two types of blocks. There are unformatted nodes. They contain plain user file data. And there are formatted nodes. These may contain both user file data and filesystem metadata. --rebuild-tree scans all blocks looking for filesystem metadata, e.g. for formatted nodes. However you can put a reiserfs image into a file, then file data (e.g. unformatted nodes of the host fs) will contain formatted nodes of the fs image, and rebuilding of the host fs will be screwed up as there is no way to distinguish image fs metadata kept in unformatted nodes of the host fs from the host fs metadata.

Quoted 3 lines

I was under the incorrect assumption that if a rebuild-tree is 100% successful then the FS is ok and a subsequent rebuild-tree will have nothing to fix/report. .....

In your case, some unformatted nodes look like formatted ones for the first sight, however after fixing all the corruptions in these nodes fsck realises that there is no valid metadata left and that they are either completely broken nodes or file data ones. To not corrupt file data fsck does not flush the made changes on disk. And as nothing gets changed the same attempt of fixing these nodes repeats again on the next rebuild.

Quoted 18 lines
Quoted 17 lines · Vitaly Fertman
Quoted 9 lines · hanasaki

Version of reiserfsk
======================
== From debian sarge
/sbin/reiserfsck -V
reiserfsck 3.6.19 (2003 www.namesys.com)
== also used the version in knoppix 3.7 with similar results

the output of two consecutive runs of --rebuild-tree on the same unmounted partition are attached. Below is the diff

rebuild-tree finds some blocks that looks like reiserfs formatted blocks for the first sight whereas they are not and just belongs to some file bodies. The consistency check reveals no valid metadata in them, so they are considered as not valid reiserfs formatted blocks and left not modified on disk. This is why the second run of rebuild-tree finds them again and tries to do all the stuff again.

Signature · 2 lines
Thanks,
Vitaly Fertman