use of FILE_OVERWRITE_IF

This is a general question, not a problem.

I have tested my filter driver in many situations, but I have never seen an
application generate an IRP_MJ_CREATE with FILE_OVERWRITE_IF. Has anyone?
What kinds of applications use it? Is it mainly used by the system?

Neil:

A simple test I often use that generates OVERWRITE_IF:

echo Hello > file.txt

HTH,
Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
Sent: Sunday, November 28, 2004 3:21 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] use of FILE_OVERWRITE_IF

This is a general question, not a problem.

I have tested my filter driver in many situations, but I have never seen an
application generate an IRP_MJ_CREATE with FILE_OVERWRITE_IF. Has anyone?
What kinds of applications use it? Is it mainly used by the system?


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

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

Win32 CreateFile with CREATE_ALWAYS.

“Neil Weicher” wrote in message news:xxxxx@ntfsd…
> This is a general question, not a problem.
>
> I have tested my filter driver in many situations, but I have never seen
> an
> application generate an IRP_MJ_CREATE with FILE_OVERWRITE_IF. Has anyone?
> What kinds of applications use it? Is it mainly used by the system?
>
>
>
>

> What kinds of applications use it? Is it mainly used by the system?

What I did, is a simple dialog based application, which is
able to call NtCreateFile and NtClose. All the parameters
are configurable by the dialog’s input controls.
You set the file name, the creation disposition,
the file attributes, desired access, allocation information,
and press the “CreateFile” button. The application
then generates a create request exactly by your wish.
If you want, I can send it to you.

L.

I have used this option in our Backup product when doing a restore with the
overwrite existing file option.

/ted

-----Original Message-----
From: Neil Weicher [mailto:xxxxx@netlib.com]
Sent: Sunday, November 28, 2004 3:21 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] use of FILE_OVERWRITE_IF

This is a general question, not a problem.

I have tested my filter driver in many situations, but I have never seen an
application generate an IRP_MJ_CREATE with FILE_OVERWRITE_IF. Has anyone?
What kinds of applications use it? Is it mainly used by the system?


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

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

That makes sense. Can I ask what you find the advantages are over simply
deleting and re-creating? Thanks. - Neil

----- Original Message -----
From: “Ted Hess”
To: “Windows File Systems Devs Interest List”
Sent: Monday, November 29, 2004 10:26 AM
Subject: RE: [ntfsd] use of FILE_OVERWRITE_IF

> I have used this option in our Backup product when doing a restore with
the
> overwrite existing file option.
>
> /ted
>
> -----Original Message-----
> From: Neil Weicher [mailto:xxxxx@netlib.com]
> Sent: Sunday, November 28, 2004 3:21 PM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] use of FILE_OVERWRITE_IF
>
>
> This is a general question, not a problem.
>
> I have tested my filter driver in many situations, but I have never seen
an
> application generate an IRP_MJ_CREATE with FILE_OVERWRITE_IF. Has anyone?
> What kinds of applications use it? Is it mainly used by the system?
>
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@livevault.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@netlib.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>