Howto receive fsnotify messages with libsmbclient.

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Sep 3 06:41:49 MDT 2012


On Mon, Sep 03, 2012 at 01:27:44PM +0200, Jelmer Vernooij wrote:
> On Mon, Sep 03, 2012 at 01:17:53PM +0200, Stef Bon wrote:
> > How is it possible to make a FUSE fs like mine read the socket/fd's
> > used in libsmbclient?
> > Jelmer said that using these fd's is not easy, since in theory the
> > fd's may break down temporarly,
> > and using them in a direct way is not the way libsmbclient is designed.
> To clarify what I meant; I'm not convinced it is a good idea (or
> necessary) to expose internals like fds to the user like this.
> Actually exposing them is probably not hard.

Agreed. Unfortunately I don't think there is a sane way to
do the changenotify calls using the exported libsmbclient
interface. We certainly do have the ability to do so using
the tevent_req API, but this is a layer below libsmbclient
and not exported publically. This is definitely something
that would be very nice to have, but it's just not done yet.

Sorry,

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


More information about the samba-technical mailing list