31,280 Views 4 Replies Last post: May 6, 2008 10:34 AM by keny-otsw RSS
keny-otsw Enthusiast 14 posts since
May 6, 2008
Currently Being Moderated

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>

Tags: sdk, win32, api, sdk, win32, api
hmmcintosh Enthusiast 26 posts since
Mar 14, 2008
Currently Being Moderated
May 6, 2008 8:58 AM in response to: keny-otsw
Re: OnTap SDK 3.0 Win32 API FindFirstFile() & FindNextFile() Bug

Could you post the relevant part of your code?

hmmcintosh Enthusiast 26 posts since
Mar 14, 2008
Currently Being Moderated
May 6, 2008 9:14 AM in response to: keny-otsw
Re: OnTap SDK 3.0 Win32 API FindFirstFile() & FindNextFile() Bug

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 ...

Bookmarked By (0)