×

Method and apparatus for enabling adaptive endianness

  • US 7,533,225 B1
  • Filed: 08/17/2004
  • Issued: 05/12/2009
  • Est. Priority Date: 08/17/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method for writing a block comprising:

  • receiving a request to write a first data block and a second data block;

    allocating a first space in a storage pool to store the first data block and a second space in the storage pool to store the second data block in response to the request, wherein the storage pool comprises at least one physical disk;

    writing the first data block to the first space;

    generating a first block pointer referencing the first data block, wherein the first block pointer comprises a first endianness bit associated with the first data block, and wherein the first block pointer is stored in a first indirect block;

    setting the endianness bit for the first data block based on a first host endianness;

    writing the second data block to the second space;

    generating a second block pointer referencing the second data block, wherein the second block pointer comprises a second endianness bit associated with the second data block, and wherein the second block pointer is stored in the first indirect block; and

    setting the endianness bit for the second data block based on a second host endianness, wherein the endianness indicated by the first endianness bit is different from the endianness indicated by the second endianness bit,wherein the first data block, the second data block, and the first indirect block are each located in physically separate locations in the storage pool.

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