The present invention relates generally to computer environments. More specifically, a file system quiescing driver is disclosed.
Data protection plays an increasingly important role in today's computer systems. Data protection often involves creating regular backups of data. Data may be backed up in various ways, such as by creating a snapshot of a disk. A snapshot, as used herein, includes a backup copy of data as it appeared at a certain point in time. Typically, a portion of disk data is stored in a separate memory associated with the disk, such as in a cache. Before creating a snapshot of a disk, data held in that associated memory is typically flushed to the disk so that a consistent snapshot of the disk can be taken. It would be desirable to have a method for making a disk consistent for file system backup or for other purposes.
Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.
The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
A flush request is sent (320). For example, the flush request may be sent to the file system driver. For example, in a Windows system, “FlushFileBuffers(Drive)” may be called in one embodiment. The request does not necessarily result in the cache flushing completely to the disk. The request may result in the scheduling of the data in the cache to be flushed. It is then determined whether the flush is complete (324). For example, in a Windows system, “CcIsThereDirtyData(currentIrpStack->FileObject->Vpb)” may be called to determine whether the cache is flushed. If the flush is not complete, there is a wait (324) and the flush request is again made (320). In some embodiments, the flush request is made 50 times every 20 seconds until it is determined that the flush is complete. When the flush is complete, the cache is flushed and the file system image on the disk is consistent.
In some embodiments, kernel mode change requests are held by the file system quiescing driver. Kernel mode requests include requests from the microprocessor, operating system, or other highly privileged systems. A snapshot of the disk is created (325). When the snapshot is complete, user mode and kernel mode change requests that were held are released (328). The file system quiescing driver is optionally inactivated (332). For example, a device object for the drive may be removed. The backup is then started (332). For example, the backup may be created based on the snapshot.
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
This application is a continuation of co-pending U.S. patent application Ser. No. 10/873,744, entitled FILE SYSTEM QUIESCING DRIVER filed Jun. 21, 2004 which is incorporated herein by reference for all purposes, which claims priority to U.S. Provisional Patent Application No. 60/542,440 entitled FILE SYSTEM QUIESCING DRIVER filed Feb. 5, 2004 which is incorporated herein by reference for all purposes.
Number | Date | Country | |
---|---|---|---|
60542440 | Feb 2004 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10873744 | Jun 2004 | US |
Child | 13715772 | US |