File processing method and device

The invention discloses a file processing method and device, and the method comprises the steps: receiving a file writing request which is transmitted by a process and carries a to-be-written file, and writing the to-be-written file into a memory; obtaining a first check code of the to-be-written fi...

Full description

Saved in:
Bibliographic Details
Main Author ZHOU CHAOYONG
Format Patent
LanguageChinese
English
Published 09.04.2021
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a file processing method and device, and the method comprises the steps: receiving a file writing request which is transmitted by a process and carries a to-be-written file, and writing the to-be-written file into a memory; obtaining a first check code of the to-be-written file by adopting a preset check algorithm; writing the first check code into the to-be-written file stored in the memory to obtain a to-be-stored file; and writing the to-be-stored file into the storage medium. According to the scheme, the file error probability can be reduced, and the user experience is greatly improved. 本发明公开了一种文件的处理方法及装置,该方法包括:接收所述进程发送的携带待写入文件的文件写入请求后,将所述待写入文件写入所述内存中;采用预设的校验算法得到所述待写入文件的第一校验码;将所述第一校验码写入所述内存保存的所述待写入文件中得到待存储文件;将所述待存储文件写入所述存储介质中。该方案可以减少文件出错的概率,大大提升用户体验。
Bibliography:Application Number: CN202011600167