Reiser4 Pseudo Directory Segfault
How to produce the error:
$ chmod +w "file/...." $ touch file/..../newattr Segmentation fault.
We tried setting "dir_eperm" on the pseudo directory plugin's create member. Why didn't this fix it?
-pvh
Signature · 2 lines
Peter van Hardenberg ([email protected]) Victoria, BC, Canada
Quoted 7 lines · Peter van Hardenberg
How to produce the error:
$ chmod +w "file/...." $ touch file/..../newattr Segmentation fault.
What the basic setup (kernel, patches) do you use? Indeed, in the old one the problem exists, because init_pseudo() does not care about missed regular plugin, so the attached patch fixes the problem.
Thanks,
Edward.
Quoted 6 lines
We tried setting "
dir_eperm" on the pseudo directory plugin's create member. Why didn't this fix it?-pvh
inode_ops.c renamed from inode_ops.c~ +2 -0
@@ -90,6 +90,8 @@memset (&data,0 ,sizeof data); data.mode =S_IFREG | mode; +if (!inode_regular_plugin (parent)) +return -EINVAL ; data.id =inode_regular_plugin (parent)->id;return invoke_create_method (parent, dentry, &data); }
Edward,
we are running reiser4-for-2.6.12-3.patch.gz on 2.6.12 Debian. Your patch worked perfectly and directed us to some code that answered a few other questions we had. Thank you.
-pvh
Quoted 19 lines · Edward Shishkin
Quoted 5 lines · Peter van Hardenberg
How to produce the error:
$ chmod +w "file/...." $ touch file/..../newattr Segmentation fault.What the basic setup (kernel, patches) do you use? Indeed, in the old one the problem exists, because
init_pseudo()does not care about missed regular plugin, so the attached patch fixes the problem.Thanks,
Edward.Quoted 4 lines
We tried setting "
dir_eperm" on the pseudo directory plugin's create member. Why didn't this fix it?-pvh
Signature · 2 lines
Peter van Hardenberg ([email protected]) Victoria, BC, Canada