* Questions about pseudo plugins
@ 2006-03-30 20:01 Yoanis Gil Delgado
2006-03-30 21:16 ` Hans Reiser
2006-03-31 19:30 ` Alexander Zarochentsev
0 siblings, 2 replies; 3+ messages in thread
From: Yoanis Gil Delgado @ 2006-03-30 20:01 UTC (permalink / raw)
To: reiserfs-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Questions about pseudo plugins
2006-03-30 20:01 Questions about pseudo plugins Yoanis Gil Delgado
@ 2006-03-30 21:16 ` Hans Reiser
2006-03-31 19:30 ` Alexander Zarochentsev
1 sibling, 0 replies; 3+ messages in thread
From: Hans Reiser @ 2006-03-30 21:16 UTC (permalink / raw)
To: Yoanis Gil Delgado; +Cc: reiserfs-list, vs, Alexander Zarochentcev
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.
> 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
>
>
>
Thanks Yoanis. Vs, would you answer these questions, or have zam answer
them if your plate is full for the day?
Thanks,
Hans
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Questions about pseudo plugins
2006-03-30 20:01 Questions about pseudo plugins Yoanis Gil Delgado
2006-03-30 21:16 ` Hans Reiser
@ 2006-03-31 19:30 ` Alexander Zarochentsev
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Zarochentsev @ 2006-03-31 19:30 UTC (permalink / raw)
To: reiserfs-list; +Cc: Yoanis Gil Delgado
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-31 19:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-30 20:01 Questions about pseudo plugins Yoanis Gil Delgado
2006-03-30 21:16 ` Hans Reiser
2006-03-31 19:30 ` Alexander Zarochentsev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.