Small file storage method, query method and device
A technology of small files and files, applied in the computer field, can solve the problems of complex, long time to process small files, slow comparison speed, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0107] see figure 2 , the present embodiment provides a small file storage method, the method includes the following steps:
[0108] Step 100. Acquire small files to be stored; wherein, the small files include files whose file size is smaller than a preset threshold.
[0109] In this embodiment, the small files generally include pictures, documents, music and other files that the user can obtain through the network. When the file system obtains the file to be stored, it will first determine whether the file to be stored is a small file through a set threshold.
[0110] The size of pictures, documents, music and other files generally ranges from several kilobytes (KB) to several megabytes (MB), so when setting the threshold for the size of small files stored in the file system, the threshold should not be set to is too large and can be set to any value between 7 and 10MB. Of course, the threshold can also be set to other values, which will not be repeated here.
[0111] Th...
Embodiment 2
[0142] see image 3 The specific flowchart of the shown small file storage method, the method includes the following steps:
[0143] Step 200. Acquire small files to be stored; wherein, the small files include files whose file size is smaller than a preset threshold.
[0144] When a user sees a small file such as a picture, document, or music he likes on the network, he can send an instruction to obtain the small file to the server or the operating system of the computer through the server where the file system is located or the input device of the computer. A small file acquisition command is issued to obtain the small file to be stored in the file system from the network.
[0145] The input device of the server or the computer may be any device such as a keyboard or a mouse that enables the user to issue an instruction for obtaining a small file to the operating system, and details will not be repeated here.
[0146] For example: when a user wants to store a song whose name ...
Embodiment 3
[0229] Corresponding to the above small file storage method, this embodiment also provides a small file query method, which is used in a file system, see Figure 8 , the method includes the following steps:
[0230] Step 300: Receive a small file query request from a user, where the small file query request includes the file name of the small file that the user wants to query; wherein, the small file includes a file whose file size is smaller than a preset threshold.
[0231] The small file query request sent by the user carries the attribute information of the small file. The attribute information of the small file includes but not limited to: the file name, data length and creation time of the small file. Therefore, after the file system receives the small file query request, it can obtain the file name of the small file from the attribute information of the small file.
[0232] Step 301. Calculate the hash value of the file name of the small file according to the received ...
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