Unlock instant, AI-driven research and patent intelligence for your innovation.

File update method, file copy method, and corresponding system

A file update and file copy technology, applied in file system, file/folder operations, special data processing applications, etc., can solve problems such as disk space occupation, file handle cannot be released, file read and write services stop, etc., to achieve saving The effect of occupying and avoiding stopping the file reading and writing service

Active Publication Date: 2020-09-29
CHINA CONSTRUCTION BANK
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1) There are a large number of .nfs temporary files, which will take up a lot of disk space;
[0005] 2) A large number of file handles in memory cannot be released, causing the system to stop file read and write services due to too many file handles

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File update method, file copy method, and corresponding system
  • File update method, file copy method, and corresponding system
  • File update method, file copy method, and corresponding system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to facilitate the understanding of various aspects, features and advantages of the technical solutions of the present invention, the present invention will be specifically described below in conjunction with the accompanying drawings. It should be understood that the various implementations described below are only for illustration, rather than limiting the protection scope of the present invention.

[0041] figure 1 A method for updating files according to an implementation is shown. For example, this embodiment is mainly aimed at the situation where the file update frequency is low and the amount of update data is large. Since it involves file copy operations, it is not suitable for scenarios where file updates are frequent. Its advantage is that it only updates to one file, and the logic of the file update part is relatively simple. In this embodiment, the folders storing files include a running folder storing files being written, a preparation folder stor...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file updating method, a file copying method and a corresponding system. The file updating method according to one implementation way comprises the following steps that: determining a prepared folder and an operating folder conform to an updating requirement or not; if the prepared folder and an operating folder conform to the updating requirement, copying files in the prepared folder into the operating folder; judging whether the prepared folder is consistent with the operating folder or not; and if the prepared folder is consistent with the operating folder, establishing a write lock in the operating folder, and carrying out a file updating operation. The file updating method according to another implementation way comprises the following steps that: judging whether a file catalogue to be updated is damaged or not; if the file catalogue to be updated is damaged, clearing the file catalogue to be updated, and copying a file catalogue which is used at present to the file catalogue to be updated; updating current and previous update lists to the file catalogue to be updated; and switching the file catalogue to be updated into the file catalogue which is used at present. According to the implementation way, the occupation of a disk space is saved, a great quantity of handles can not be accumulated in the memory, and a phenomenon that read-write service stops since file handles in the system are excessive can be avoided.

Description

technical field [0001] The invention relates to computer data processing technology, in particular to a file updating method, a file copying method and a corresponding system. Background technique [0002] The search engine is a very core function in the information field. Through the search, the knowledge needed by the user can be quickly located. The search efficiency and the intelligent processing of the search results have become the core points of the search engine. [0003] At present, search engine indexes are generally shared by Network File System (NFS) to read index files of search engines on different servers. In this way, when index files are updated, reading and writing index files at the same time will cause the following two problems: question: [0004] 1) There are a large number of .nfs temporary files, which will take up a lot of disk space; [0005] 2) A large number of file handles in memory cannot be released, causing the system to stop file read and w...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/16
CPCG06F16/16
Inventor 王全礼邵小亮陈飞谢隆飞郑坚钢
Owner CHINA CONSTRUCTION BANK