×

Method and system supporting per-file and per-block replication

  • US 7,873,799 B2
  • Filed: 04/19/2006
  • Issued: 01/18/2011
  • Est. Priority Date: 11/04/2005
  • Status: Active Grant
First Claim
Patent Images

1. A method for writing data to a storage pool, comprising:

  • receiving a first write operation to write a first data block to the storage pool, wherein the storage pool is organized in a hierarchical tree structure comprising data blocks and indirect blocks located hierarchically above the data blocks;

    determining a first replication type for the first data block using a first replication policy associated with the first data block;

    determining a first number of physical blocks required to write the first data block to the storage pool using a size of the first data block and the first replication type;

    writing the first data block, in accordance with the first replication policy, to the storage pool by filling in the first number of physical blocks,wherein the first replication type for the first data block is stored in a block pointer of a first indirect block referencing the first data block in the hierarchical tree structure;

    receiving a second write operation to write the first indirect block;

    determining a second replication type for the first indirect block using the first replication policy associated with the indirect block;

    determining a second number of physical blocks required to write the first indirect block using a size of the first indirect block and the second replication type;

    writing the first indirect block, in accordance with the first replication policy by filling in the second number of physical blocks in the storage pool,wherein the second replication type and the size for the first indirect block is stored in a block pointer of a second indirect block referencing the first indirect block.

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