14-01-2016 дата публикации
Номер: US20160012073A1
Принадлежит:
Managing a file on a tape. In response to a request to write a first file to a tape, whether a second file including data identical to the first file already exists on the tape is detected. If the second file exists, a first index of the second file is updated. After completing the write of the first file, metadata, including data starting position and size of the first file, is added to the first index. In response to a request to read the first or second files, the metadata of the first and second indexes are read. Based on the metadata, which of the first or second files can be accessed faster from a current head position is determined. The first file or the second file that can be accessed faster is then read from the tape. 1. A method for managing a file on a tape in a file system , the method comprising:in response to a request to write a first file to a tape, detecting whether a second file including data identical to data of the first file already exists on the tape;if the second file exists on the tape, updating a first index of the second file; andin response to completing the write of the first file to the tape, adding metadata, including a data starting position and a size of the first file, to the first index.2. The method according to claim 1 , further comprising:writing the first file onto the tape; andcreating or updating a second index with metadata including a data starting position and a size of the first file on the tape.3. The method according to claim 2 , further comprising:writing the updated first index onto the tape; andwriting the created or updated second index onto the tape.4. The method according to claim 2 , further comprising:in response to a request to read the first file or the second file, reading the metadata of the first index and the second index;determining, based on the read metadata, which of the first file and the second file can be accessed faster from a current head position; andreading, from the tape, the first file or the ...
Подробнее