Change Journals
来源:互联网 发布:实用 知乎 编辑:程序博客网 时间:2024/05/30 02:22
An automatic backup application is one example of a program that must check for changes to the state of a volume to perform its task. The brute force method of checking for changes in directories or files is to scan the entire volume. However, this is often not an acceptable approach because of the decrease in system performance it would cause. Another method is for the application to register a directory notification (by calling theFindFirstChangeNotification orReadDirectoryChangesW functions) for the directories to be backed up. This is more efficient than the first method, however, it requires that an application be running at all times. Also, if a large number of directories and files must be backed up, the amount of processing and memory overhead for such an application might also cause the operating system's performance to decrease.
To avoid these disadvantages, the NTFS file system maintains an update sequence number (USN) change journal. When any change is made to a file or directory in a volume, the USN change journal for that volume is updated with a description of the change and the name of the file or directory.
Change journals are also needed to recover file system indexing—for example after a computer or volume failure. The ability to recover indexing means the file system can avoid the time-consuming process of reindexing the entire volume in such cases.
The following topics discuss change journals.
In this section
Change Journal Records
As files, directories, and other NTFS file system objects are added, deleted, and modified, the NTFS file system enters change journal records in streams, one for each volume on the computer.
Using the Change Journal Identifier
The NTFS file system associates an unsigned 64-bit identifier with each change journal.
Creating, Modifying, and Deleting a Change Journal
Administrators can create, delete, and re-create change journals.
Obtaining a Volume Handle for Change Journal Operations
To obtain a handle to a volume for use with update sequence number (USN) change journal operations, call theCreateFile function with thelpFileName parameter set to a string of the following form: \\.\X.
Change Journal Operations
Control codes and structures to use with the NTFS file system update sequence number (USN) change journal.
source: http://msdn.microsoft.com/en-us/library/aa363798%28VS.85%29.aspx
- Change Journals
- Chemistry Journals
- intel technology journals
- Software Engineering Journals
- Journals for Action Recognition
- 引用 [转]Educational Technology Journals
- change
- Change
- CHANGE
- change
- Change
- change
- change
- Change
- change()
- Change
- Transactions、Magazines、Journals和Proceedings的区别
- Christian Louboutin Red-headed sheepskin journals
- delete_by_day
- 使用CKeditor遇到的问题
- 运行IceGrid demo程序(simple)
- 异常顺序
- swrdlgc
- Change Journals
- Hibernate使用sql语句查询
- 【XEN学习笔记】XEN-3.4.2在Ubuntu 8.04上的编译安装
- 排序算法一(直接选择,堆排序,冒泡排序和快速排序)
- Chrome/IE8 常用快捷键
- 使用Dom4j对XML进行增删改查
- 发送邮件
- 多线程的生命周期
- 免费的BES服务器:BlackBerry Enterprise Server Express