File generation for testing single-instance storage algorithm
First Claim
1. A method comprising:
- for each section of a plurality of sections of a buffer,retrieving a string of characters from the section, by a computing device;
reordering characters within the string of characters, by the computing device, to generate a reordered string of characters for the section;
for each section of the plurality of sections of the buffer,copying over the string of characters within the section with the reordered string of characters for a different section of the plurality of sections, by the computing device;
outputting the buffer to a file, the file adapted to mimic a non-artificially generated file in relation to testing a single-instance storage algorithm; and
,testing the single-instance storage algorithm using the file by detecting a repeating pattern of data within the file, such that just one copy of the repeating pattern is stored within the file and other copies of the repeating pattern are each replaced within the file by a reference to the one copy of the repeating pattern stored within the file.
2 Assignments
0 Petitions
Accused Products
Abstract
For each section of a buffer, a string of characters is retrieved and reordered to generate a reordered string of characters for the section. Thereafter, for each section of the buffer, the string of characters within the section is copied over with the reordered string of characters for a different section of the buffer. The buffer is then output to a file. If a desired length of the file has not yet been reached, then this process is repeated, or the buffer is again output to the file, based on a desired amount of duplicate data to be included within the file. The resulting file can be used to test a single-instance storage algorithm. The file is thus adapted to mimic a non-artificially generated file in relation to testing a single-instance storage algorithm.
-
Citations
17 Claims
-
1. A method comprising:
-
for each section of a plurality of sections of a buffer, retrieving a string of characters from the section, by a computing device; reordering characters within the string of characters, by the computing device, to generate a reordered string of characters for the section; for each section of the plurality of sections of the buffer, copying over the string of characters within the section with the reordered string of characters for a different section of the plurality of sections, by the computing device; outputting the buffer to a file, the file adapted to mimic a non-artificially generated file in relation to testing a single-instance storage algorithm; and
,testing the single-instance storage algorithm using the file by detecting a repeating pattern of data within the file, such that just one copy of the repeating pattern is stored within the file and other copies of the repeating pattern are each replaced within the file by a reference to the one copy of the repeating pattern stored within the file. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A method comprising:
-
for each section of a plurality of sections of a buffer, retrieving a string of characters from the section, by a computing device; reordering characters within the string of characters, by the computing device, to generate a reordered string of characters for the section; for each section of the plurality of sections of the buffer, copying over the string of characters within the section with the reordered string of characters for a different section of the plurality of sections, by the computing device; outputting the buffer to a file, the file adapted to mimic a non-artificially generated file in relation to testing a single-instance storage algorithm; testing the single-instance storage algorithm using the file; determining an offset; and
,incrementing the offset before each of one or more times the method is repeated, wherein retrieving the string of characters from the section comprises retrieving the string of characters starting at a number of characters into the section equal to the offset.
-
-
13. A system comprising:
-
a processor; a computer-readable data storage medium to store a file; a memory including a buffer having a plurality of a plurality of sections; a component implemented by the processor to generate the file by; for each section of the buffer, retrieving a string of characters from the section; reordering characters within the string of characters to generate a reordered string of characters for the section; for each section of the buffer, copying over the string of characters within the section with the reordered string of characters for a different section of the buffer; outputting the buffer to a file, the file adapted to mimic a non-artificially generated file in relation to testing a single-instance storage algorithm; a testing component to test the single-instance storage algorithm by using the file, wherein the component is further to generate the file by determining an offset, such that retrieving the string of characters from the section comprises retrieving the string of characters starting at a number of characters into the section equal to the offset. - View Dependent Claims (14, 15, 16, 17)
-
Specification