script binding for reiserfs?
Hi all,
As reiserfs more and more popular, is there any binding package for use in script languages? I did a search on Google and nothing found. Curently I am thinking about writing a binding for Perl, which can offer:
1) script-level operation against reiserfs
2) DBI && DBD for reiserfs binding to treat the fs as a database. My aim is constructing a mid-and-small wiki directly on reiserfs without employing any real database
However, after some seeking on source. I got several issues:
1) is there any so-called official userspace api exported?
On gentoo there is a package named progsreiserfs introducing an api set under /usr/include/reiserfs, but I am not very sure if it is stable and the project is still alive.
2) regarding reiser3, where could I start to port? since exporting something in kernelspace is quite risky.
Any advice and hint?
--
Cheers, Dongxu__END__
dongxu.wordpress.com
search.cpan.org/~dongxu
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Peter van Hardenberg
Dongxu,
Reaching into the filesystem itself for a project like this is not a very good idea. A wiki is a set of files -- let the filesystem do the hard work for you and use the standard API that is already in existence -- the VFS. You'll get all the benefits of the Reiser filesystem without having to break compatibility with other systems.
my own thought is that one can operate the filesystem, or at least query it via programming interface, you know, introduce shell is really a bad idea. There are already some examples on CPAN such as Filesys::Ext2.
I think a DBI/DBD interface to a Reiser-friendly file format is a really
Quoted 5 lines
neat idea. You could create table rows as individual files within a directory and do foreign keys with links! I wonder what on-disk form would leverage Reiser4's dancing trees and intelligent allocation the most efficiently?
Yeah, I can store each field into a file, and creat view and table structure from directory and links. With the help of reiserfs, I assume this could be possible to try.
I must say though, there is no binding to the Reiser4 API, and the Namesys
Quoted 4 lines
team is very busy right now working towards getting R4 included in the mainline kernel. Hopefully once they have achieved this, the more exciting development can continue.
2.6.16 is a big step;-P
As for your second question, my experience is strictly with R4, so someone
Quoted 2 lines
else will have to comment on that issue.
Anyway, great help for me, thanks.
All the best,
Quoted 36 lines
Peter van Hardenberg
Quoted 21 lines · Dongxu Ma
Hi all,
As reiserfs more and more popular, is there any binding package for use in script languages? I did a search on Google and nothing found. Curently I am thinking about writing a binding for Perl, which can offer:
1) script-level operation against reiserfs
2) DBI && DBD for reiserfs binding to treat the fs as a database. My aim is constructing a mid-and-small wiki directly on reiserfs without employing any real databaseHowever, after some seeking on source. I got several issues:
1) is there any so-called official userspace api exported?
On gentoo there is a package named progsreiserfs introducing an api set under/usr/include/reiserfs, but I am not very sure if it is stable and the project is still alive.2) regarding reiser3, where could I start to port? since exporting something in kernelspace is quite risky.
Quoted 8 lines
Any advice and hint?
--
Cheers, Dongxu__END__
dongxu.wordpress.com
search.cpan.org/~dongxu <http://search.cpan.org/%7Edongxu>
Quoted 5 lines
--
Peter van Hardenberg
Victoria, BC, Canada
"The wise man proportions his belief to the evidence." -- David Hume
--
Cheers, Dongxu__END__
dongxu.wordpress.com
search.cpan.org/~dongxu
Hi,
Am Samstag, den 08.04.2006, 12:16 +0800 schrieb Dongxu Ma:
Quoted 12 lines · Peter van Hardenberg
Dongxu,
Reaching into the filesystem itself for a project like this is not a very good idea. A wiki is a set of files -- let the filesystem do the hard work for you and use the standard API that is already in existence -- the VFS. You'll get all the benefits of the Reiser filesystem without having to break compatibility with other systems.
Quoted 2 lines
my own thought is that one can operate the filesystem, or at least query it via programming interface, you know,
well, use the usual interface:
stat
creat
lockf
open
write
read
close
truncate
unlink
opendir
readdir
closedir
rename
sendfile
utime
readlink
I don't get what good it would do to use some extra interface with different functions, given that all possible basic actions are already covered... (although transactions would be nice to have ;))
Quoted 1 line
introduce shell is really a bad idea.
What do you mean by that?
Quoted 5 lines
I think a DBI/DBD interface to a Reiser-friendly file format is a really neat idea. You could create table rows as individual files within a directory and do foreign keys with links!
You mean like in a relational database? That's very unflexible and a bad idea on a filesystem. There is a reason relational databases are only used properly in well-defined and limited-size big-design-up-front projects.
And good relational databases are not even stored in files, but directly onto the raw partition.
Quoted 6 lines
I wonder what on-disk form would leverage Reiser4's dancing trees and intelligent allocation the most efficiently?
Yeah, I can store each field into a file, and creat view and table structure from directory and links. With the help of reiserfs, I assume this could be possible to try.
It really depends on what you want to do with it, but of course you can store each field into a file of it's own. The question is if you need that kind of fine granularity...
Quoted 1 line
cheers,
Danny
Quoted 72 lines
I must say though, there is no binding to the Reiser4 API, and the Namesys team is very busy right now working towards getting R4 included in the mainline kernel. Hopefully once they have achieved this, the more exciting development can continue.
2.6.16 is a big step;-P
As for your second question, my experience is strictly with R4, so someone else will have to comment on that issue.
Anyway, great help for me, thanks.
All the best,
Peter van HardenbergOn 4/6/06, Dongxu Ma <[email protected]> wrote:
Hi all,As reiserfs more and more popular, is there any binding package for use in script languages? I did a search on Google and nothing found. Curently I am thinking about writing a binding for Perl, which can offer:
1) script-level operation against reiserfs
2) DBI && DBD for reiserfs binding to treat the fs as a database. My aim is constructing a mid-and-small wiki directly on reiserfs without employing any real databaseHowever, after some seeking on source. I got several issues:
1) is there any so-called official userspace api exported?
On gentoo there is a package named progsreiserfs introducing an api set under/usr/include/reiserfs, but I am not very sure if it is stable and the project is still alive.2) regarding reiser3, where could I start to port? since exporting something in kernelspace is quite risky.
Any advice and hint?
--
Cheers, Dongxu
__END__
dongxu.wordpress.com
search.cpan.org/~dongxu--
Peter van Hardenberg
Victoria, BC, Canada
"The wise man proportions his belief to the evidence." -- David HumeSignature · 4 lines
Cheers, Dongxu __END__ dongxu.wordpress.com search.cpan.org/~dongxu