IP Library Granted Patent US 7,490,096
Granted Patent B2
US 7,490,096 · App. 11/431,379 · Granted Feb 10, 2009

Automatic intent log testing

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,490,096
App. No.
11/431,379
Granted
Feb 10, 2009
Kind
B2
Abstract

A method for testing an intent log for a file system that includes creating a first file system, issuing a command to freeze the first file system, performing a plurality of commands on the first file system to obtain a plurality of deltas, wherein each of the plurality of deltas is stored in the intent log and is not committed to the first file system, copying the first file system to obtain a second file system, committing each of the plurality of deltas in the intent log to the second file system, unfreezing the first file system and committing each of the deltas in the intent log to the first file system, and comparing the first file system, after committing each of the deltas in the intent log, to the second file system to determine whether the intent log is valid.

Claims (33)

1. A method for testing an intent log for a file system, comprising:

creating a first file system;

issuing a command to freeze the first file system, wherein freezing the first file system stops commitment of deltas to the first file system, wherein deltas correspond to changes made to the metadata associated with the first file system;

performing a plurality of commands on the first file system to obtain a plurality of deltas, wherein each of the plurality of deltas is stored in the intent log and is not committed to the first file system;

copying the first file system to obtain a second file system;

committing each of the plurality of deltas in the intent log to the second file system;

unfreezing the first file system and subsequently committing each of the deltas in the intent log to the first file system, wherein unfreezing the first file system comprises unmounting the first file system and wherein the first file system is remounted prior to committing each of the deltas in the intent log to the first system; and

comparing the first file system, after committing each of the deltas in the intent log, to the second file system to determine whether the intent log is valid.

2. The method of claim 1 , wherein the plurality of commands comprises at least one selected from the group consisting of creating files, creating directories, and accessing control lists.

3. The method of claim 1 , wherein the second file system is created at a temporary location.

4. The method of claim 1 , wherein the method for testing the intent log for the file system is automated.

5. A method for testing an intent log for a file system implemented on a computer, comprising:

creating a first file system and a second file system;

issuing a command to freeze the first file system;

performing, after issuing the freeze command, a plurality of commands on the first file system to obtain a plurality of deltas, wherein each of the plurality of deltas corresponds a change made to the metadata associated with the first file system, wherein each of the plurality of deltas is stored in the intent log and is not committed to the first file system;

performing the plurality of commands on the second file system;

unfreezing the first file system, wherein unfreezing the first file system comprises unmounting the first file system and wherein the first file system is remounted prior to committing each of the deltas in the intent log to the first file system;

committing each of the plurality of deltas in the intent log to the first file system; and

comparing the first file system, after committing each of the plurality of deltas in the intent log, to the second file system to determine whether intent log is valid.

6. The method of claim 5 , wherein the plurality of commands comprises at least one selected from the group consisting of creating files, creating directories, and accessing control lists.

7. The method of claim 5 , wherein the method for testing the intent log for the file system is automated.

8. The method of claim 5 , wherein the first file system and the second file system are empty prior to performing the plurality of commands.

9. A computer readable storage medium comprising computer executable instructions to test an intent log for a file system by:

creating a first file system;

issuing a command to freeze the first file system, wherein freezing the first file system stops commitment of deltas to the file system, wherein deltas correspond to changes made to the metadata associated with the first file system;

performing a plurality of commands on the first file system to obtain a plurality of deltas, wherein each of the plurality of deltas is stored in the intent log and is not committed to the first file system;

copying the first file system to obtain a second file system;

committing each of the plurality of deltas in the intent log to the second file system;

unfreezing the first file system and subsequently committing each of the deltas in the intent log to the first file system, wherein unfreezing the first file system comprises unmounting the first file system and wherein the first file system is remounted prior to committing each of the deltas in the intent log to the first file system; and

comparing the first file system, after committing each of the deltas in the intent log, to the second file system to determine whether the intent log is valid.

10. The computer readable medium of claim 9 , wherein the plurality of commands comprises at least one selected from the group consisting of creating files, creating directories, and accessing control lists.

11. The computer readable medium of claim 9 , wherein the second file system is created at a temporary location.

12. The computer readable medium of claim 9 , wherein the method for testing the intent log for the file system is automated.

Assignments (2)
MERGER AND CHANGE OF NAME Recorded Dec 16, 2015
From: ORACLE USA, INC.; SUN MICROSYSTEMS, INC.; ORACLE AMERICA, INC.
To: ORACLE AMERICA, INC.
Reel/Frame 037304/0137 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 10, 2006
From: PERRIN, NEIL V.; BONWICK, JEFFREY S.
To: SUN MICROSYSTEMS, INC.
Reel/Frame 017885/0271 →