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
[0031] The embodiment of the present invention provides a method for writing data, see figure 1 , the method includes:
[0032] 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;
[0033] 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.
[0034] 102: Modify the file tail offset of the target file according to the expected written data length;
[0035] 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
[0040] The embodiment of the present invention provides a method for writing data, see figure 2 , the method includes:
[0041] 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;
[0042] 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.
[0043] The control process performs further operations according to the received write request information.
[0044] 202: Modify the file tail offset of the target file according to the expected written data length;
[0045] According to the file name specified in the write request information, th...
Embodiment 3
[0076] An embodiment of the present invention provides a device for writing data, see Figure 3-Figure 6 , the device consists of:
[0077] 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;
[0078] An offset modifying module 310, configured to modify the file tail offset of the target file according to the expected written data length;
[0079] A control writing module 320, configured to control the user process to write the data desired to be written into the target file.
[0080] Control writing module 320 includes:
[0081] 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