[PATCH 0/2] Reiser4: fix dmesg output

2006-03-31 Thread Laurent Riffard
Here are 2 trivial patches to fix some glitches in kernel log.

Please apply.
--
laurent



[PATCH 2/2] Reiser4: Remove printing of useless blank line in dmesg

2006-03-31 Thread Laurent Riffard
This patch removes printing of a useless blank line in dmesg.

Signed-off-by: Laurent Riffard [EMAIL PROTECTED]

 fs/reiser4/wander.c |2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-mm/fs/reiser4/wander.c
===
--- linux-2.6-mm.orig/fs/reiser4/wander.c
+++ linux-2.6-mm/fs/reiser4/wander.c
@@ -231,7 +231,7 @@ static inline int reiser4_use_write_barr
 static void disable_write_barrier(struct super_block * s)
 {
notice(zam-1055, %s does not support write barriers,
-   using synchronous write instead.\n, s-s_id);
+   using synchronous write instead., s-s_id);
set_bit((int)REISER4_NO_WRITE_BARRIER, get_super_private(s)-fs_flags);
 }
 

--



[PATCH 1/2] Reiser4: Fix double insertion of loglevel in printk calls

2006-03-31 Thread Laurent Riffard
DCALL used to insert loglevel twice in the string sent to printk.

Signed-off-by: Laurent Riffard [EMAIL PROTECTED]

 fs/reiser4/debug.h |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6-mm/fs/reiser4/debug.h
===
--- linux-2.6-mm.orig/fs/reiser4/debug.h
+++ linux-2.6-mm/fs/reiser4/debug.h
@@ -16,8 +16,8 @@
 ({ \
 /* reiser4_print_prefix(lev, reperr, label,*/  \
 /* __FUNCTION__, __FILE__, __LINE__);*/\
-   fun(lev %sreiser4[%.16s(%i)]: %s (%s:%i)[%s]:\n format \n , \
-   lev, current-comm, current-pid, __FUNCTION__, \
+   fun(lev reiser4[%.16s(%i)]: %s (%s:%i)[%s]:\n format \n ,   \
+   current-comm, current-pid, __FUNCTION__,  \
__FILE__, __LINE__, label, ## __VA_ARGS__); \
 })
 

--



fsck.reiser4 segfaults

2006-03-31 Thread Sarath Menon
Hello,

I've been using reiser4 for more than a year without any problems. The
filesystem performance has been commendable to say the least.
Yesterday, I had to powercycle my pc (due to a dma hang with my cd
drive - happens occasionaly) and after the reboot, grub would not
load. I use a single root partition (/boot inclusive) and the patched
grub sources.

I've tried booting into knoppix and compiling reiser4progs and running an fsck.

This is what I get -:
Master super block (16):
magic:  ReIsEr4
blksize:4096
format: 0x0 (format40)
label:  none

Format super block (17):
plugin: format40
description:Disk-format for reiser4.
magic:  ReIsEr40FoRmAt
flushes:0
mkfs id:0x3a4f3c7b
blocks: 2443880
free blocks:428490
root block: 743745
tail policy:0x2 (smart)
next oid:   0xf63a06
file count: 469920
tree height:5
key policy: LARGE


CHECKING STORAGE TREE
FSCK: Node (743744), item (0), unit (0): Points to the block (743745)
which is in the tree already.
The whole subtree is skipped.
Segmentation fault

debugfs.reiser4 also segfaults, and a mount also fails, it complians
of a duplicate key. (I can't post the exact message because the second
livecd doesn't have X or any mail client :(


Cheers,
Sarath

--
I presume, when you pronounce iptables, you say that you are peeing tables


Re: fsck.reiser4 segfaults

2006-03-31 Thread Vladimir V. Saveliev
Hello

On Fri, 2006-03-31 at 16:21 +0200, Sarath Menon wrote:
 Hello,
 
 I've been using reiser4 for more than a year without any problems. The
 filesystem performance has been commendable to say the least.
 Yesterday, I had to powercycle my pc (due to a dma hang with my cd
 drive - happens occasionaly) and after the reboot, grub would not
 load. I use a single root partition (/boot inclusive) and the patched
 grub sources.
 
 I've tried booting into knoppix and compiling reiser4progs and running an 
 fsck.
 
what is reiser4progs's version?

 This is what I get -:
 Master super block (16):
 magic:  ReIsEr4
 blksize:4096
 format: 0x0 (format40)
 label:  none
 
 Format super block (17):
 plugin: format40
 description:Disk-format for reiser4.
 magic:  ReIsEr40FoRmAt
 flushes:0
 mkfs id:0x3a4f3c7b
 blocks: 2443880
 free blocks:428490
 root block: 743745
 tail policy:0x2 (smart)
 next oid:   0xf63a06
 file count: 469920
 tree height:5
 key policy: LARGE
 
 
 CHECKING STORAGE TREE
 FSCK: Node (743744), item (0), unit (0): Points to the block (743745)
 which is in the tree already.
 The whole subtree is skipped.
 Segmentation fault
 
 debugfs.reiser4 also segfaults, and a mount also fails, it complians
 of a duplicate key. (I can't post the exact message because the second
 livecd doesn't have X or any mail client :(
 
 
 Cheers,
 Sarath
 
 --
 I presume, when you pronounce iptables, you say that you are peeing tables
 



Re: fsck.reiser4 segfaults

2006-03-31 Thread Vladimir V. Saveliev
Hello

On Fri, 2006-03-31 at 16:21 +0200, Sarath Menon wrote:
 Hello,
 
 I've been using reiser4 for more than a year without any problems. The
 filesystem performance has been commendable to say the least.
 Yesterday, I had to powercycle my pc (due to a dma hang with my cd
 drive - happens occasionaly) and after the reboot, grub would not
 load. I use a single root partition (/boot inclusive) and the patched
 grub sources.
 
 I've tried booting into knoppix and compiling reiser4progs and running an 
 fsck.
 
 This is what I get -:
 Master super block (16):
 magic:  ReIsEr4
 blksize:4096
 format: 0x0 (format40)
 label:  none
 
 Format super block (17):
 plugin: format40
 description:Disk-format for reiser4.
 magic:  ReIsEr40FoRmAt
 flushes:0
 mkfs id:0x3a4f3c7b
 blocks: 2443880
 free blocks:428490
 root block: 743745
 tail policy:0x2 (smart)
 next oid:   0xf63a06
 file count: 469920
 tree height:5
 key policy: LARGE
 
 
 CHECKING STORAGE TREE
 FSCK: Node (743744), item (0), unit (0): Points to the block (743745)
 which is in the tree already.
 The whole subtree is skipped.
 Segmentation fault
 

can you please run dmesg after that and send its output?

 debugfs.reiser4 also segfaults, and a mount also fails, it complians
 of a duplicate key. (I can't post the exact message because the second
 livecd doesn't have X or any mail client :(
 
 
 Cheers,
 Sarath
 
 --
 I presume, when you pronounce iptables, you say that you are peeing tables
 



Re: fsck.reiser4 segfaults

2006-03-31 Thread Sarath Menon
reiserfsprogs and libaal are both 1.0.5. I'll give you the dmesg
output tommorow - I need to get a livecd with reiser4 patches - its
more difficult than I initially thought ;)

Here's the gdb bt output - that's the max that I can provide today.

Program received signal SIGSEGV, Segmentation fault.
0x40052dd1 in repair_filter_update_traverse () from /tmp/reiser4/lib
(gdb) bt
#0  0x40052dd1 in repair_filter_update_traverse () from /tmp/reiser4
#1  0x40015959 in reiser4_tree_trav_node () from /tmp/reiser4/lib/li
#2  0x40015938 in reiser4_tree_trav_node () from /tmp/reiser4/lib/li
#3  0x40052356 in repair_filter_traverse () from /tmp/reiser4/lib/li
#4  0x40051c8c in repair_filter () from /tmp/reiser4/lib/librepair-1
#5  0x400575ea in repair_check () from /tmp/reiser4/lib/librepair-1.
#6  0x0804a1cb in main ()
#7  0x4102eda6 in __libc_start_main () from /lib/libc.so.6

I'll post the dmesg output tommorow.

Thanks,
Sarath

On 3/31/06, Vladimir V. Saveliev [EMAIL PROTECTED] wrote:
 Hello

 On Fri, 2006-03-31 at 16:21 +0200, Sarath Menon wrote:
  Hello,
 
  I've been using reiser4 for more than a year without any problems. The
  filesystem performance has been commendable to say the least.
  Yesterday, I had to powercycle my pc (due to a dma hang with my cd
  drive - happens occasionaly) and after the reboot, grub would not
  load. I use a single root partition (/boot inclusive) and the patched
  grub sources.
 
  I've tried booting into knoppix and compiling reiser4progs and running an
 fsck.
 
  This is what I get -:
  Master super block (16):
  magic:  ReIsEr4
  blksize:4096
  format: 0x0 (format40)
  label:  none
 
  Format super block (17):
  plugin: format40
  description:Disk-format for reiser4.
  magic:  ReIsEr40FoRmAt
  flushes:0
  mkfs id:0x3a4f3c7b
  blocks: 2443880
  free blocks:428490
  root block: 743745
  tail policy:0x2 (smart)
  next oid:   0xf63a06
  file count: 469920
  tree height:5
  key policy: LARGE
 
 
  CHECKING STORAGE TREE
  FSCK: Node (743744), item (0), unit (0): Points to the block (743745)
  which is in the tree already.
  The whole subtree is skipped.
  Segmentation fault
 

 can you please run dmesg after that and send its output?

  debugfs.reiser4 also segfaults, and a mount also fails, it complians
  of a duplicate key. (I can't post the exact message because the second
  livecd doesn't have X or any mail client :(
 
 
  Cheers,
  Sarath
 
  --
  I presume, when you pronounce iptables, you say that you are peeing tables
 




--
--
I presume, when you pronounce iptables, you say that you are peeing tables


Re: Questions about pseudo plugins

2006-03-31 Thread Alexander Zarochentsev
Hello

On Friday 31 March 2006 00:01, Yoanis Gil Delgado wrote:
 Hi there:
 I've been working on the versioning plugin.
 I will like to know how can i add a pseudo file to a pseudo
 directory, dynamically. I mean whenever i detect a new version i want
 to create a pseudo file under /file.txt/versioning/version/s pseudo
 directory. Another question is about how can I iterate over
 directories pseudo files. 

IFAIK you need to define lookup and readdir methods for your pseudo 
plugins.

Unfortunately it is very low level API for exporting your dynamic 
structures.  Some API like procfs/sysctl would be much better but 
reiser4 does not have it yet.

 For example how i can iterate over the 
 files under
 /file.txt/versioning/version/s (remember the files under this
 directory are pseudo files which are generated dynamically).
 I know there is a way to add static pseudo files and directories, by
 adding them to pseudo_plugins array. Perhaps using the linkage field
 from pseudo_plugin. I've some more questions but i will come later
 with them.
 By the way I found this in the patch for kernel 2.6.15:
 The function init_pseudo receives a _/const char* name  /_which
 is never used.
 That's all for now. Thanks a lot .. yoanis

-- 
Alex.


Re: fsck.reiser4 segfaults

2006-03-31 Thread Michael Weissenbacher
Hi,
 reiserfsprogs and libaal are both 1.0.5. I'll give you the dmesg
 output tommorow - I need to get a livecd with reiser4 patches - its
 more difficult than I initially thought ;)
I'm using RIPLinux, which has reiser4 support.
http://www.tux.org/pub/people/kent-robotti/looplinux/rip/

kind regards,
Michael
-- 
/\
|   Michael Weissenbacher [EMAIL PROTECTED]   |
|  http://www.dermichi.com/  |
| In 2010, M$ Windows will be a quantum processing emulation |
| layer for a 128-bit mod of a 64-bit hack of a 32-bit patch |
| to a 16-bit GUI for an 8-bit operating system written for  |
| a 4-bit processor from a 2-bit company that can't stand 1  |
| bit of competition.|
\/



Re: fsck.reiser4 segfaults

2006-03-31 Thread Joachim Feise
Michael Weissenbacher wrote on 03/31/06 12:21:

 Hi,
 reiserfsprogs and libaal are both 1.0.5. I'll give you the dmesg
 output tommorow - I need to get a livecd with reiser4 patches - its
 more difficult than I initially thought ;)
 I'm using RIPLinux, which has reiser4 support.
 http://www.tux.org/pub/people/kent-robotti/looplinux/rip/


Thanks for that info. I was looking for a boot disk with reiser4 for some time.

-Joe