×

Method and apparatus for increasing efficiency of data storage in a file system

  • US 7,647,355 B2
  • Filed: 10/30/2003
  • Issued: 01/12/2010
  • Est. Priority Date: 10/30/2003
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method comprising:

  • receiving, using a processor, a command to store a file in a file system having an inode, wherein the inode is usable to store metadata associated with the file;

    responsive to the file having a size that is greater than a block size of blocks in the file system, storing a plurality of data of the file only in an integer number of blocks, wherein a first remainder data of the file remains after storing, and wherein the first remainder data is less than the block size;

    placing the first remainder data directly into the inode;

    responsive to a second remainder data of the file still remaining after the first remainder data is placed into the inode, placing the second remainder data into an unused space of a partially used block of the file system, wherein the partially used block also stores data of another file; and

    responsive to the partially used block becoming full from storing the second remainder data in the partially used block, removing the partially used block from a list of free shared blocks, wherein, for each free shared block on the list of free shared blocks, the list of free shared blocks contains a block number, a free byte quantity, and a pointer to a next free shared block.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×