Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.6 KiB

  1. ---------------------------------------------
  2. Microsoft Volume Snapshot API Readme File
  3. February 2000
  4. ---------------------------------------------
  5. (c) Microsoft Corporation, 2000. All rights reserved.
  6. This document provides late-breaking or other information that
  7. supplements the Microsoft Volume Snapshot API documentation.
  8. -------------------------
  9. How to Use This Document
  10. -------------------------
  11. To view the Readme file on-screen in Windows Notepad,
  12. maximize the Notepad window. On the Format menu, click Word
  13. Wrap. To print the Readme file, open it in Notepad or
  14. another word processor, and then use the Print command on
  15. the File menu.
  16. ---------
  17. CONTENTS
  18. ---------
  19. Installing the SDK binaries
  20. To install the SDK binaries, run the install.cmd script in
  21. the bin\i386 directory. To un-install the SDK run uninst.cmd
  22. in the same directory.
  23. Creating a snapshot using the command-line utility
  24. Using this SDK you can create snapshots only on FAT volumes.
  25. Before creating the snapshot on a volume you must first
  26. configure the diff area for that volume. See the "Moving a
  27. Diff Area... " section below for details. After configuring
  28. the diff area you can create a snapshot on that volume
  29. by running vss_demo.exe. You should choose the default
  30. values for vss_demo prompts excepting maybe for the
  31. Volume Name prompt where you must put the mount point path
  32. (terminated with backslash) for that volume, for example "F:\".
  33. Beware that the created snapshots are lost after a reboot.
  34. Example:
  35. Z:\nt\drivers\storage\volsnap\vss\bin\i386>vss_demo
  36. Snapshot Set creation succeeded.
  37. GUID = {932ae8c4-1b97-4032-8062-0ab93fce92fc}
  38. Add a volume to the snapshot set? [Y/n]
  39. Attributes [0]:
  40. Initial allocated size (Mb): [10]:
  41. Volume name: ["G:\"]: F:\
  42. Snapshot details: [""]:
  43. A Volume Snapshot was succesfully added to the snapshot set.
  44. The Volume Snapshot was succesfully configured.
  45. Add a volume to the snapshot set? [Y/n] n
  46. Commiting the snapshot(s)..
  47. Allow partial commit? [Y/n]
  48. Allow writers cancel? [y/N]
  49. Ignore writer vetoes? [Y/n]
  50. The snapshot(s) were succesfully created.
  51. The properties of the snapshot #0 :
  52. Id = {00000000-0000-0000-0000-000000000000},
  53. SnapshotSetId = {00000000-0000-0000-0000-000000000000}
  54. Volume = (null), DevObj = (null)
  55. OriginalVolumeId = {00000000-0000-0000-0000-000000000000}
  56. OriginalVolumeName = (null)
  57. ProviderId = {00000000-0000-0000-0000-000000000000}
  58. Details = NULL
  59. Attributes = 0x00000000
  60. Timestamp = 0x0000000000000000
  61. Status = 0,0,0, Inc. No = 0x0000000000000000
  62. Data Length = 0x00000000, Opaque Data = NULL
  63. The name of snapshot #0 : \Device\HarddiskVolumeSnapshot3
  64. Moving a Diff Area from the Default Location
  65. To move a diff area from the default location to another
  66. drive, execute the following commands from the command
  67. line after each boot. Note that "F:" is the name of the
  68. target drive for the snapshot and "G:" is the name of the
  69. drive the diff area will be moved to. Also, the "F:" drive
  70. must be FAT and the "G:" drive must be NTFS. Beware that
  71. the diff area settings are lost after a reboot.
  72. Example:
  73. vsclrda F:
  74. vsda F: G:
  75. Using the sample writers
  76. A writer is by definition an ordinary application that
  77. can listen for snapshot-related events. For running the
  78. command-line sample writer in this SDK you need only
  79. to run tsub.exe in a command window. Then, in a separate
  80. command window you must create a snapshot using vss_demo.
  81. You will notice that the running tsub.exe gets notified
  82. before and after a snapshot gets created.