Asynchronous operations?

View: New views
3 Messages — Rating Filter:   Alert me  

Asynchronous operations?

by Igor Mikushkin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

I'm currently using libsmbclient library for read / write to a remote file.
I noticed that it does not support asynchronous operations.
Does Samba VFS support these?
What approach can give better performance:
    1. Read / write through libsmbclient library;
    2. Mount shared smb folder, open remote file as local one and read
/ write to it?

Configuration: Mac OS X 10.5.2.

Thanks.

Best Regards.
Igor

Re: Asynchronous operations?

by Rafal Szczesniak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, May 13, 2008 at 11:51:13AM +0500, Igor Mikushkin wrote:
> Hello!
>
> I'm currently using libsmbclient library for read / write to a remote file.
> I noticed that it does not support asynchronous operations.

Volker checked in a bit of async code into libsmbclient, but it's not used
by the API yet (as far as I remember).


cheers,
--
Rafal Szczesniak
Samba Team member   http://www.samba.org
Likewise Software   http://www.likewisesoftware.com



signature.asc (196 bytes) Download Attachment

Re: Asynchronous operations?

by Derrell Lipman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, May 13, 2008 at 5:36 AM, Rafal Szczesniak <mimir@...> wrote:
> On Tue, May 13, 2008 at 11:51:13AM +0500, Igor Mikushkin wrote:
>  > Hello!
>  >
>  > I'm currently using libsmbclient library for read / write to a remote file.
>  > I noticed that it does not support asynchronous operations.
>
>  Volker checked in a bit of async code into libsmbclient, but it's not used
>  by the API yet (as far as I remember).

Correct.  Volker's code allowed the lower-level requests to operate
asynchronously, but libsmbclient does not make use of that.
libsmbclient as it currently stands is a POSIX emulation library, and
the POSIX routines do not support async operations.  I did, though,
recently change the structure of the libsmbclient code to make it
easier to add new capabilities to libsmbclient beyond POSIX emulation.
 It would be nice, for example, to have a function to open/create a
file which exposed the full horror of the NT API yet provided a "file
descriptor" that could be used with the other libsmbclient functions.
Adding async operations could be done too.  When I add async
capability, however, I want to ensure that I do it in such a way that
it's compatible with samba4.  I'd like for that work to be the
beginnings of a samba4 libsmbclient.  (I don't currently have any of
this work scheduled, however.)

Cheers,

Derrell