IRP of COPY operation

Hi all,

Is there any IRP ? when copy operation is performed either on content of file or file itself.

Thanks.

Hi!

Is there any IRP? ? when copy operation is performed
either on content of file or file itself.

Actually yes… There ARE ( not IS ) IRP when you do a copy operation!
Multiple IRPs come.
As such there is NO single IRP for COPY operation.

Consider searching the archives before posting! This has been asked sooooooooooooooooooooo many times.

Regards,
Ayush Gupta
http://www.linkedin.com/in/guptaayush

Cricket on your mind? Visit the ultimate cricket website. Enter http://beta.cricket.yahoo.com

>>Is there any IRP ?

No, and as Ayush said its already been discussed a lot of times, So please search for archives, in fact this is being discussed few weeks back only,

>when copy operation is performed either on content of file or file itself.

What do you mean by “on content or file”.

you open and read src file, you create and write destination file, that is it. nothing special.

No.

On source file: create-read-read-read-cleanup-close
On destination file: create-write-write-write-cleanup-close


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> Hi all,
>
> Is there any IRP ? when copy operation is performed either on content of file or file itself.
>
>
> Thanks.
>

As you may have noticed kernel mode operations handle only the basics of
complex operations such moving/copying.
I have see a lot of questions like this one, and questions like what happens
in the kernel when I select something in explorer, etc…
You should make a little abstraction of what it happening in the users space
against what is happening in kernel.
Like the CopyFile api, as maxim stated, it is clearly that it is implemented
also with basic operations of Read/Write. You cannot possibly detect if the
CopyFile api was called or if someone is just doing I/O on a file, so try
designing you code, in such a manner that it will not depend on the
“complex” operations happening in user space, but on the “basic” ones that
take place in the kernel.

With respect,
Gabriel Bercea

GaMiTech Software Development
Mobile contact: ?(+40)0740049634
eMail: xxxxx@gmail.com
Blog: http://gamitech.blogspot.com/
Linkedin: http://www.linkedin.com/in/gamitech
Twitter: http://www.twitter.com/gamitech

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Wednesday, May 13, 2009 8:49 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] IRP of COPY operation

Hi all,

Is there any IRP ? when copy operation is performed either on content of
file or file itself.

Thanks.


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer