File storage method, device and equipment and storage medium
A file storage and storage block technology, applied in the file system, file access structure, digital data information retrieval, etc., can solve the problems of wasting time and affecting the data storage rate.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] figure 1 It is a flow chart of a file storage method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of storing large files. The method can be executed by a file storage device, which can be composed of hardware and / or software , and can generally be integrated into a device with a file storage function, which can be an electronic device such as a server, a mobile terminal, or a server cluster. Such as figure 1 As shown, the method specifically includes the following steps:
[0041] Step 110, create a plurality of storage blocks with a set size according to the size of the file to be stored, and generate an index file of the file to be stored according to information of the multiple storage blocks.
[0042] Wherein, the set size may be 64MB, assuming that the size of the file to be stored is 100G, 1600 storage blocks need to be created. The information of the storage block may include the number of the storage block, the c...
Embodiment 2
[0090] figure 2 It is a schematic structural diagram of a file storage device provided by Embodiment 2 of the present invention. Such as figure 2 As shown, the device includes: a storage block creation module 210 , a target block determination module 220 , a data storage module 230 and a storage completion determination module 240 .
[0091] The storage block creation module 210 is used to create a plurality of storage blocks of a set size according to the size of the file to be stored, and generate an index file of the file to be stored according to information of a plurality of storage blocks;
[0092] The target block determination module 220 is configured to scan the storage block information in the index file according to the storage request of at least one client, and determine at least one target block that meets the storage conditions;
[0093] A data storage module 230, configured to store data of a set size in the file to be stored in the target block respectivel...
Embodiment 3
[0114] image 3 It is a schematic structural diagram of a computer device provided by Embodiment 3 of the present invention. image 3 A block diagram of a computer device 312 suitable for implementing embodiments of the invention is shown. image 3 The computer device 312 shown is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention. Device 312 is typically a computing device that performs file storage functions.
[0115] Such as image 3 As shown, computer device 312 takes the form of a general-purpose computing device. Components of computer device 312 may include, but are not limited to: one or more processors 316, storage 328, bus 318 connecting various system components including storage 328 and processor 316.
[0116] Bus 318 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, 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