Data reading method and device
A data reading and data technology, applied in the field of data reading, can solve the problems of affecting data reading efficiency, not knowing the relationship between demo.txt, unable to pre-read the subsequent part of the virtual file in advance, etc. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] The embodiment of the present invention provides a method for reading data, and the execution subject is a NAS device such as figure 2 As shown, the method includes the following steps:
[0059] 201. A network attached storage (NAS) device receives a first data reading instruction sent by a client.
[0060] Wherein, the first data reading instruction includes: the virtual address corresponding to the data read this time on the virtual storage file, and the unique identifier corresponding to the file where the data read this time is located, wherein the virtual address on the virtual storage file Addresses include offsets and lengths on said virtual storage file.
[0061] 202. According to the corresponding relationship between the virtual address of the file where the read data is located on the virtual storage file and the unique identifier, the NAS device obtains the file where the read data is located in the The virtual address on the virtual storage file.
[006...
Embodiment 2
[0080] The embodiment of the present invention provides a method for reading data, such as image 3 As shown, the method includes the following steps:
[0081] 301. The client sends a first data reading instruction to the NAS device.
[0082] Here, the first data reading instruction includes: the virtual address of the read data on the virtual storage file this time, and the unique identifier of the file where the data is read this time, wherein the virtual address on the virtual storage file includes Offset and length on the virtual storage file.
[0083] example, such as Figure 4 As shown, when reading the file demo.txt, the data reading instruction sent by the client includes: the unique identifier n of the file where the data is read this time, the virtual address of the data read this time on the virtual storage file, which can be The virtual address of the data block on the virtual storage file is expressed in the form of offset + length, and 0+10 can be used to indi...
Embodiment 3
[0109] An embodiment of the present invention provides a NAS device, such as Figure 5 As shown, it includes: a receiving unit 501 , an obtaining unit 502 , a selecting unit 503 , an accessing unit 504 , a sending unit 505 and a storage unit 506 .
[0110] The receiving unit 501 is configured to receive the first data reading instruction sent by the client, the first data reading instruction includes: the virtual address of the data read this time on the virtual storage file, the address of the file where the data is read this time Uniquely identifies. The obtaining unit 502 is configured to obtain the file where the read data is located in the A virtual address on the virtual storage file; the file where the data read this time is located includes a plurality of data blocks, wherein each data block corresponds to a virtual address on the virtual storage file. The selection unit 503 is configured to select from the virtual address of the file where the data read this time is...
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