STATUS_NO_SUCH_FILE & STATUS_OBJECT_NAME_NOT_FOUND

So, I’ve been trying to work through the IfsTests
in preperation for PlugFest next week… and I’m
running into a bit of a problem with these to
status codes.

When I don’t find a file, if I return
STATUS_OBJECT_NAME_NOT_FOUND, the
UnicodeOnDiskTest squawks and says it
wants STATUS_NO_SUCH_FILE.

Yet, if I return STATUS_NO_SUCH_FILE,
I get a failure in FileFullPathCreationTest
that it wants STATUS_OBJECT_NAME_NOT_FOUND.

Can anyone tell me when I should return
STATUS_OBJECT_NAME_NOT_FOUND and when
I should return STATUS_NO_SUCH_FILE.

Thanks,

Joseph

STATUS_NO_SUCH_FILE is, IIRC, for FindFirst/FindNext calls, and
STATUS_OBJECT_NAME_NOT_FOUND is for IRP_MJ_CREATE when the user requested
OPEN/OVERWITE.

Joseph Galbraith wrote:

So, I’ve been trying to work through the IfsTests
in preperation for PlugFest next week… and I’m
running into a bit of a problem with these to
status codes.

When I don’t find a file, if I return
STATUS_OBJECT_NAME_NOT_FOUND, the
UnicodeOnDiskTest squawks and says it
wants STATUS_NO_SUCH_FILE.

Yet, if I return STATUS_NO_SUCH_FILE,
I get a failure in FileFullPathCreationTest
that it wants STATUS_OBJECT_NAME_NOT_FOUND.

Can anyone tell me when I should return
STATUS_OBJECT_NAME_NOT_FOUND and when
I should return STATUS_NO_SUCH_FILE.

Thanks,

Joseph


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.

Thanks; that was the differentiator I was looking for.

  • Joseph

Dejan Maksimovic wrote:

STATUS_NO_SUCH_FILE is, IIRC, for FindFirst/FindNext calls, and
STATUS_OBJECT_NAME_NOT_FOUND is for IRP_MJ_CREATE when the user requested
OPEN/OVERWITE.

Joseph Galbraith wrote:

>So, I’ve been trying to work through the IfsTests
>in preperation for PlugFest next week… and I’m
>running into a bit of a problem with these to
>status codes.
>
>When I don’t find a file, if I return
>STATUS_OBJECT_NAME_NOT_FOUND, the
>UnicodeOnDiskTest squawks and says it
>wants STATUS_NO_SUCH_FILE.
>
>Yet, if I return STATUS_NO_SUCH_FILE,
>I get a failure in FileFullPathCreationTest
>that it wants STATUS_OBJECT_NAME_NOT_FOUND.
>
>Can anyone tell me when I should return
>STATUS_OBJECT_NAME_NOT_FOUND and when
>I should return STATUS_NO_SUCH_FILE.
>
>Thanks,
>
>Joseph
>
>—
>Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
>You are currently subscribed to ntfsd as: xxxxx@alfasp.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@vandyke.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

But …If I’m not wrong…for

FindFirst/FindNext status code is STATUS_SUCCESS or
STATUS_NO_MORE_FILES,
For invalid names …STATUS_OBJECT_NAME_NOT_FOUND,
and for CREATE/OPEN of non-existing file/folder its STATUS_NO_SUCH_FILE.

Please let me know if I’m wrong and any inputs would be grateful to
clear my doubts on the same…

–Cheers
K.Raju

-----Original Message-----
From: Joseph Galbraith [mailto:xxxxx@vandyke.com]
Sent: Friday, December 03, 2004 3:53 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] STATUS_NO_SUCH_FILE & STATUS_OBJECT_NAME_NOT_FOUND

Thanks; that was the differentiator I was looking for.

  • Joseph

Dejan Maksimovic wrote:

STATUS_NO_SUCH_FILE is, IIRC, for FindFirst/FindNext calls, and
STATUS_OBJECT_NAME_NOT_FOUND is for IRP_MJ_CREATE when the user
requested OPEN/OVERWITE.

Joseph Galbraith wrote:

>So, I’ve been trying to work through the IfsTests in preperation for
>PlugFest next week… and I’m running into a bit of a problem with
>these to status codes.
>
>When I don’t find a file, if I return
>STATUS_OBJECT_NAME_NOT_FOUND, the
>UnicodeOnDiskTest squawks and says it
>wants STATUS_NO_SUCH_FILE.
>
>Yet, if I return STATUS_NO_SUCH_FILE,
>I get a failure in FileFullPathCreationTest that it wants
>STATUS_OBJECT_NAME_NOT_FOUND.
>
>Can anyone tell me when I should return STATUS_OBJECT_NAME_NOT_FOUND
>and when I should return STATUS_NO_SUCH_FILE.
>
>Thanks,
>
>Joseph
>
>—
>Questions? First check the IFS FAQ at
>https://www.osronline.com/article.cfm?id=17
>
>You are currently subscribed to ntfsd as: xxxxx@alfasp.com To
>unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com Alfa Transparent File
Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@vandyke.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

FindFirst/Find next returns STATUS_NO_MORE_FILES if some entries were
returned in previous queries; if there are no entries at all that match the
request then STATUS_NO_SUCH_FILE is returned.
For invalid names there is STATUS_OBJECT_NAME_INVALID; create operation
never returns STATUS_NO_SUCH_FILE.

Alexei.

“Krishnama Raju” wrote in message
news:xxxxx@ntfsd…
But …If I’m not wrong…for

FindFirst/FindNext status code is STATUS_SUCCESS or
STATUS_NO_MORE_FILES,
For invalid names …STATUS_OBJECT_NAME_NOT_FOUND,
and for CREATE/OPEN of non-existing file/folder its STATUS_NO_SUCH_FILE.

Please let me know if I’m wrong and any inputs would be grateful to
clear my doubts on the same…

–Cheers
K.Raju

-----Original Message-----
From: Joseph Galbraith [mailto:xxxxx@vandyke.com]
Sent: Friday, December 03, 2004 3:53 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] STATUS_NO_SUCH_FILE & STATUS_OBJECT_NAME_NOT_FOUND

Thanks; that was the differentiator I was looking for.

- Joseph

Dejan Maksimovic wrote:
> STATUS_NO_SUCH_FILE is, IIRC, for FindFirst/FindNext calls, and
> STATUS_OBJECT_NAME_NOT_FOUND is for IRP_MJ_CREATE when the user
> requested OPEN/OVERWITE.
>
> Joseph Galbraith wrote:
>
>
>>So, I’ve been trying to work through the IfsTests in preperation for
>>PlugFest next week… and I’m running into a bit of a problem with
>>these to status codes.
>>
>>When I don’t find a file, if I return
>>STATUS_OBJECT_NAME_NOT_FOUND, the
>>UnicodeOnDiskTest squawks and says it
>>wants STATUS_NO_SUCH_FILE.
>>
>>Yet, if I return STATUS_NO_SUCH_FILE,
>>I get a failure in FileFullPathCreationTest that it wants
>>STATUS_OBJECT_NAME_NOT_FOUND.
>>
>>Can anyone tell me when I should return STATUS_OBJECT_NAME_NOT_FOUND
>>and when I should return STATUS_NO_SUCH_FILE.
>>
>>Thanks,
>>
>>Joseph
>>
>>—
>>Questions? First check the IFS FAQ at
>>https://www.osronline.com/article.cfm?id=17
>>
>>You are currently subscribed to ntfsd as: xxxxx@alfasp.com To
>>unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> –
> Kind regards, Dejan M. MVP for DDK
> http://www.alfasp.com E-mail: xxxxx@alfasp.com Alfa Transparent File
> Encryptor - Transparent file encryption services.
> Alfa File Protector - File protection and hiding library for Win32
developers.
> Alfa File Monitor - File monitoring library for Win32 developers.
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@vandyke.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

STATUS_OBJECT_NAME_NOT_FOUND is for mainstream use, including all CREATE
paths.

STATUS_NO_SUCH_FILE is used only inside directory control (readdir()
semantics) in a case if there is zero files which match the search wildcard.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Joseph Galbraith”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, December 02, 2004 8:01 PM
Subject: [ntfsd] STATUS_NO_SUCH_FILE & STATUS_OBJECT_NAME_NOT_FOUND

> So, I’ve been trying to work through the IfsTests
> in preperation for PlugFest next week… and I’m
> running into a bit of a problem with these to
> status codes.
>
> When I don’t find a file, if I return
> STATUS_OBJECT_NAME_NOT_FOUND, the
> UnicodeOnDiskTest squawks and says it
> wants STATUS_NO_SUCH_FILE.
>
> Yet, if I return STATUS_NO_SUCH_FILE,
> I get a failure in FileFullPathCreationTest
> that it wants STATUS_OBJECT_NAME_NOT_FOUND.
>
> Can anyone tell me when I should return
> STATUS_OBJECT_NAME_NOT_FOUND and when
> I should return STATUS_NO_SUCH_FILE.
>
> Thanks,
>
> Joseph
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>