File merging method, storage device, storage equipment and storage medium

The invention provides a file merging method and a storage device. The method comprises the steps that a data storage range of N1 data blocks of a first file and a data storage range of N2 data blocksof a second file are determined; under the condition that the data storage range of the N1 data bloc...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: BHUPENDRA KUMAR JAIN, ZHANG YONG, ASHISH SINGHI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a file merging method and a storage device. The method comprises the steps that a data storage range of N1 data blocks of a first file and a data storage range of N2 data blocksof a second file are determined; under the condition that the data storage range of the N1 data blocks and the data storage range of the N2 data blocks do not overlap, identifiers of the N1 data blocks and identifiers of the N2 data blocks are added into a data block list of a target file, so that the target file comprises data in the N1 data blocks and data in the N2 data blocks; and under the condition that the data storage range of the N1 data blocks and the data storage range of the N2 data blocks overlap, the identifiers of M data blocks, in the data storage ranges which do not overlap,among the N1 data blocks and the N2 data blocks are added into the data block list of the target file, and the data, except that in the M data blocks, in the N1 data blocks and the N2 data blocks is written into P data blocks