[PATCH] Upgrade ntvfs_map_*info to ntvfs_map_async_setup/ntvfs_map_async_finish

Sam Liddicott sam at liddicott.com
Fri Jun 26 05:31:19 MDT 2009


ntvfs_map_fsinfo, ntvfs_map_qpathinfo, ntvfs_map_qfileinfo used an
old synchronous mapping technique, acceptable on the grounds that
they were only used by the simple vfs which was synchronous.

Other vfs may/do use these functions, and by upgrading them to use the
ntvfs_map_async_setup/ntvfs_map_async_finish framework, they can now be
used asynchronously.

Signed-off-by: Sam Liddicott <sam at liddicott.com>
---
 source4/ntvfs/ntvfs_generic.c |  113
+++++++++++++++++++++++++++++------------
 1 files changed, 80 insertions(+), 33 deletions(-)


[make test gives identical results with or without this patch.
samba4.raw.qfileinfo.ipc failed initially and identified a bug now fixed]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 153abed8eeaf5dbdc567a94572e024757e61283e.diff
Type: text/x-patch
Size: 4582 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090626/e2d7c051/153abed8eeaf5dbdc567a94572e024757e61283e.bin


More information about the samba-technical mailing list