More questions about recent changes in the libfuse api

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

More questions about recent changes in the libfuse api

Vincenzo Ciancia
Hi all,

I am still in the process of updating ocamlfuse, with more questions (and
try to guess what will happen when I will release 2.3 and approach the
inode based api!):

What's the writepage field in fuse_file_info good for?

Where can I find more information about the buf, offset and stat parameters
to the readdir filler ?

What's the op_size argument in fuse_setup good for? I set it as
"sizeof(struct fuse_operations)" and it works - I should perhaps do less
trial and error :)

Bye, thanks and sorry for having missed part of the history

Vincenzo

--
Please note that I do not read the e-mail address used in the from field but
I read vincenzo_ml at yahoo dot it
Attenzione: non leggo l'indirizzo di posta usato nel campo from, ma leggo
vincenzo_ml at yahoo dot it



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
fuse-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fuse-devel
Reply | Threaded
Open this post in threaded view
|

Re: More questions about recent changes in the libfuse api

Miklos Szeredi
> I am still in the process of updating ocamlfuse, with more questions (and
> try to guess what will happen when I will release 2.3 and approach the
> inode based api!):
>
> What's the writepage field in fuse_file_info good for?

Currently nothing.

It was used to indicate an asynchronous writeback comming from a
memory mapping.  When writable mappings will work again (if ever) this
should again be meaningful.

I can't remember why does the filesystem need to distinguish normal
writes from mmap writebacks.  Hmm...

> Where can I find more information about the buf, offset and stat parameters
> to the readdir filler ?

From <fuse.h>?  What more info do you need?

> What's the op_size argument in fuse_setup good for? I set it as
> "sizeof(struct fuse_operations)" and it works

Yes.  That's what documentation says in <fuse.h>.

Or do you want to ask, why that parameter is needed?  It's a crude
sort of interface versioning: if new methods are added, the interface
remains backward and forward compatible.

Miklos


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
fuse-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fuse-devel