4 Replies Last post: May 6, 2008 10:34 AM by Ken Yu  
Click to view Ken Yu's profile Enthusiast 13 posts since
May 6, 2008

May 6, 2008 8:37 AM

OnTap SDK 3.0 Win32 API FindFirstFile() & FindNextFile() Bug

<div><div>

I am using latest manage-ontap-sdk-3 dated March 26, 2008, Windows XP Service Pack 2, Visual Studio 2005.

 

</div>

<div>

I am using FAS250 with version "NetApp Release 7.1.2.1: Sun Mar 18 20:52:21 PDT 2007" as well as version

 

</div>

<div>

"NetApp Release 7.3X9: Fri Nov 23 23:46:25 PST 2007"

 

</div>

 

 

 

I found there is a problem with the Win32 calls:

 

 

FindFirstFile() & FindNextFile()

 

 

The problems occur as follows:

 

 

1.if filer has folder 3 folders, the Win32 call will only return 2 folders

 

 

2.if filer has folder 2 folders, the Win32 call will only return 1 folder

 

 

2.if filer has folder 1 folder, the Win32 call will only return 0 folder

 

 

That implies the Win32 call will only return 1 foler less.

 

 

If I use the Windows server (CIFS) with the same codes, I will consistently get all folders. So I can conclude that Ontap is doing something different than Windows servers. Could anybody help me out with this issue?

 

 

Thanks.

 

 

Ken

 

</div>

Click to view Harry McIntosh's profile Enthusiast 11 posts since
Mar 14, 2008

Could you post the relevant part of your code?

Click to view Harry McIntosh's profile Enthusiast 11 posts since
Mar 14, 2008

I believe you are ignoring the first file, which is returned when you call FindFirstFile. (Right after calling FindFirstFile, you call FindNextFile without using the information that FindFirstFile put in the "file" structure.)

More Like This

  • Retrieving data ...