Einzelnen Beitrag anzeigen

NicoDE
(Gast)

n/a Beiträge
 
#8

Re: Geöffnete bzw. gesperrte Datei kopieren

  Alt 4. Nov 2005, 11:21
Zitat von Baeuerle:
Ist es nicht möglich eine genau kopie des Files in den Speicher zu laden und dieses dann zu schreiben?
Genaue Kopie von welchem Moment... das ist die Frage!
Stellt Dir vor, dass du gerade die Daten aus der 'Mitte' liest und sich während dessen der Inhalt am Anfang wieder ändert...

Lies dir bitte mal den Abschnitt Volume Shadow Copy Service im Artikel Windows XP: Kernel Improvements Create a More Robust, Powerful, and Scalable OS durch.

Der wichtigste Teil:
Zitat:
The entire shadow copy API is currently only available to ISVs under NDA; however, file system drivers must properly handle two documented shadow copy-related I/O control requests (IOCTL): IOCTL_VOLSNAP_FLUSH_AND_HOLD_WRITES and IOCTL_VOLSNAP_RELEASE_WRITES. Their names are self-explanatory. The shadow copy API sends the IOCTLs to the logical drives for which snapshots are being taken so that all modifications initiated before the snapshot have completed when the shadow copy is taken, making the file data recorded from a shadow copy consistent in time.
edit:
Zitat von Baeuerle:
so hätte ich doch schonmal das entsprechende Handle oder ??
Nein, das ist ein Handle zu einer Liste von Dateiinformationen die durch eine Suche entstand...


Gruß Nico

edit2: How Volume Shadow Copy Service Works
  Mit Zitat antworten Zitat