Method for storing massive fragmented files in oversized file by memory mapping and medium

The invention discloses a method for storing massive fragmented files in a super-large file based on memory mapping and a medium. The method comprises the following steps: S1, creating and initializing a data volume; s2, when picture data needs to be stored, searching idle data blocks by using a bit...

Full description

Saved in:
Bibliographic Details
Main Authors ZHU WENJIA, TAO SHIDE
Format Patent
LanguageChinese
English
Published 31.05.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a method for storing massive fragmented files in a super-large file based on memory mapping and a medium. The method comprises the following steps: S1, creating and initializing a data volume; s2, when picture data needs to be stored, searching idle data blocks by using a bitmap algorithm, and quickly writing picture information into the data blocks by using a memory mapping file technology; s3, when a file needs to be read, analyzing a data block index stored in the file according to a requested path, and finding a data block position in the data block index; meanwhile, the content of the data block is mapped into a memory by adopting a memory mapping file technology, and a program reads memory file data and sends the memory file data to the client; and S4, according to the life cycles of the files in different services, only modifying the use state of the data block when the life cycles arrive. The method can be used for reducing the number of INODE description files for each picture
Bibliography:Application Number: CN202111679208