Small-file processing method and device
The invention discloses a small-file processing method and device. The method includes: dividing at least one large-file in a file system into at least one file block; establishing at least one pieceof index information according to a file-block size corresponding to the at least one file block, at...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a small-file processing method and device. The method includes: dividing at least one large-file in a file system into at least one file block; establishing at least one pieceof index information according to a file-block size corresponding to the at least one file block, at least one file-block identifier and at least one large-file identifier; and establishing a first index file according to the at least one piece of index information. According to the method, the first index file is created, thus which large files correspond to the file-block sizes and which free file blocks exist in all large files can be determined through indexing the sizes of file blocks, therefore, a to-be-stored small file can be subsequently stored in a suitable file block, one large filecan store multiple small files, inodes are saved, disk space is more reasonably utilized, and access performance of the file system is improved.
本发明公开了种小文件处理方法及装置,其中,该方法包括:将文件系统中的至少个大文件划分成至少个文件块,根据至少个文件块对应的文件块大小、至少个文件块标识、至少个大 |
---|