×

Fast storage writes

  • US 8,417,679 B1
  • Filed: 05/21/2009
  • Issued: 04/09/2013
  • Est. Priority Date: 05/21/2008
  • Status: Active Grant
First Claim
Patent Images

1. A method for updating an index, comprising:

  • receiving an indication of one or more changes to be made to data associated with corresponding portions of an index tree;

    in response to receipt of the indication, acquiring a top-level lock on a first index tree root associated with the index tree;

    identifying a new location associated with a set of contiguous unused blocks from a data structure configured to store data indicating contiguous unused space associated with a storage medium, wherein the set of contiguous unused blocks is associated with an amount sufficient to support a contiguous write;

    writing the one or more changes to the data to the storage medium prior to updating one or more file name index entries associated with the portions of the index tree corresponding to the changed data, wherein writing the one or more changes includes copying at least the portions of the index tree associated with the changes to be made to the set of contiguous unused blocks associated with the new location on the storage medium and writing the one or more changes to at least a copy of the portions of the index tree at the new location;

    updating the data structure configured to store data indicating contiguous unused space associated with the storage medium;

    updating the one or more file name index entries;

    releasing the top-level lock on the first index tree root; and

    writing a second index tree root over the first index tree root, wherein writing the second index tree root includes updating a version number associated with the index tree and the second index tree root is written over the first index tree root subsequent to the one or more file name index entries being updated.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×