Disassembly and reassembly of a tar archive
AssigneeRed Hat, Inc.
InventorVincent Batts
Life of this patent
Estimating the term…
Abstract
Mechanisms for disassembling and reassembling a tar archive are disclosed. A computing device accesses a tar archive comprising a file payload data segment and a plurality of non-payload data segments. The non-payload data segments in the tar archive are identified. The non-payload data segments are stored in a replay log structure. The file payload data segment of a file is identified in the tar archive, and file identification data identifying the file is stored in the replay log structure. The file payload data segment is not stored in the replay log structure.
Claims17
A method for generating a replay log structure comprising:
- accessing, by a computing device comprising a processor, a tar archive comprising a file payload data segment and a plurality of non-payload data segments;
- identifying the plurality of non-payload data segments in the tar archive;
- storing the plurality of non-payload data segments in a replay log structure;
- identifying the file payload data segment of a file in the tar archive;
- storing file identification data identifying the file in the replay log structure, wherein the file payload data segment is not stored in the replay log structure;
- generating a payload data validation value based on the file payload data segment of the file;
- storing the payload data validation value in the replay log structure;
- and
- generating a reassembled tar archive by:
- accessing the file payload data segment of the file based on the file identification data;
- sending the plurality of non-payload data segments from the replay log structure in a same sequence as the plurality of non-payload data segments are arranged in the replay log structure;
- and
- sending the file payload data segment of the file in a same position with respect to the plurality of non-payload data segments as in the tar archive.
A computing device, comprising:
- a memory;
- a processing device coupled to the memory to:
- access a tar archive comprising a file payload data segment and a plurality of non-payload data segments;
- identify the plurality of non-payload data segments in the tar archive;
- store the plurality of non-payload data segments in a replay log structure;
- identify the file payload data segment of a file in the tar archive;
- store file identification data identifying the file in the replay log structure, wherein the file payload data segment is not stored in the replay log structure;
- generate a payload data validation value based on the file payload data segment of the file;
- and
- store the payload data validation value in the replay log structure;
- and
- generate a reassembled tar archive by:
- access the file payload data segment of the file based on the file identification data;
- send the plurality of non-payload data segments from the replay log structure in a same sequence as the plurality of non-payload data segments are arranged in the replay log structure;
- and
- send the file payload data segment of the file in a same position with respect to the plurality of non-payload data segments as in the tar archive.
A method, comprising:
- accessing a tar archive;
- identifying a plurality of non-payload data segments in the tar archive interspersed with a plurality of file payload data segments, each file payload data segment comprising contents of a corresponding file stored in the tar archive;
- storing the plurality of non-payload data segments in a replay log structure in a same sequential order as the plurality of non-payload data segments occurs in the tar archive;
- storing file identification information for each respective file payload data segment that identifies the file corresponding to the respective file payload data segment in the replay log structure, wherein the plurality of file payload data segments is not stored in the replay log structure;
- generating, for each respective file payload data segment of the plurality of file payload data segments, a payload data validation value based on the respective file payload data segment;
- storing each payload data validation value in the replay log structure;
- and
- generating a reassembled tar archive by:
- accessing the file payload data segment of the file based on the file identification data;
- sending the plurality of non-payload data segments from the replay log structure in a same sequence as the plurality of non-payload data segments are arranged in the replay log structure;
- and
- sending the file payload data segment of the file in a same position with respect to the plurality of non-payload data segments as in the tar archive.
Dependencies are inferred from the claim text.