Fuse fs with async calls.

Stef Bon stefbon at gmail.com
Tue Oct 1 03:41:51 MDT 2013


Hi,

some time ago I informed about creating a fuse fs using async calls:

https://lists.samba.org/archive/samba-technical/2013-August/094529.html

Volker suggested following the functions in:

source3/client/client.c.

I did this. When I want to write a fuse fs I start with the most basic
functions:

stat
opendir/readdir/closedir

Now to start with the latest I see that in client.c the cmd_dir call
will lead to
cli_list in source3/libsmb/clilist.c. There it is programmed as a sync
call. I'm thinking to
write a async version for a fuse fs by making my fuse readdir function
call something simular like

cli_list_trans_send

where the callback is set in req->async.fn, and private data (like a
fuse handle to the directory and the fuse request, to call the
fuse_reply_buf/fuse_reply_err).

Is this good thinking?

Stef Bon


More information about the samba-technical mailing list