[jcifs] JCIFS pagination

SridharJonnalagadda234 at air-watch.com SridharJonnalagadda234 at air-watch.com
Wed Oct 22 16:32:11 MDT 2014

Hello JCIFS support team,

We have a requirement where there will be multiple calls, to list contents of a folder. From MS-CIFS doc, there are two commands TRANS_FIND_FIRST2 and TRANS_FIND_NEXT2 that might be used to retrieve folder contents as pages.

The listFiles() API in SmbFile is retrieving all the contents as one big list. I see the code is using TRANS_FIND_FIRST2 and TRANS_FIND_NEXT2. SmbFile does not have API to fulfill the requirement.

The wrapper service around this library, is based on async event driven approach. We are using Vertx polyglot framework. There are chances where the contents in the folder keeps growing and memory consumption becomes non-deterministic.

I'm thinking to enhance SmbFile to include this feature.

Am I on the right track? What is the process to publish these changes.

>From my end, one long term solution need is to make it as async library using netty and Observable pattern for most of the SmbFile APIs.  Is it a valid thing to be on road map for this library?

Sridhar Jonnalagadda
Sr Developer - Java
C  | 425.533.6817
SridharJonnalagadda234 at air-watch.com<mailto:SridharJonnalagadda234 at air-watch.com>
Interact with AirWatch via Twitter<https://twitter.com/AirWatchMDM>, LinkedIn<http://www.linkedin.com/groups?gid=2202943&trk=hb_side_g> and Google+<https://plus.google.com/u/0/106579500291096176030/posts>
[AirWatch - We Simplify Enterprise Mobility]<http://www.air-watch.com/>
This communication is confidential and is intended to be privileged pursuant to applicable law. If you are not a designated recipient of this message, please do not read, copy, use or disclose this message or its attachments. Notify the sender by replying to this message and delete or destroy all copies of this message and attachments in all media. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20141022/688728d9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 6360 bytes
Desc: image003.jpg
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20141022/688728d9/attachment.jpg>

More information about the jCIFS mailing list