Data reading-writing method and device for remote data storage and system thereof
A remote data and data technology, applied in the field of elastic computing cloud technology and remote data storage and remote data storage, can solve the problem of high cost of purchasing or renting storage resources, and achieve the effect of saving occupation, reducing costs, and optimizing remote storage services.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach
[0042] Based on the architecture of the remote network storage service applied in the embodiment of the present application described above, when the block device driver 20 in the kernel state forwards the data read and write request sent from the bottom layer of the physical server to a server 22 in the user state, the data The read and write request will contain two important pieces of information, one is the offset: the offset of the starting position of the requested data on the disk relative to the starting position of the corresponding block device, and the other is the length value of the requested data length.
[0043] Specifically, according to the offset information contained in the data read and write request, the start sector number start_sector_id of the requested data in the disk space occupied by the corresponding block device can be calculated according to the following formula:
[0044] start_sector_id=offset / sector_size;
[0045] Among them, sector_size is th...
Embodiment 1
[0057] Embodiment 1, write data flow:
[0058] Such as Figure 4 As shown, it is a processing flow chart of writing data processing proposed in the embodiment of the present application, specifically as follows:
[0059] Step 40, the server in the user state receives the write data request forwarded by the block device driver in the kernel state and the data requested to be written;
[0060] Step 41, according to the offset value and length value contained in the received data write request, the server determines the data for storing the requested write data according to the method of determining the corresponding sector number set sector_set for the data read and write request described above The sector number set sector_set composed of the sector numbers corresponding to each sector of ;
[0061] Step 42, the server traverses each sector_id in the sector_set determined above;
[0062] Step 43, the server sets the bit position of the bitmap corresponding to the sector_id f...
Embodiment 2
[0069] Embodiment 2, device for writing data:
[0070] The device for writing data can run in the server in the user mode, and it can be realized by a computer program, or it can be realized by logical design of hardware with related functions. Such as Figure 5 As shown, it is a schematic diagram of the specific composition and structure of the write data processing device proposed by the embodiment of the present application, specifically including a request receiving unit 50 for receiving the write data request forwarded by the block device driver in the kernel state and the data requested to be written. The sector number determination unit 51 is used to determine the sector number sector_id corresponding to each sector for storing the data requested to be written according to the parameter for determining the sector number sector_id included in the write data request received by the request receiving unit 50 Specifically, the sector number determination unit 51 may includ...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com