Skip to contentSkip to conversation

Questions about pseudo plugins

DISCUSSION Yoanis Gil Delgado 3 participants 3 messages Mar 30, 2006 – Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

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.
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

#1 lore raw
Quoted 10 lines · Yoanis Gil Delgado

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.
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).

Quoted 11 lines

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

Thanks Yoanis. Vs, would you answer these questions, or have zam answer them if your plate is full for the day?

Thanks,

Hans

#2 lore raw
In reply to Yoanis Gil Delgado

Hello

Quoted 7 lines · Yoanis Gil Delgado

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.

Quoted 12 lines

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

Signature · 1 line
Alex.