Data storage method and device

A technology of data storage and storage methods, which is applied in the computer field and can solve problems such as increasing the time-consuming of seeking

Inactive Publication Date: 2017-11-03
HANGZHOU HIKVISION DIGITAL TECH
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When storing data according to the above method, it is not only necessary to search for free storage space in the order of the physical addresses of the sto...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data storage method and device
  • Data storage method and device
  • Data storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0085] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0086] The present invention will be described in detail below through specific examples.

[0087] refer to figure 1 , figure 1 It is a schematic flow diagram of a data storage method provided by an embodiment of the present invention, which is applied to a terminal. The terminal includes at least one disk. The disk can be divided into multiple virtual storage segments according to physical addresses. The physical address range corresponding to the multiple virtua...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a data storage method and device, which are applied to a terminal. The terminal includes at least one disk. The disk is divided into a plurality of virtual storage segments according to physical addresses, and physical address ranges corresponding to the plurality of virtual storage segments do not coincide. The method includes: receiving a storage request for to-be-stored data, determining a target virtual-storage-segment, which is used for storing the to-be-stored data, according to an identifier of a target file corresponding to the to-be-stored data and information stored in metadata storage segments; obtaining a last storage location of data stored in the target virtual-storage-segment, and determining that the obtained storage location is an initial storage location of the to-be-stored data, and from the initial storage location, starting to store the to-be-stored data. By applying the embodiment of the invention to store the data, seek time is reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a data storage method and device. Background technique [0002] Currently, computers read and write data in files in the order of physical addresses on the disk. However, as the number of files stored on the disk increases, a large number of files will be migrated and deleted, resulting in a fragmented distribution of the storage space of the disk. At this time, if the computer needs to store data again, for example, when storing the target data, it needs to search for free storage space in the disk according to the order of physical addresses, and judge whether the free storage space can store the above target data, if not, then It is necessary to search for free storage space again to find free storage space capable of storing the target data and store the target data. [0003] When storing data according to the above method, not only need to search for free storage space a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F3/06
CPCG06F3/0608G06F3/0665G06F3/0676G06F3/06
Inventor 尹志新
Owner HANGZHOU HIKVISION DIGITAL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products