Fuse fs with async calls.
Volker Lendecke
Volker.Lendecke at SerNet.DE
Wed Oct 2 08:59:52 MDT 2013
On Tue, Oct 01, 2013 at 11:41:51AM +0200, Stef Bon wrote:
> 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?
In principle, that's right. You should however not look at
req->async.fn directly. Please look at
tevent_req_set_callback and friends.
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
*****************************************************************
visit us on it-sa:IT security exhibitions in Nürnberg, Germany
October 8th - 10th 2013, hall 12, booth 333
free tickets available via code 270691 on: www.it-sa.de/gutschein
******************************************************************
More information about the samba-technical
mailing list