Data storage method and system
A data storage system and data storage technology, applied in the direction of electrical digital data processing, special data processing applications, redundant data error detection in computing, etc., can solve complex solutions, increase design and development workload, and cannot Efficient and low-cost data storage consistency and other issues to achieve the effect of consistency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] The invention provides a data storage method, figure 1 A flow chart of Embodiment 1 of the data storage method of the present invention is shown, including:
[0030] Step S101: writing target data into a temporary file;
[0031] Obtain the target data to be written in response to the data write command, write the target data into a temporary file, and the data will be saved as a temporary file. It is necessary to ensure that the data is placed on the disk to deal with hardware restart and hardware power failure.
[0032] Step S102: Rename the temporary file to a formal file by calling the rename system.
[0033] In Linux / UNIX systems, the rename system call has a feature: if the target file already exists, it will be replaced atomically. The rename under the Windows system will fail when the target file already exists, so this solution does not apply to the Windows system.
[0034] The function of the rename function is to rename a file. This function can be used to ...
Embodiment 2
[0042] The present invention also provides a data storage system, figure 2 It shows a schematic structural diagram of Embodiment 2 of the data storage system of the present invention, including:
[0043] Temporary file writing module 101, is used for writing target data into temporary file;
[0044] The official file acquisition module 102 is configured to rename the temporary file into an official file by calling the rename system.
[0045] Such as image 3 shown, corresponding to figure 2 , this embodiment may also include:
[0046] The target data obtaining module 100 is used to obtain the target data to be written in response to the data writing instruction;
[0047] The data reading module 103 is configured to read the target data from the official document in response to the target data read instruction.
[0048] Apply a kind of data storage system provided by this embodiment, write the target data into the temporary file, rename the temporary file into a formal f...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com