A method, device and system for writing data
A technology for writing data and metadata, applied in the field of distributed file systems, it can solve the problems of chaotic and disordered file data and the inability to guarantee the correctness of written data, and achieve the effect of ensuring orderliness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] The embodiment of the present invention provides a method for writing data, see figure 1 , the method includes:
[0034] 101: Receive write request information from a user process, where the write request information includes at least the identifier of the target file and the length of data expected to be written;
[0035] Distributed file system includes user process, control process and file server. When the user process needs to add data (write data) to the system, at first the user process sends the write request information to the control process. The write request information includes the file name, the length of the data to be written, the file attributes and other information.
[0036] 102: Modify the file tail offset of the target file according to the expected written data length;
[0037] According to the file name specified in the write request information, the control process retrieves the memory metadata of the file and obtains the metadata corresponding...
Embodiment 2
[0042] The embodiment of the present invention provides a method for writing data, see figure 2 , the method includes:
[0043] 201: Receive write request information from a user process, where the write request information includes at least the identifier of the target file and the length of data expected to be written;
[0044] Distributed file system includes user process, control process and file server. When the user process needs to add data (write data) to the system, at first the user process sends a write request to the control process. The write request information includes the file name, the length of the data to be written, the file attributes and other information.
[0045] The control process performs further operations according to the received write request information.
[0046] 202: Modify the file tail offset of the target file according to the expected written data length;
[0047] According to the file name specified in the write request information, th...
Embodiment 3
[0078] An embodiment of the present invention provides a device for writing data, see Figure 3-Figure 6 , the device consists of:
[0079] The receiving module 300 is configured to receive the write request information of the user process, the write request information at least includes the identification of the target file and the length of data expected to be written;
[0080] An offset modifying module 310, configured to modify the file tail offset of the target file according to the expected written data length;
[0081] A control writing module 320, configured to control the user process to write the data desired to be written into the target file.
[0082] Control writing module 320 includes:
[0083] The metadata construction unit 321 is configured to calculate the number of required data blocks according to the length of data to be written, and construct a metadata for each data block, the metadata at least includes: the file start corresponding to the data block O...
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