reiser4 experimental patch
hello guys,
my experimental patch need modfications on fs/reiser4/context.c
i need help ;)
Quoted 5 lines · Guilherme Covolo
hello guys,
my experimental patch need modfications on
fs/reiser4/context.ci need help ;)
You'll have to give us more info than that. What happened?
Patch reject? It didn't compile? It didn't modprobe? The resulting kernel didn't boot? The resulting kernel oopsed? Other?
thanks for answer! :)
so, the patch compiles fine (one warning in super_ops.c), the FS boot correctly, but if i execute for exemple startx, kernel panic! i compile reiser4 built in with debug, i will send the error (kernel panic) to the list tomorow because i'm now in my house, and the experinet is on my work computer :)
i don't have much knowledge in C, kernel programer (i'm noob!), and so sorry my poor english :) but if the comunity works together, i beliave it is posibile!
thank you so mutch!
Quoted 13 lines · Guilherme Covolo
Quoted 5 lines
hello guys,
my experimental patch need modfications on
fs/reiser4/context.ci need help ;)
You'll have to give us more info than that. What happened?
Patch reject? It didn't compile? It didn't modprobe? The resulting kernel didn't boot? The resulting kernel oopsed? Other?
Am Freitag, 10. November 2006 00:39 schrieb [email protected]:
Quoted 7 lines
thanks for answer! :)
so, the patch compiles fine (one warning in
super_ops.c), the FS boot correctly, but if i execute for exemple startx, kernel panic! i compile reiser4 built in with debug, i will send the error (kernel panic) to the list tomorow because i'm now in my house, and the experinet is on my work computer :)
I didn't look closer on your patch, but you shouldn't get a warning in super_ops.c. Which compiler do you use?
Can you try the patch, I've made?
http://www.stud.tu-ilmenau.de/~johi-in/patch-reiser4-2.6.18.bz2
Em Sexta 10 Novembro 2006 09:44, Johannes Hirte escreveu:
Quoted 9 lines
Am Freitag, 10. November 2006 00:39 schrieb [email protected]:
Quoted 7 lines
thanks for answer! :)
so, the patch compiles fine (one warning in
super_ops.c), the FS boot correctly, but if i execute for exemple startx, kernel panic! i compile reiser4 built in with debug, i will send the error (kernel panic) to the list tomorow because i'm now in my house, and the experinet is on my work computer :)
Quoted 4 lines
I didn't look closer on your patch, but you shouldn't get a warning in
super_ops.c. Which compiler do you use?
Can you try the patch, I've made?
http://www.stud.tu-ilmenau.de/~johi-in/patch-reiser4-2.6.18.bz2
Hello,
i use gcc 3.4.6 on slamd64 (www.slamd64.com), x86_64.
i will try your patch :)
i'm on-line now on irc.oftc.net nick smyows #reiser4 and my nootebook is on kernel-2.6.18@my_experimental_reiser4_patch ...
error from boot today..
reiser4 panicked cowaedly: reiser4[mount(1909)]: check_blocks_bitmap (fs/reiser4/plugin/space/bitmap.c:1268)[zam-623]: assertion failed:reiser4_find_next_zero_bit(bnode_working_data(bnode), end_offset, start_offset) >= end_offset
Kernel panic - not syncing: reiser4[mount(1909)]: check_blocks_bitmap
(fs/reiser4/plugin/space/bitmap.c:1268)[zam-623]: assertion failed:reiser4_find_next_zero_bit(bnode_working_data(bnode), end_offset, start_offset) >= end_offset
...
yesterday give some error but in /fs/reiser4/context.c line 79
i reboot the computer and works now.
i'll compare the super_ops.c :)
thaks
the diference between my an Johannes Hirte's patch is:
/fs/reiser4/plugins/item/item.h
< ssize_t (*write) (struct file *, const char __user *, size_t, loff_t
*pos);
---
Quoted 1 line
int (*write) (struct file *, const char
__user*,size_t,loff_t
*pos);
*********************************************************
/fs/reiser4/super_ops.c
290c290
< static int reiser4_statfs(struct dentry *dentry, struct kstatfs *statfs)
---
Quoted 1 line
static int
reiser4_statfs(struct super_block *super, struct kstatfs *statfs)
292,293d291
< struct super_block *super = dentry->d_sb;
<
571a570,571
Quoted 2 lines
// alterado
575,576c575
< void *data,
< struct vfsmount *mnt)
---
Quoted 1 line
void *data, struct vfsmount *mnt)
582c581,582
< static struct file_system_type reiser4_fs_type = {
---
Quoted 2 lines
// alterado
structfile_system_typereiser4_fs_type= {
*********************************************************
i change my super_ops.c but why you alter te int to ssize_t on item.h?
()'s
Em Sexta 10 Novembro 2006 09:57, Guilherme Covolo escreveu:
Quoted 45 lines
Em Sexta 10 Novembro 2006 09:44, Johannes Hirte escreveu:
Quoted 9 lines
Am Freitag, 10. November 2006 00:39 schrieb [email protected]:
Quoted 7 lines
thanks for answer! :)
so, the patch compiles fine (one warning in
super_ops.c), the FS boot correctly, but if i execute for exemple startx, kernel panic! i compile reiser4 built in with debug, i will send the error (kernel panic) to the list tomorow because i'm now in my house, and the experinet is on my work computer :)Quoted 4 lines
I didn't look closer on your patch, but you shouldn't get a warning in
super_ops.c. Which compiler do you use?
Can you try the patch, I've made?
http://www.stud.tu-ilmenau.de/~johi-in/patch-reiser4-2.6.18.bz2Hello,
i use gcc 3.4.6 on slamd64 (www.slamd64.com),
x86_64.i will try your patch :)
i'm on-line now on irc.oftc.net nick smyows #reiser4 and my nootebook is on kernel-2.6.18@my_experimental_reiser4_patch ...
error from boot today..
reiser4 panicked cowaedly: reiser4[mount(1909)]:
check_blocks_bitmap(fs/reiser4/plugin/space/bitmap.c:1268)[zam-623]: assertion failed:reiser4_find_next_zero_bit(bnode_working_data(bnode), end_offset, start_offset)>=end_offsetKernel panic - not syncing: reiser4[mount(1909)]: check_blocks_bitmap(fs/reiser4/plugin/space/bitmap.c:1268)[zam-623]: assertion failed:
reiser4_find_next_zero_bit(bnode_working_data(bnode), end_offset, start_offset)>=end_offset...
yesterday give some error but in /fs/reiser4/context.c line 79
i reboot the computer and works now.
i'll compare the
super_ops.c:)thaks
Am Freitag, 10. November 2006 13:59 schrieb Guilherme Covolo:
Quoted 4 lines
the diference between my an Johannes Hirte's patch is:
/fs/reiser4/plugins/item/item.h
Quoted 8 lines
<
ssize_t(*write) (struct file *, const char__user*,size_t,loff_t*pos);
---Quoted 1 line
int (*write) (struct file *, const char
__user*,size_t,loff_t*pos);
*********************************************************
Don't know, if this is only cosmetic or really necessary. See below.
Quoted 21 lines
/fs/reiser4/super_ops.c
290c290
< static intreiser4_statfs(struct dentry *dentry, struct kstatfs *statfs)
---Quoted 2 lines
static int
reiser4_statfs(struct super_block *super, struct kstatfs *statfs)292,293d291
< structsuper_block*super =dentry->d_sb;
<
571a570,571Quoted 1 line
// alterado
575,576c575
< void *data,
< struct vfsmount *mnt)
---
Quoted 8 lines
Quoted 1 line
void *data, struct vfsmount *mnt)
582c581,582
< static structfile_system_typereiser4_fs_type= {
---Quoted 2 lines
// alterado
structfile_system_typereiser4_fs_type= {
Ok, with gcc-4.1 your patch won't even compile. After fixing this, it should work. Please consider that this code ist still buggy and will oops if the filesystem runs full. Don't use it in productive environment.
Quoted 3 lines
*********************************************************
i change my
super_ops.cbut why you alter te int tossize_tonitem.h?
This is for fixing a compiler warning on x86_64, where size_t is 64bit:
CC fs/reiser4/plugin/item/item.ofs/reiser4/plugin/item/item.c:561: warning: initialization from incompatible pointer typefs/reiser4/plugin/item/item.c:615: warning: initialization from incompatible pointer type
CC fs/reiser4/plugin/security/perm.o
I'm still not shure, if this is really necessary.
Quoted 9 lines · Guilherme Covolo
the diference between my an Johannes Hirte's patch is:
*********************************************************/fs/reiser4/super_ops.c
290c290
< static intreiser4_statfs(struct dentry *dentry, struct kstatfs *statfs)
---Quoted 1 line
static int reiser4_statfs(struct
super_block*super, struct kstatfs *statfs
diff -c or diff -u please. That way, if some unrelated thing moves the lines up or down 1 or 2, it still applies. Also, it's easier to look at a 'diff -u' and understand what's going on, because you get to see 3-4 lines either side of the changed lines.
Quoted 1 line
i change my
super_ops.cbut why you alter te int tossize_tonitem.h?
ssize_t isn't an int on some architectures, it's a 'long'. As a result if you reference a 32 bit value where you should use 64, you'll certainly end up with something unexpected (probably an oops).
i change my patch, now is equals of the
Johannes Hirte's patch .. only difference is my patch have the comment /* change */ in the source.
run on x86_64 fine! :)
my patch and the Johannes Hirte's patch is linked in my site, www.youare.not.br
thanks to all!
Em Sexta 10 Novembro 2006 12:42, [email protected] escreveu:
Quoted 23 lines · Guilherme Covolo
Quoted 11 lines
the diference between my an Johannes Hirte's patch is:
*********************************************************/fs/reiser4/super_ops.c
290c290
< static intreiser4_statfs(struct dentry *dentry, struct kstatfs *statfs)---Quoted 2 lines
static int reiser4_statfs(struct
super_block*super, struct kstatfs *statfsdiff -c or diff -u please. That way, if some unrelated thing moves the lines up or down 1 or 2, it still applies. Also, it's easier to look at a 'diff -u' and understand what's going on, because you get to see 3-4 lines either side of the changed lines.
Quoted 1 line
i change my
super_ops.cbut why you alter te int tossize_tonitem.h?
ssize_tisn't an int on some architectures, it's a 'long'. As a result if you reference a 32 bit value where you should use 64, you'll certainly end up with something unexpected (probably an oops).