[jcifs] SmbFile.listFiles returning too low number of files

Christopher R. Hertel crh at ubiqx.mn.org
Wed Apr 27 23:58:31 MDT 2011


MS NetMon v3.4 is freely available and I think it can save files in pcap
format.  I haven't tried to capture on the loopback interface, but it's
worth a shot.

Chris -)-----

Michael B Allen wrote:
> [CC jcifs list again now that I have the capture]
> 
> Hi Volker,
> 
> Yeah, capturing loopback on Windows is an oddity. Maybe netcap.exe
> from the Support Tools package would be easier. I don't know. I use
> Linux for development.
> 
> But your capture was successful albeit somewhat fragmented as you said.
> 
> Regarding your capture and listing error, my best guess at this point
> is that the particularly orderly list of long filenames and multiple
> layers of buffering used by the TRANS2_FIND_FIRST2/NEXT2 commands have
> conspired to generate incorrect results. More specifically I think
> that even though jcifs.smb.client.listSize = 65535, the
> jcifs.smb.client.listCount = 200 actually does not fit in the 65535
> buffer in just such a way to cause errant results. Try setting
> jcifs.smb.client.listCount = 400 and see if you get different
> behavior. If yes, that would be very interesting. You could also
> trying playing around with those two properties a little to see if
> they have any effect. They shouldn't (unless you set them really low).
> So if they do, it means there's a bug somewhere that would warrant
> further pursuit.
> 
> Mike
> 

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org


More information about the jCIFS mailing list