×

Efficiency of file synchronization in a linear tape file system

  • US 9,372,868 B2
  • Filed: 12/04/2013
  • Issued: 06/21/2016
  • Est. Priority Date: 12/04/2013
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method, in a data processing system, for improved file synchronization of a magnetic tape, the method comprising:

  • determining, by a destination device, whether one or more file checksums exist in an extended file attribute associated with an identified file, wherein the extended file attribute of the identified file is in an index associated with the magnetic tape and wherein the index is in a local data structure associated with the destination device;

    responsive to one or more file checksums existing in the extended file attribute associated with the identified file, reading, by the destination device, the one or more file checksums out of the extended file attribute without accessing the magnetic tape;

    transmitting, by the destination device, the one or more file checksums to a source device;

    upon receiving the one or more file checksums, setting, by the source device, a value of an offset variable and a value of a disagree_length variable to 0;

    determining, by the source device, whether a sum of the value of the offset variable, the value of the disagree_length variable, and a predefined value of a block_length is less than or equal to a size of a modified version of the identified file thereby forming a new file, wherein the predefined value of the block_length is a length of a fixed-length block to calculate checksum;

    responsive to the determining that the sum of the value of the offset variable, the value of the disagree_length variable, and the predefined value of the block_length is greater than the size of the new file, transmitting, by the source device, the data equivalent to the difference of the size of the new file minus the offset from the value of the offset as a literal instruction to the destination device;

    segmenting, by the source device, data of the new file into fixed-length blocks that do not overlap one another;

    calculating, by the source device, one or more new file checksums for each of the fixed-length blocks;

    transmitting, by the source device, the one or more new file checksums to the destination device; and

    storing, by the destination device, the one or more new file checksums in the extended file attributes associated with the new file in the index associated with the magnetic tape in the local data structure.

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