From: Subramanian S <hel...@gm...> - 2008-02-24 16:59:23
|
Hi, In my project i am storing the files in a database and using FUSE to reach and do other file system operation in them. The communication is through SOAP. The database used is mysql. So now what I have done is that I have written a web service which gets the file attributes from the database , makes a SOAP message out of it and sends it to the LINUX client . There is a SOAP client which receives the SOAP message and parses it to get the file attribute list. Now what I want to know is that , how can I make these things happen inside FUSE.ie, if I type " ls " with FUSE process running on the background , the above things should happen. Waiting for your reply, Subramanian.S |
From: Miklos S. <mi...@sz...> - 2008-02-27 14:01:09
|
> In my project i am storing the files in a database and using FUSE to > reach and do other file system operation in them. The communication is > through SOAP. > The database used is mysql. So now what I have done is that I have > written a web service which gets the file attributes from the database , > makes a SOAP message out > of it and sends it to the LINUX client . There is a SOAP client which > receives the SOAP message and parses it to get the file attribute list. > > Now what I want to know is that , how can I make these things happen > inside FUSE.ie, if I type " ls " with FUSE process running on the > background , > the above things should happen. It should be easy, you just need to implement the readdir() and getattr() methods. Try modifying these function in the examples/hello.c program. Miklos |
From: Subramanian S <hel...@gm...> - 2008-02-28 08:23:20
|
Hi, Then it should work like this.. When I type " ls ", the web service should get invoked and it should get the file attributes, envelope it and send it to the client. This should happen in the fuse process. But using FUSE how can I display the file attributes since IO won't work... Thanking you, Waiting for your reply, Subramanian.S |
From: Miklos S. <mi...@sz...> - 2008-03-03 12:11:11
|
> Then it should work like this.. > > When I type " ls ", the web service should get invoked and it > should get the file attributes, envelope it and send it to the > client. This should happen in the fuse process. But using FUSE how > can I display the file attributes since IO won't work... You should implement the getattr() method, and fill in the attributes. For a simple example see 'example/hello.c'. You can start out from this example filesystem and modify the hello_getattr() function to retreive the attributes from the remote web service. Miklos |