File storage method and device
A file storage and file technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as fragmentation or overflow, unreasonable file storage methods, low file query efficiency, etc., to improve query efficiency, storage reasonable effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0073] refer to figure 1 , shows a flow chart of steps of a file storage method according to Embodiment 1 of the present invention.
[0074] The method for file storage of this embodiment may include the following steps:
[0075] Step 101, according to the size of the received file uploaded by the client, store the content data of the file in at least one file storage block.
[0076] In the embodiment of the present invention, the client can upload files to the file system, and can also download files from the file system. Wherein, the file system may be a file system under an operating system such as Linux.
[0077] When the file system receives the file uploaded by the client, it can first obtain the size of the file, and then determine which file storage block or blocks the content data of the file should be stored in according to the size of the file, that is, according to the received client The size of the file uploaded by the end, and the content data of the file is ...
Embodiment 2
[0088] refer to figure 2 , shows a flow chart of steps of a file storage method according to Embodiment 2 of the present invention.
[0089] The method for file storage of this embodiment may include the following steps:
[0090] Step 201, receiving a file uploaded by a client.
[0091] As mentioned above, the client can upload files to the file system, and can also download files from the file system.
[0092] Step 202, according to the size of the file, store the content data of the file in at least one file storage block.
[0093] According to the size of the received file, the content data of the file may be stored in at least one file storage block, where the file storage block refers to the storage space of the file system. In this embodiment, a standard size can be preset, and according to the standard size, it can be determined that the content data of the file is stored in one file storage block or multiple file storage blocks. For example, the standard size can b...
Embodiment 3
[0166] refer to image 3 , shows a structural block diagram of a file storage device according to Embodiment 3 of the present invention.
[0167] The file storage device of the present embodiment may include the following modules:
[0168] A content storage module 301, configured to store the content data of the file in at least one file storage block according to the size of the received file uploaded by the client;
[0169] An information obtaining module 302, configured to obtain information of a file storage block storing the content data;
[0170] A metadata generation module 303, configured to generate metadata corresponding to the content data according to the information of the file storage block;
[0171] The metadata storage module 304 is configured to store the metadata of the file in a preset storage space.
[0172] In the embodiment of the present invention, the content data of the file is stored in at least one file storage block according to the size of the f...
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