Skip to contentSkip to conversation

Working Reiser4 patch for kernel 2.6.6(-mm2)?

DISCUSSION Raymond A. Meijer 3 participants 17 messages Jun 2, 2004 – Jun 4, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

Can someone point me to a WORKING Reiser4 patch for kernel 2.6.6 or 2.6.6-mm2?

I have tried the reiser4-2004.05.31-19.36-linux-2.6.6-mm2.diff.gz patch from
http://www.namesys.com/auto-snapshots/ and it compiles and boots cleanly, but it won't mount my Reiser4 partitions :(

Does anybody have a working patch? I cannot use BitKeeper to download it.

Thanks,

Ray (still stuck on kernel 2.6.5)

#1 lore raw
Quoted 7 lines · Raymond A. Meijer

Hi,

Can someone point me to a WORKING Reiser4 patch for kernel 2.6.6 or 2.6.6-mm2?

I have tried the reiser4-2004.05.31-19.36-linux-2.6.6-mm2.diff.gz patch from
http://www.namesys.com/auto-snapshots/ and it compiles and boots cleanly, but it won't mount my Reiser4 partitions :(

what reiser4 messages were in the log?

Signature · 1 line
Alex.
#2 lore raw
Quoted 5 lines · Alex Zarochentsev
Quoted 3 lines

I have tried the reiser4-2004.05.31-19.36-linux-2.6.6-mm2.diff.gz patch from http://www.namesys.com/auto-snapshots/ and it compiles and boots cleanly, but it won't mount my Reiser4 partitions :(

what reiser4 messages were in the log?

I didn't write it down...and nothing was written to the logs because all partitions except the root partition are Reiser4.

But there was a kernel Oops and something like:

"page_extent: trying to read past end of device. Want=23252123 Limit=83380"

I can try again and write down the messages if you want...

Thanks,

Ray

#3 lore raw
Quoted 6 lines · Raymond A. Meijer
Quoted 3 lines · Alex Zarochentsev
Quoted 3 lines

I have tried the reiser4-2004.05.31-19.36-linux-2.6.6-mm2.diff.gz patch from http://www.namesys.com/auto-snapshots/ and it compiles and boots cleanly, but it won't mount my Reiser4 partitions :(

Quoted 8 lines
Quoted 1 line

what reiser4 messages were in the log?

I didn't write it down...and nothing was written to the logs because all partitions except the root partition are Reiser4.

But there was a kernel Oops and something like:

"page_extent: trying to read past end of device. Want=23252123 Limit=83380"

It would be fine to see a (decoded) stack trace.

Quoted 2 lines

I can try again and write down the messages if you want...

Does the snapshot from 2004.04.21 or from 2004.03.26 work still ?

Quoted 2 lines

Thanks,
Ray

Signature · 1 line
Alex.
#4 lore raw
Quoted 3 lines · Alex Zarochentsev
Quoted 2 lines

But there was a kernel Oops and something like:
"page_extent: trying to read past end of device. Want=23252123 Limit=83380"

It would be fine to see a (decoded) stack trace.

Not that I would have had this problem, but are there some general guidelines/FAQ-like answer on how to acquire this?

Quoted 2 lines
Quoted 1 line

I can try again and write down the messages if you want...

Does the snapshot from 2004.04.21 or from 2004.03.26 work still ?

It's against 2.6.5, not 2.6.6, and I think that was the general idea...

Signature · 1 line
mjt
#5 lore raw
Quoted 4 lines · Markus Törnqvist
Quoted 3 lines · Alex Zarochentsev
Quoted 2 lines

But there was a kernel Oops and something like:
"page_extent: trying to read past end of device. Want=23252123 Limit=83380"

It would be fine to see a (decoded) stack trace.

<linux source dir>/Documentation/oops-tracing.txt

Quoted 7 lines

Not that I would have had this problem, but are there some general guidelines/FAQ-like answer on how to acquire this?

Quoted 2 lines
Quoted 1 line

I can try again and write down the messages if you want...

Does the snapshot from 2004.04.21 or from 2004.03.26 work still ?

It's against 2.6.5, not 2.6.6, and I think that was the general idea...

Do you use RAID or LVM ?

Quoted 3 lines
Signature · 1 line
mjt
Signature · 1 line
Alex.
#6 lore raw
Quoted 11 lines · Alex Zarochentcev
Quoted 4 lines · Markus Törnqvist
Quoted 3 lines · Alex Zarochentsev
Quoted 2 lines

But there was a kernel Oops and something like:
"page_extent: trying to read past end of device. Want=23252123 Limit=83380"

It would be fine to see a (decoded) stack trace.

<linux source dir>/Documentation/oops-tracing.txt

Quoted 3 lines

Not that I would have had this problem, but are there some general guidelines/FAQ-like answer on how to acquire this?

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line

I can try again and write down the messages if you want...

Does the snapshot from 2004.04.21 or from 2004.03.26 work still ?

It's against 2.6.5, not 2.6.6, and I think that was the general idea...

Do you use RAID or LVM ?

Sorry Markus, the last question is not for you. But why do you think 2.6.6 is the point?

Quoted 2 lines
Signature · 1 line
Alex.
Signature · 1 line
Alex.
#7 lore raw
Quoted 2 lines · Alex Zarochentsev

Sorry Markus, the last question is not for you. But why do you think 2.6.6 is the point?

This is from the original mail:
Can someone point me to a WORKING Reiser4 patch for kernel 2.6.6 or 2.6.6-mm2?

And:
Subject: Re: Working Reiser4 patch for kernel 2.6.6(-mm2)?

;)

Besides that, maybe some other bugfix that's not easily included or just the desire to ride the bleeding edge...

Signature · 1 line
mjt
#8 lore raw
In reply to Alex Zarochentsev
Quoted 5 lines · Alex Zarochentsev
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

But there was a kernel Oops and something like:
"page_extent: trying to read past end of device. Want=23252123 Limit=83380"

It would be fine to see a (decoded) stack trace.

I mounted the partition that causes the Oops (/dev/sys/usr on /usr) and tried to run gcc from it. This was the result:

# /usr/bin/gcc
attempt to access beyond end of device
dm-3: rw=0, want=16777224, limit=8388608
attempt to access beyond end of device
dm-3: rw=0, want=16777224, limit=8388608
reiser4[bash(80)]: read_extent (fs)reiser4/plugin/item/extent_file_ops.c:993)[jmacd-97178]:
WARNING: extent_read: page is not up to date
bash: /usr/bin/gcc: cannot execute binary file
#

After that the kernel basically hangs...both 2.6.6-mm2 and 2.6.7-rc1. Exactly the same message. So maybe there is something wrong with the filesystem after all.

Quoted 1 line

Do you use RAID or LVM ?

I use LVM2:

--- Logical volume ---

  LV Name                /dev/sys/usr
  VG Name                sys
  LV UUID                IskqlG-zNsy-4qIB-1Y6O-dlbQ-ciDT-OT4svJ
  LV Write Access        read/write
  LV Status              available
  # open                 4
  LV Size                4.00 GB
  Current LE             128
  Segments               1
  Allocation             next free (default)
  Read ahead sectors     0
  Block device           254:3

The weird thing is, though, that I cannot fsck this partition properly:

# fsck.reiser4 /dev/sys/usr
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/sys/usr block device.
Will check the consistency of the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem.
Continue?
(Yes/No): Yes
***** Opening the fs.
Reiser4 journal (journal40) on /dev/sys/usr: 0 transactions replayed of the total 0 blocks. Reiser4 fs was detected on /dev/sys/usr.
Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           0a8cc420-fbe3-4e91-97f4-f6748e0bc243
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format for reiser4, ver. 0.5.4
magic:          ReIsEr40FoRmAt
flushes:        0
mkfs id:        0x1b371ddb
blocks:         1048576
free blocks:    511894
root block:     47189
tail policy:    0x4 (smart)
next oid:       0x64322
file count:     127474
tree height:    4
key policy:     LARGE

***** Tree Traverse Pass: scanning the reiser4 internal tree.
Read nodes 87921
Nodes left in the tree 87921
Leaves of them 86219, Twigs of them 1673
Time interval: Thu Jun 3 13:58:24 2004 - Thu Jun 3 13:59:30 2004
***** TwigScan Pass: checking extent pointers of all twigs.

        Read twigs 1673
        Time interval: Thu Jun  3 13:59:30 2004 - Thu Jun  3 13:59:30 2004

***** Semantic Traverse Pass: reiser4 semantic tree checking. Segmentation fault

I will try the reiser4progs-0.5.4_convertion.patch that Vitaly posted to see if that makes any difference...

Ray

#9 lore raw
Quoted 5 lines · Raymond A. Meijer

***** Semantic Traverse Pass: reiser4 semantic tree checking. Segmentation fault

I will try the reiser4progs-0.5.4_convertion.patch that Vitaly posted to see if that makes any difference...

Aha:

# fsck.reiser4 /dev/sys/usr
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/sys/usr block device.
Will check the consistency of the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem.
Continue?
(Yes/No): Yes
***** Opening the fs.
Reiser4 journal (journal40) on /dev/sys/usr: 0 transactions replayed of the total 0 blocks. Reiser4 fs was detected on /dev/sys/usr.
Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           0a8cc420-fbe3-4e91-97f4-f6748e0bc243
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format for reiser4, ver. 0.5.4
magic:          ReIsEr40FoRmAt
flushes:        0
mkfs id:        0x1b371ddb
blocks:         1048576
free blocks:    511894
root block:     47189
tail policy:    0x4 (smart)
next oid:       0x64322
file count:     127474
tree height:    4
key policy:     LARGE

***** Tree Traverse Pass: scanning the reiser4 internal tree.
Error: Can't open node 186461.
Error: Node (186461): failed to open the node pointed by the node (179889), item (24), unit (0) on the level (2). The whole subtree is skipped.
Error: Can't open node 187038.
Error: Node (187038): failed to open the node pointed by the node (179889), item (25), unit (0) on the level (2). The whole subtree is skipped.
Error: Can't open node 187044.
Error: Node (187044): failed to open the node pointed by the node (179889), item (26), unit (0) on the level (2). The whole subtree is skipped.
The tree height 4 found in the format is wrong. Should be 3.
Read nodes 2387
Nodes left in the tree 2387
Leaves of them 2329, Twigs of them 57
Invalid node pointers 3
Time interval: Thu Jun 3 14:16:33 2004 - Thu Jun 3 14:16:35 2004
***** TwigScan Pass: checking extent pointers of all twigs.
Read twigs 57
Time interval: Thu Jun 3 14:16:35 2004 - Thu Jun 3 14:16:35 2004

Fatal corruptions were found. Semantic pass is skipped.
Free block count 511894 found in the format is wrong. Sould be 1005780. ***** fsck.reiser4 finished at Thu Jun 3 14:16:35 2004 Closing fs...done

3 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them.

I'll reboot into single user mode, rebuild the FS and try again to boot into 2.6.6 and 2.6.7-rc1...

Keeping you posted...

Ray

#10 lore raw
Quoted 4 lines · Raymond A. Meijer

I'll reboot into single user mode, rebuild the FS and try again to boot into 2.6.6 and 2.6.7-rc1...

Keeping you posted...

There were MANY errors, but fsck.reiser4 fixed them all.

But it didn't help...still the same errors in 2.6.6-mm2 and 2.6.7-rc1-mm2...

I even reformatted the partition and restored a backup, and it still wouldn't work!

However, I just discovered that my CFLAGS environment variable is by default set to "-O3 -Wall -march=i686 -mcpu=i686 -msse2 -mfpmath=sse"!

So, I'll recompile a vanilla kernel with no optimisations and only the mm and Reiser4 patches applied...

Here we go again! :)

Ray

#11 lore raw
Quoted 2 lines · Raymond A. Meijer

So, I'll recompile a vanilla kernel with no optimisations and only the mm and Reiser4 patches applied...

No, still the same: Oops errors when the kernel tries to mount Reiser4 filesystems...

...but then I converted most of the system partitions (/var, /home, /usr) to ReiserFS and kept some other partitions in Reiser4 format (/backup, /tmp, /var/spool/squid) and now it DOES work properly!

2.6.6-mm2 boots up fine, mounts everything and starts everything. I'm actually sending this mail with KMail on KDE 3.2.2 on kernel 2.6.6-mm2...

Any ideas as to what happened?! :)

Ray

#12 lore raw
Quoted 8 lines · Raymond A. Meijer
Quoted 2 lines · Raymond A. Meijer

So, I'll recompile a vanilla kernel with no optimisations and only the mm and Reiser4 patches applied...

No, still the same: Oops errors when the kernel tries to mount Reiser4 filesystems...

Quoted 8 lines

...but then I converted most of the system partitions (/var, /home, /usr) to ReiserFS and kept some other partitions in Reiser4 format (/backup, /tmp, /var/spool/squid) and now it DOES work properly!

2.6.6-mm2 boots up fine, mounts everything and starts everything. I'm actually sending this mail with KMail on KDE 3.2.2 on kernel 2.6.6-mm2...

Any ideas as to what happened?! :)

Seems we made a disk format change accidentally.
details later. or a fix may be.

Quoted 1 line

Ray

Signature · 1 line
Alex.
#13 lore raw
Quoted 13 lines · Alex Zarochentcev
Quoted 12 lines · Raymond A. Meijer
Quoted 2 lines · Raymond A. Meijer

So, I'll recompile a vanilla kernel with no optimisations and only the mm and Reiser4 patches applied...

No, still the same: Oops errors when the kernel tries to mount Reiser4 filesystems...

...but then I converted most of the system partitions (/var, /home, /usr) to ReiserFS and kept some other partitions in Reiser4 format (/backup, /tmp, /var/spool/squid) and now it DOES work properly!

Quoted 7 lines
Quoted 4 lines

2.6.6-mm2 boots up fine, mounts everything and starts everything. I'm actually sending this mail with KMail on KDE 3.2.2 on kernel 2.6.6-mm2...

Any ideas as to what happened?! :)

Seems we made a disk format change accidentally.
details later. or a fix may be.

please try this patch:
=================================================
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/06/03 19:04:55+04:00 [email protected]
# enum item_id: restore disk format.
#

# forward.h
#   2004/06/03 19:04:51+04:00 [email protected] +10 -9
#   enum item_id: restore disk format. 
# 
diff -Nru a/forward.h b/forward.h
--- a/forward.h	Thu Jun  3 19:20:36 2004
+++ b/forward.h	Thu Jun  3 19:20:36 2004
@@ -174,16 +174,17 @@
 	SQUEEZE_CONTINUE = 3
 } squeeze_result;

+/* Do not change items ids. If you do - there will be format change */
typedef enum {
- STATIC_STAT_DATA_ID,
- SIMPLE_DIR_ENTRY_ID,
- COMPOUND_DIR_ID,
- NODE_POINTER_ID,
- EXTENT_POINTER_ID,
- FORMATTING_ID,
- CTAIL_ID,
- BLACK_BOX_ID,
- LAST_ITEM_ID
+ STATIC_STAT_DATA_ID = 0x0,
+ SIMPLE_DIR_ENTRY_ID = 0x1,

+	COMPOUND_DIR_ID     = 0x2,
+	NODE_POINTER_ID     = 0x3,
+	EXTENT_POINTER_ID   = 0x5,
+	FORMATTING_ID       = 0x6,
+	CTAIL_ID            = 0x7,
+	BLACK_BOX_ID        = 0x8,
+	LAST_ITEM_ID        = 0x9

} item_id;

/* Flags passed to jnode_flush() to allow it to distinguish default settings based on
=================================================

Quoted 5 lines
Quoted 2 lines

Ray

Signature · 1 line
Alex.
Signature · 1 line
Alex.
#14 lore raw
Quoted 6 lines · Alex Zarochentsev
Quoted 4 lines
Quoted 1 line

Any ideas as to what happened?! :)

Seems we made a disk format change accidentally.
details later. or a fix may be.

please try this patch:

[forward.h patch]

Okay, patch applied and recompiling...

Thanks,

Ray

#15 lore raw
Quoted 5 lines · Raymond A. Meijer
Quoted 1 line

please try this patch:

[forward.h patch]

Okay, patch applied and recompiling...

So far so good. fsck.reiser4 found no errors, and everything mounted properly.

Thanks a lot!

Ray (from 2.6.6-mm2 :)

#16 lore raw
Quoted 10 lines · Raymond A. Meijer
Quoted 5 lines · Raymond A. Meijer
Quoted 1 line

please try this patch:

[forward.h patch]

Okay, patch applied and recompiling...

So far so good. fsck.reiser4 found no errors, and everything mounted properly. Thanks a lot!

Thanks a lot for the report.

Signature · 1 line
Alex.