WO2020169057A1 - 文件存储系统及方法 - Google Patents
文件存储系统及方法 Download PDFInfo
- Publication number
- WO2020169057A1 WO2020169057A1 PCT/CN2020/075934 CN2020075934W WO2020169057A1 WO 2020169057 A1 WO2020169057 A1 WO 2020169057A1 CN 2020075934 W CN2020075934 W CN 2020075934W WO 2020169057 A1 WO2020169057 A1 WO 2020169057A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- format
- storage
- host
- storage device
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present invention relates to the technical field of file storage, in particular to a file storage system and method.
- terminal applications such as mobile phones, computers, PAD (tablet computers), and digital cameras are becoming more and more popular. Users will use the electronic pictures, knowledge documents (such as word, pdf documents), Files such as audio and video are uploaded through the network platform for other friends or users to share (ie browse or download).
- knowledge documents such as word, pdf documents
- Files such as audio and video are uploaded through the network platform for other friends or users to share (ie browse or download).
- the file format conversion in the host of the server takes up the host resources of the server.
- the converted files of various formats or sizes need to be transferred from the host to the storage through the bus, which will greatly consume the space between the host and the storage. Bus energy.
- the purpose of the present invention is to provide a method that can realize file format conversion and storage in a storage device, avoid file format conversion occupying host resources, avoid the need to transfer files in the target format after conversion from the host to the storage device, and save A bus energy file storage system and method between a host and a storage device.
- the present invention provides a file storage system, including a host and a storage device connected to the host, the host receives a file sent by an upload terminal and transmits the file to the storage device;
- the storage device includes a format conversion module and a storage module; the format conversion module converts the initial format of the file into a target format, and the storage module stores the file in the target format.
- the present invention also provides a file storage method, including the following steps: the host receives the file sent by the upload terminal and transmits the file to the storage device; the format conversion module in the storage device converts the initial format of the file into Target format; the storage module in the storage device stores files in the target format.
- the file storage system and method provided by the present invention realize the file format conversion and storage in the storage device.
- the file format conversion does not occupy the resources of the host and avoids the target format after conversion.
- the files need to be transferred from the host to the storage device, saving the bus energy between the host and the storage device.
- Figure 1 is a schematic block diagram of a file storage system provided by a preferred embodiment of the present invention.
- Fig. 2 is a flowchart of a file storage method provided by a preferred embodiment of the present invention.
- FIG. 1 is a schematic block diagram of a file storage system 100 according to a preferred embodiment of the present invention.
- the file storage system 100 provided by the preferred embodiment of the present invention includes a host 10 and a storage device 20 connected to the host 10.
- the host 10 is used to receive the file sent by the upload terminal 30 and transfer the file to the storage device 20;
- the storage device 20 includes a format conversion module 21 and a storage module 22;
- the format conversion module 21 is used to convert the initial format of the file into a target Format,
- the storage module 22 is used to store the file in the target format.
- the host 10 can be connected to the Internet and the host 10 is a computer capable of communicating information with multiple upload terminals 30 through the Internet.
- the upload terminal 30 can be one of mobile terminals such as a mobile phone, a computer, a pad (tablet computer), and a digital camera. kind or more.
- the files sent by the upload terminal 30 are one or more combinations of picture files, document files, audio files, and video files.
- the format conversion module 21 is a picture format converter, a document format converter, an audio format converter, and One or more combinations of video format converters.
- the format conversion module 21 can convert the initial format of the file into a target format.
- the target format is a file format commonly used by various types of terminals or a file format corresponding to a specific terminal set by a user.
- the target format includes jpg, jpeg, png, GIF, BMP, WEBP, HEIF, etc.
- the target format includes doc, pdf, etc.
- the target format includes 3gp, mp4, m4a , Ts, 3gp, flac, mp3, wav and other formats
- target formats include 3gp, mp4, ts, webm, mkv, m4v, mov and other formats.
- the initial format can be one of the target formats or different from the target format.
- the initial format is jpg, and the target format needs to be converted to jpeg when storing; or the initial format is tif, and the target format needs to be converted when storing.
- the initial format of audio files and video files can be one of the target formats or different from the target format.
- the storage device 20 includes a format conversion module 21 and a storage module 22.
- the format conversion module 21 converts the initial format of the file into a target format
- the file in the target format is stored in the local storage module 22 of the storage device 20, that is, the format conversion and storage of the file in the storage device 20 are realized.
- the file format conversion does not occupy the resources of the host 10 and avoids conversion.
- the file in the latter target format needs to be transferred from the host 10 to the storage device 20, which saves the bus energy between the host 10 and the storage device 20.
- the storage device 20 is a solid state drive, that is, the solid state drive includes a format conversion module 21 and a storage module 22, and the solid state drive can realize file format conversion and storage.
- the storage module 22 includes a storage controller (ie, Flash controller) 23 and a plurality of storage units (ie, Flash) 24 connected to the storage controller 23, and the storage controller 23 is used to control the reading and writing of the multiple storage units 24.
- the storage controller 23 has a control chip to realize functions such as reading and writing, wear leveling, and life monitoring of the storage unit.
- the storage device 20 also includes a processor 25, which is in communication connection with the format conversion module 21 and the storage controller 23.
- the processor 25 is used to read the instruction signal received by the storage device 20; specifically, the processor 25 reads the storage device After 20 receives the instruction signal, it generates a corresponding operation control signal and sends it to the format conversion module 21 and the storage controller 23, thereby controlling the format conversion module 21 and the storage controller 23 to act according to the requirements of the instruction signal, and the processor 25 also Used to judge whether the initial format of the file is consistent with the target format.
- the instruction signal may be an upload instruction (that is, an instruction signal corresponding to the upload terminal 30 requesting an upload file) or an access instruction (that is, an instruction signal corresponding to the access terminal 40 requesting access to the uploaded file, and the operation control signal may be a storage instruction, a conversion Order or delete order.
- the upload terminal 30 sends an upload instruction to the host 10, the host 10 receives the upload instruction and transmits the upload instruction to the storage device 20, and the processor 25 reads the upload instruction and determines whether the initial format of the uploaded file is consistent with the target format. If the initial format of the uploaded file is consistent with the target format, the processor 25 sends a storage instruction to the storage module 22, and the storage controller 23 in the storage module 22 receives the storage instruction, and stores the uploaded file in the storage unit 24; If the initial format of the file is inconsistent with the target format, the processor 25 sends a conversion instruction to the format conversion module 21.
- the format conversion module 21 receives the conversion instruction and converts the initial format of the uploaded file into the target format, and then sends a storage instruction to the storage module 22
- the storage controller 23 in the storage module 22 receives the storage instruction, and stores the converted target format file in the storage unit 24.
- the upload instruction may include time limit setting information.
- the upload terminal 30 After the upload terminal 30 uploads the file (that is, the uploaded file is stored in the storage unit 24), the upload terminal 30 responds to the user's time limit setting operation to set the access time limit for the uploaded file. .
- the processor 25 reads the upload command and analyzes the time limit setting information corresponding to the upload command.
- the processor 25 sends a delete command to the storage controller 23, and the storage control
- the device 23 receives the delete instruction to delete the file in the storage unit 24.
- the time limit setting information can be visible for three days, six months, or one year.
- the uploaded file is visible within the access period.
- the storage time of the uploaded file reaches or exceeds After the access period, the uploaded file has been deleted and is invisible, saving the storage space of the storage unit 24.
- the upload instruction may also include permission setting information.
- the upload terminal 30 requests to upload a file
- the upload terminal 30 responds to the user's permission setting operation to set access permissions for the uploaded file.
- the permission setting information may be only for yourself Visible, fully visible, or partially visible.
- the processor 25 reads the upload instruction and analyzes the authority setting information corresponding to the upload instruction.
- the processor 25 directly sends the storage instruction to the storage module 22, and the storage controller 23 in the storage module 22 receives Store the instruction, and store the uploaded file in the storage unit 24; if the permission setting information is all visible, the processor 25 sends a conversion instruction to the format conversion module 21, and the format conversion module 21 receives the conversion instruction and uploads the initial format of the file Convert to the target format, and then send the storage instruction to the storage module 22.
- the storage controller 23 in the storage module 22 receives the storage instruction and stores the converted file in the target format in the storage unit 24.
- the target format is The file format commonly used by various current terminals; if the permission setting information is partially visible, the processor 25 sends a conversion instruction to the format conversion module 21, and the format conversion module 21 receives the conversion instruction and converts the initial format of the uploaded file into the target format. Then send the storage instruction to the storage module 22.
- the storage controller 23 in the storage module 22 receives the storage instruction and stores the converted target format file in the storage unit 24.
- the target format is the part set by the user visible
- the file format corresponding to the type of the terminal can be understood that the type of the partially visible terminal set by the user can be determined according to the historical usage data of the uploaded terminal 30.
- the storage device 20 also includes a bus interface 26, which is communicatively connected with the processor 25 and the format conversion module 21; the bus interface 26 is used to connect to the host 10 and to transmit command signals.
- the upload terminal 30 sends the upload instruction corresponding to the uploaded file to the host 10, the host 10 receives the upload instruction, and the host 10 transmits the upload instruction to the storage device 20 through the bus interface 26; or, when the accessing user needs to access the file storage system 100, the access terminal sends an access instruction to the host 10, the host 10 receives the access instruction, and the host 10 transmits the access instruction to the storage device 20 through the bus interface 26, and the storage device 20 transfers the access instruction from the storage module 22 according to the access instruction.
- the target format file matching the type of the access terminal is output, and the target format file is sent to the host 10 through the bus interface 26. In this way, the bus interface 26 realizes the signal transmission of the upload command and the access command between the storage device 20 and the host 10.
- the host 10 receives the access instruction request sent by the access terminal 40 and sends the access instruction to the storage device 20
- the storage device 20 retrieves the target format file matching the type of the access terminal 40 from the storage module 22 according to the access instruction, and sends the target format file to the host 10; the host 10 sends the target format file to the access terminal 40.
- the file storage system 100 realizes the file sharing between the upload terminal 30 and the access terminal 40, and the file storage system 100 performs file format conversion and storage in the storage device 20, which can directly feedback and access The target format file matched by the terminal.
- the access terminal 40 may be one or more of mobile terminals such as a mobile phone, a computer, a pad (tablet computer), and a digital camera.
- the format conversion module 21 converts the format of the file requested to be accessed by the access terminal 40 into a file in the target format that matches the type of the access terminal 40 , And send the file in the target format to the host 10.
- the storage module 22 does not store a file in the target format that matches the type of the access terminal 40, that is, the file format that matches the access terminal 40 is a non-universal format file, and the storage device 20 performs format conversion on the file No storage is performed, that is, no non-universal format files are stored in the storage module 22, so as to reduce the space occupation of the storage module 22; in other embodiments, the converted non-universal format files can also be stored in the storage module.
- the file in the target format is directly called according to the access instruction requested by the subsequent access user, thereby reducing the resource occupation of the processor 25 of the storage device 20.
- the accessing user browses files on the access terminal 40
- the host 10 only feeds back the abbreviated files that take up less space, namely The host 10 sends the abbreviated files corresponding to the target format file to the access terminal 40, and the access terminal 40 displays the abbreviated files in sequence; and when the accessing user is interested in a certain file and clicks on the file of interest, the host feedbacks that it takes up more space A larger but clearer file, that is, when the access terminal 40 receives a click instruction from the accessing user, the access terminal 40 transmits the click instruction to the host 10, and the host 10 sends the target format file corresponding to the abbreviated file according to the click instruction to Access terminal 40, access terminal 40 displays the target format file. In this way, the resource occupation of the access terminal 40 can be greatly saved.
- the format conversion module 21 converts the initial format of the file into the target format, and stores the file in the target format in the local storage module 22 of the storage device 20 , Realizes the file format conversion and storage in the storage device 20, the file format conversion does not occupy the resources of the host 10, and avoids the need to transfer the converted target format files from the host 10 to the storage device 20, saving The bus energy between the host 10 and the storage device 20.
- Figure 2 is a flowchart of a file storage method provided by a preferred embodiment of the present invention; it should be noted that the method of the present invention is not limited to the sequence of the following steps, and in other embodiments, the present invention The inventive method may include only a part of the following steps, or one of the steps may be split into several steps, or multiple steps may be combined into one step.
- the file storage method provided by the preferred embodiment of the present invention includes the following steps:
- Step S10 The host receives the file sent by the upload terminal, and transmits the file to the storage device.
- Step S20 The format conversion module in the storage device converts the initial format of the file into the target format.
- Step S30 The storage module in the storage device stores the file in the target format.
- the file storage method provided by the preferred embodiment of the present invention realizes file format conversion and storage in the storage device 20.
- the file format conversion does not occupy the resources of the host computer 10 and avoids the need for files in the target format after conversion.
- the transmission from the host 10 to the storage device 20 saves bus energy between the host 10 and the storage device 20.
- step S20 the processor in the storage device determines whether the initial format of the uploaded file is consistent with the target format, and if the initial format of the uploaded file is consistent with the target format , The processor controls the storage module to store the uploaded file; if the initial format of the uploaded file is inconsistent with the target format, the processor controls the format conversion module to convert the initial format of the uploaded file to the target format, and then the converted target format The files are stored in the storage module.
- step S20 further includes the following steps:
- the processor reads the upload instruction received by the storage device and analyzes the deadline setting information corresponding to the upload instruction;
- the processor sends a delete instruction to the storage controller in the storage module;
- the storage controller receives the delete instruction to delete the files in the storage unit in the storage module.
- the file storage system 100 when the accessing user needs to access the file in the file storage system 100, the file storage system 100 sends the file to the access terminal to realize file sharing, that is, after step S30, it includes the following steps:
- Step S40 the host receives the access instruction sent by the access terminal and sends the access instruction to the storage device;
- Step S50 the storage device retrieves the target format file matching the access terminal type from the storage module according to the access instruction, and sends the target format file to the host;
- Step S60 The host sends the target format file to the access terminal.
- step S50 when the storage module does not store a file in a target format that matches the type of the access terminal, the format conversion module converts the format of the file that the access terminal requests to access into a target format that matches the type of the access terminal And send the target format file to the host.
- the storage device if the file in the target format that matches the type of the access terminal is not stored in the storage module, that is, the file format that matches the access terminal is a non-universal format file, the storage device does not store the file after format conversion.
- the storage module does not store non-universal format files to reduce the space occupation of the storage module; in other implementations, the converted non-universal format files can also be stored in the storage module for subsequent access
- the user's request access instruction directly calls out the file in the target format, reducing the resource occupation of the processor of the storage device.
- the file storage method provided by the present invention specifically includes the following sub-steps in step S60:
- the host sends the abbreviated file corresponding to the target format file to the access terminal;
- the access terminal When the access terminal receives the click instruction from the access user, the access terminal transmits the click instruction to the host;
- the host sends the target format file corresponding to the abbreviated file to the access terminal according to the click instruction;
- the access terminal displays the target format file.
- the first step is to browse the files in order.
- the host only feeds back the abbreviated files that occupy a small space; and when the accessing user views a file
- the host will feedback a file that occupies a larger space but is clearer. In this way, the resource occupation of the access terminal can be greatly saved.
- the file storage system 100 and method provided by the present invention realize file format conversion and storage in the storage device 20, the file format conversion does not occupy the resources of the host computer 10, and it avoids the need for files in the target format after conversion.
- the host 10 transmits to the storage device 20, which saves bus energy between the host 10 and the storage device 20.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种文件存储系统,包括主机及与主机连接的存储装置,所述主机接收上传终端发送的文件,并将所述文件传送至所述存储装置;所述存储装置包括格式转换模块及存储模块;所述格式转换模块将所述文件的初始格式转换为目标格式所述存储模块存储所述目标格式的文件。本发明还提供一种文件存储方法。本发明提供的文件存储系统及方法,实现了在存储装置内进行文件的格式转换及存储,文件的格式转换未占用主机的资源,并且,避免了转换后的目标格式的文件需要从主机传输到存储装置,节省了主机与存储装置间的总线能量
Description
本申请要求于2019年2月20日提交中国专利局、申请号为201910124842.0、名称为“文件存储系统及方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及文件存储技术领域,尤其涉及一种文件存储系统及方法。
随着互联网技术的不断发展,如手机、电脑、PAD(平板电脑)、数码相机等终端的应用越来越普及,用户会将其终端内的电子图片、知识文档(例如word、pdf文档)、音频、视频等文件通过网络平台进行上传,以供其它好友或用户共享(即浏览或下载)。
现有技术中,用户将电子图片、知识文档、音频、视频等文件通过上传终端上传至网络平台(例如微信朋友圈、QQ空间、小木虫论坛、喜马拉雅、西瓜视频、抖音等网络平台)时,通过对应的网络平台的服务器的主机进行多种格式的转换,再存至服务器的存储器中,当访问用户有浏览或下载需求时,服务器主机接收访问用户的访问终端的浏览或下载的请求指令,从存储器中调出用户所需格式的文件,再发送给访问用户的访问终端。
然而,在服务器的主机内进行文件格式的转换,占用服务器的主机资源,另外,转换后的多种格式或大小的文件还需通过总线从主机传输到存储器,将大大消耗主机与存储器之间的总线能量。
鉴于此,实有必要提供一种文件存储系统及方法以克服上述缺陷。
发明内容
本发明的目的是提供一种能够实现在存储装置内进行文件的格式转换及存储、避免文件的格式转换占用主机的资源、避免转换后的目标格式的 文件需要从主机传输到存储装置、节省了主机与存储装置间的总线能量文件存储系统及方法。
为了实现上述目的,本发明提供一种文件存储系统,包括主机及与所述主机连接的存储装置,所述主机接收上传终端发送的文件,并将所述文件传送至所述存储装置;所述存储装置包括格式转换模块及存储模块;所述格式转换模块将所述文件的初始格式转换为目标格式,所述存储模块存储所述目标格式的文件。
本发明还提供一种文件存储方法,包括如下步骤:主机接收上传终端发送的文件,并将所述文件传送至存储装置;所述存储装置内的格式转换模块将所述文件的初始格式转换为目标格式;所述存储装置内的存储模块存储所述目标格式的文件。
相比于现有技术,本发明提供的文件存储系统及方法,实现了在存储装置内进行文件的格式转换及存储,文件的格式转换未占用主机的资源,并且,避免了转换后的目标格式的文件需要从主机传输到存储装置,节省了主机与存储装置间的总线能量。
为使发明的上述目的、特征和优点能更明显易懂,下文特举本发明较佳实施例,并配合所附附图,作详细说明如下。
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1为本发明较佳实施例提供的文件存储系统的原理框图;
图2为本发明较佳实施例提供的文件存储方法的流程图。
下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,图1为本发明较佳实施例提供的文件存储系统100的原理框图。本发明较佳实施例提供的文件存储系统100包括主机10及与主机10连接的存储装置20。
主机10用于接收上传终端30发送的文件,并将文件传送至存储装置20;存储装置20包括格式转换模块21及存储模块22;格式转换模块21用于将所述文件的初始格式转换为目标格式,存储模块22用于存储所述目标格式的文件。
可以理解,主机10能够连接互联网且主机10为通过互联网能够与多个上传终端30进行信息传递的计算机,上传终端30可以为手机、电脑、PAD(平板电脑)、数码相机等移动终端中的一种或多种。上传终端30发送的文件为图片文件、文档文件、音频文件及视频文件中的一种或多种组合,对应的,格式转换模块21为图片格式转换器、文档格式转换器、音频格式转换器及视频格式转换器中的一种或多种组合。
格式转换模块21能够将所述文件的初始格式转换为目标格式,具体的,目标格式即为当前各类终端通用的文件格式或用户设置的特定的终端所对应的文件格式。例如,对于图片文件,目标格式包括jpg、jpeg、png、GIF、BMP、WEBP、HEIF等格式;对于文档文件,目标格式包括doc、pdf等格式;对于音频文件,目标格式包括3gp、mp4、m4a、ts、3gp、flac、mp3、wav等格式;对于视频文件,目标格式包括3gp、mp4、ts、webm、mkv、m4v、mov等格式。初始格式可以是目标格式中的一种或者不同于目标格式,例如,对于图片文件,初始格式为jpg,存储时目标格式则需要转为jpeg;或者初始格式为tif,存储时目标格式则需要转为jpeg。对于音频文件与视频文件也类似,音频文件与视频文件的初始格式可以是目标格 式中的一种或者不同于目标格式。
本发明较佳实施例提供的文件存储系统100,存储装置20包括格式转换模块21及存储模块22,在存储装置20内,格式转换模块21将所述文件的初始格式转换为目标格式,并将所述目标格式的文件存储至存储装置20本地的存储模块22内,即实现了在存储装置20内进行文件的格式转换及存储,文件的格式转换未占用主机10的资源,并且,避免了转换后的目标格式的文件需要从主机10传输到存储装置20,节省了主机10与存储装置20间的总线能量。本实施方式中,存储装置20为固态硬盘,即固态硬盘内包括格式转换模块21及存储模块22,固态硬盘能够实现文件的格式转换及存储。
存储模块22包括存储控制器(即Flash控制器)23及与存储控制器23相连的多个存储单元(即Flash)24,存储控制器23用于控制多个存储单元24的读写。具体的,存储控制器23中有控制芯片,以实现控制存储单元的读写、磨损均衡、寿命监控等功能。
存储装置20还包括处理器25,处理器25与格式转换模块21及存储控制器23通信连接,处理器25用于读取存储装置20接收的指令信号;具体的,处理器25读取存储装置20接收的指令信号后,产生相应的操作控制信号,并发送至格式转换模块21及存储控制器23,从而控制格式转换模块21及存储控制器23按照指令信号的要求进行动作,处理器25还用于判断文件的初始格式与目标格式是否一致。所述指令信号可以为上传指令(即上传终端30请求上传文件对应的指令信号)或访问指令(即访问终端40请求访问上传的文件对应的指令信号,所述操作控制信号可以为存储指令、转换指令或删除指令。
例如,上传终端30将上传指令发送至主机10,主机10接收上传指令并将上传指令传送至存储装置20,处理器25读取上传指令并判断上传的文件的初始格式与目标格式是否一致,若上传的文件的初始格式与目标格式一致,则处理器25发送存储指令至存储模块22,存储模块22内的存储控制器23接收存储指令,并将上传的文件存储至存储单元24内;若上传的文件的初始格式与目标格式不一致,则处理器25发送转换指令至格式转 换模块21,格式转换模块21接收转换指令并将上传文件的初始格式转换为目标格式,再发送存储指令至存储模块22,存储模块22内的存储控制器23接收存储指令,并将转换后的目标格式的文件存储至存储单元24内。
进一步地,所述上传指令可以包括期限设置信息,当上传终端30将文件上传(即上传的文件存储在存储单元24内)后,上传终端30响应用户的期限设置操作为上传的文件设置访问期限。处理器25读取上传指令并分析该上传指令对应的期限设置信息,当存储单元24内的文件的存储时间达到用户设置的访问期限时,处理器25发送删除指令至存储控制器23,存储控制器23接收删除指令将存储单元24内的文件删除。期限设置信息可以为三天可见、半年可见或一年可见,即当上传文件的用户为上传的文件设置访问期限后,上传的文件在访问期限内可见,当上传的文件的存储时间达到或超出访问期限后,上传的文件已被删除且不可见,节省了存储单元24的存储空间。
进一步地,所述上传指令还可以包括权限设置信息,当上传终端30请求上传文件时,上传终端30响应用户的权限设置操作为上传的文件设置访问权限,具体的,权限设置信息可以为仅自己可见、全部可见或部分可见。处理器25读取上传指令并分析该上传指令对应的权限设置信息,若权限设置信息为仅自己可见,则处理器25直接发送存储指令至存储模块22,存储模块22内的存储控制器23接收存储指令,并将上传的文件存储至存储单元24内;若权限设置信息为全部可见,则处理器25发送转换指令至格式转换模块21,格式转换模块21接收转换指令并将上传文件的初始格式转换为目标格式,再发送存储指令至存储模块22,存储模块22内的存储控制器23接收存储指令,并将转换后的目标格式的文件存储至存储单元24内,此时,目标格式即为当前各类终端较为通用的文件格式;若权限设置信息为部分可见,则处理器25发送转换指令至格式转换模块21,格式转换模块21接收转换指令并将上传文件的初始格式转换为目标格式,再发送存储指令至存储模块22,存储模块22内的存储控制器23接收存储指令,并将转换后的目标格式的文件存储至存储单元24内,此时,目标格式即为用户设置的部分可见的终端的类型所对应的文件格式,可以理解,用户设 置的部分可见的终端的类型可以根据上传终端30的历史使用数据进行确定。
存储装置20还包括总线接口26,总线接口26与处理器25及格式转换模块21通信连接;总线接口26用于连接主机10,并进行指令信号传送。例如,上传终端30将上传文件所对应的上传指令发送至主机10,主机10接收上传指令,且主机10将上传指令通过总线接口26传送至存储装置20;或者,当访问用户需要访问文件存储系统100内的文件时,访问终端将访问指令发送至主机10,主机10接收访问指令,且主机10将访问指令通过总线接口26传送至存储装置20,存储装置20根据访问指令从存储模块22中调出与访问终端类型匹配的目标格式的文件,并将目标格式文件通过总线接口26发送至主机10。如此,总线接口26实现了存储装置20及主机10之间的上传指令及访问指令的信号传送。
本发明较佳实施例提供的文件存储系统100,具体的,当访问用户需要访问文件存储系统100内的文件时,主机10接收访问终端40发送的访问指令求并将访问指令发送至存储装置20;存储装置20根据访问指令从存储模块22中调出与访问终端40类型匹配的目标格式的文件,并将目标格式文件发送至主机10;主机10将目标格式文件发送至访问终端40。如此,便实现了通过文件存储系统100,实现了上传终端30与访问终端40之间的文件共享,并且,文件存储系统100在存储装置20内进行文件的格式转换及存储,能够直接反馈与访问终端匹配的目标格式文件。访问终端40可以为手机、电脑、PAD(平板电脑)、数码相机等移动终端中的一种或多种。
具体的,当存储模块22中未存储与访问终端40类型匹配的目标格式的文件时,格式转换模块21将访问终端40请求访问的文件的格式转换为与访问终端40类型匹配的目标格式的文件,并将目标格式的文件发送给所述主机10。本实施方式中,若存储模块22中未存储与访问终端40类型匹配的目标格式的文件,即与访问终端40所匹配的文件格式为非通用格式文件,存储装置20对该文件进行格式转换后而不进行存储,即存储模块22内不存储非通用格式的文件,以减少对存储模块22的空间的占用;在其他 实施方式中,也可以将转换后的非通用格式的文件存储在存储模块22中,以根据后续访问用户的请求访问指令直接调出目标格式的文件,减少对存储装置20的处理器25的资源占用。
本发明较佳实施例提供的文件存储系统100,当访问用户在访问终端40上浏览文件时,首先是顺序翻看文件,此时,主机10就只反馈占用空间较小的缩略文件,即主机10将目标格式文件对应的缩略文件发送至访问终端40,访问终端40顺序显示缩略文件;而当访问用户对某个文件感兴趣并点击感兴趣的文件时,则主机反馈占用空间较大但更为清晰的文件,即当访问终端40接收到访问用户的点击指令时,访问终端40将点击指令传送至主机10,主机10根据点击指令将缩略文件对应的目标格式文件并发送至访问终端40,访问终端40显示目标格式文件。如此,可大大的节省访问终端40的资源占用。
本发明较佳实施例提供的文件存储系统100,在存储装置20内,格式转换模块21将文件的初始格式转换为目标格式,并将目标格式的文件存储至存储装置20本地的存储模块22内,实现了在存储装置20内进行文件的格式转换及存储,文件的格式转换未占用主机10的资源,并且,避免了转换后的目标格式的文件需要从主机10传输到存储装置20,节省了主机10与存储装置20间的总线能量。
请参阅图2,图2为本发明较佳实施例提供的文件存储方法的流程图;需要说明的是,本发明的方法并不受限于下述步骤的顺序,且其他实施例中,本发明的方法可以只包括以下步骤的其中一部分,或者其中一个步骤可以被拆分为几个步骤,或者多个步骤也可以合并为一个步骤。本发明较佳实施例提供的文件存储方法包括如下步骤:
步骤S10:主机接收上传终端发送的文件,并将文件传送至存储装置。
步骤S20:存储装置内的格式转换模块将文件的初始格式转换为目标格式。
步骤S30:存储装置内的存储模块存储目标格式的文件。
本发明较佳实施例提供的文件存储方法,实现了在存储装置20内进行文件的格式转换及存储,文件的格式转换未占用主机10的资源,并且,避 免了转换后的目标格式的文件需要从主机10传输到存储装置20,节省了主机10与存储装置20间的总线能量。
本实施例中的文件存储方法的具体描述可参考上述实施例中对文件存储系统100的描述,在此不再赘述。
本发明较佳实施例提供的文件存储方法,具体的,在步骤S20中,存储装置内的处理器判断上传的文件的初始格式与目标格式是否一致,若上传的文件的初始格式与目标格式一致,则处理器控制存储模块存储上传的文件;若上传的文件的初始格式与目标格式不一致,则处理器控制格式转换模块将上传文件的初始格式转换为目标格式后,再将转换后的目标格式的文件存储至存储模块内。
在其他实施方式中,为了节省存储模块的存储空间,步骤S20还包括如下步骤:
处理器读取存储装置接收的上传指令并分析上传指令对应的期限设置信息;
当存储模块内的文件的存储时间达到用户设置的访问期限时,处理器发送删除指令至存储模块内的存储控制器;
存储控制器接收删除指令将存储模块内的存储单元中的文件删除。
本发明提供的文件存储方法,当访问用户需要访问文件存储系统100内的文件时,文件存储系统100将所述文件发送至访问终端以实现文件的共享,即在步骤S30之后,包括如下步骤:
步骤S40:主机接收访问终端发送的访问指令并将访问指令发送至存储装置;
步骤S50:存储装置根据访问指令从存储模块中调出与访问终端类型匹配的目标格式的文件,并将目标格式文件发送至主机;
步骤S60:主机将目标格式文件发送至所述访问终端。
具体的,在步骤S50中,当存储模块中未存储与访问终端类型匹配的目标格式的文件时,格式转换模块将所述访问终端请求访问的文件的格式转换为与访问终端类型匹配的目标格式的文件,并将目标格式的文件发送给所述主机。本实施方式中,若存储模块中未存储与访问终端类型匹配的 目标格式的文件,即与访问终端所匹配的文件格式为非通用格式文件,存储装置对该文件进行格式转换后而不进行存储,即存储模块内不存储非通用格式的文件,以减少对存储模块的空间的占用;在其他实施方式中,也可以将转换后的非通用格式的文件存储在存储模块中,以根据后续访问用户的请求访问指令直接调出目标格式的文件,减少对存储装置的处理器的资源占用。
本发明提供的文件存储方法,具体的,在步骤S60中,还包括如下子步骤:
主机将目标格式文件对应的缩略文件发送至访问终端;
访问终端顺序显示缩略文件;
当访问终端接收到访问用户的点击指令时,访问终端将点击指令传送至主机;
主机根据点击指令将缩略文件对应的目标格式文件并发送至访问终端;
访问终端显示目标格式文件。
上述的S60的子步骤中,当访问用户在访问终端上浏览文件时,首先是顺序翻看文件,此时,主机就只反馈占用空间较小的缩略文件;而当访问用户对某个文件感兴趣并点击感兴趣的文件时,则主机反馈占用空间较大但更为清晰的文件,如此,可大大的节省访问终端的资源占用。
本发明提供的文件存储系统100及方法,实现了在存储装置20内进行文件的格式转换及存储,文件的格式转换未占用主机10的资源,并且,避免了转换后的目标格式的文件需要从主机10传输到存储装置20,节省了主机10与存储装置20间的总线能量。
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (10)
- 一种文件存储系统,其特征在于,包括主机及与所述主机连接的存储装置,所述主机接收上传终端发送的文件,并将所述文件传送至所述存储装置;所述存储装置包括格式转换模块及存储模块;所述格式转换模块将所述文件的初始格式转换为目标格式,所述存储模块存储所述目标格式的文件。
- 如权利要求1所述的文件存储系统,其特征在于,所述存储装置为固态硬盘;所述存储模块包括存储控制器及与所述存储控制器相连的多个存储单元,所述存储控制器控制所述多个存储单元的读写。
- 如权利要求2所述的文件存储系统,其特征在于,所述存储装置还包括处理器,所述处理器与所述格式转换模块及所述存储控制器通信连接,所述处理器读取并分析所述存储装置接收的指令信号;所述处理器还判断所述文件的初始格式与目标格式是否一致,当所述文件的初始格式与目标格式不一致时,所述处理器控制所述格式转换模块将所述文件的初始格式转换为目标格式。
- 如权利要求3所述的文件存储系统,其特征在于,所述存储装置还包括总线接口,所述总线接口与所述处理器及所述格式转换模块通信连接;所述总线接口连接所述主机,并进行指令信号传送。
- 一种文件存储方法,其特征在于,包括如下步骤:主机接收上传终端发送的文件,并将所述文件传送至存储装置;所述存储装置内的格式转换模块将所述文件的初始格式转换为目标格式;所述存储装置内的存储模块存储所述目标格式的文件。
- 如权利要求5所述的文件存储方法,其特征在于,所述存储装置内的格式转换模块将所述文件的初始格式转换为目标格式的步骤内,还包括如下步骤:所述存储装置内的处理器判断所述文件的初始格式与目标格式是否一致,当所述文件的初始格式与目标格式不一致时,所述处理器控制所述格式转换模块将所述文件的初始格式转换为目标格式。
- 如权利要求6所述的文件存储方法,其特征在于,所述存储装置内的格式转换模块将所述文件的初始格式转换为目标格式的步骤内,还包括如下步骤:所述处理器读取所述存储装置接收的上传指令并分析所述上传指令对应的期限设置信息;当所述存储模块内的文件的存储时间达到用户设置的访问期限时,所述处理器发送删除指令至所述存储模块内的存储控制器;所述存储控制器接收所述删除指令将所述存储模块内的存储单元中的文件删除。
- 如权利要求7所述的文件存储方法,其特征在于,所述存储装置内的存储模块存储所述目标格式的文件的步骤后,还包括如下步骤:所述主机接收所述访问终端发送的访问指令并将所述访问指令发送至所述存储装置;所述存储装置根据所述访问指令从所述存储模块中调出与所述访问终端类型匹配的目标格式的文件,并将所述目标格式文件发送至所述主机;所述主机将所述目标格式文件发送至所述访问终端。
- 如权利要求8所述的文件存储方法,其特征在于,所述存储装置根据所述访问指令从所述存储模块中调出与所述访问终端类型匹配的目标格式的文件,并将所述目标格式文件发送至所述主机的步骤中,还包括如下步骤:当所述存储模块中未存储与所述访问终端类型匹配的目标格式的文件时,所述格式转换模块将所述访问终端请求访问的文件的格式转换为与所述访问终端类型匹配的目标格式的文件,并将所述目标格式的文件发送给所述主机。
- 如权利要求9所述的文件存储方法,其特征在于,所述主机将所述目标格式文件发送至所述访问终端的步骤中,还包括如下步骤:所述主机将所述目标格式文件对应的缩略文件发送至所述访问终端;所述访问终端顺序显示所述缩略文件;当所述访问终端接收到访问用户的点击指令时,所述访问终端将所述 点击指令传送至所述主机;所述主机根据所述点击指令将所述缩略文件对应的目标格式文件发送至所述访问终端;所述访问终端显示所述目标格式文件。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/388,583 US20210357358A1 (en) | 2019-02-20 | 2021-07-29 | File storage system and method |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910124842.0 | 2019-02-20 | ||
CN201910124842.0A CN109992564B (zh) | 2019-02-20 | 2019-02-20 | 文件存储系统及方法 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/388,583 Continuation US20210357358A1 (en) | 2019-02-20 | 2021-07-29 | File storage system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020169057A1 true WO2020169057A1 (zh) | 2020-08-27 |
Family
ID=67129839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/075934 WO2020169057A1 (zh) | 2019-02-20 | 2020-02-20 | 文件存储系统及方法 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20210357358A1 (zh) |
CN (1) | CN109992564B (zh) |
WO (1) | WO2020169057A1 (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109992564B (zh) * | 2019-02-20 | 2024-03-22 | 深圳大普微电子科技有限公司 | 文件存储系统及方法 |
CN112765097A (zh) * | 2021-01-07 | 2021-05-07 | 珠海格力电器股份有限公司 | 图纸文件的存储方法和装置、电子设备和存储介质 |
CN114640721B (zh) * | 2022-04-25 | 2024-09-17 | 淮南万泰电子股份有限公司 | 一种基于远程配置的电力通信协议转换系统 |
CN116846979B (zh) * | 2023-08-29 | 2024-03-15 | 江苏睿鸿网络技术股份有限公司 | 一种云计算环境下资源的调度方法及调度系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1494011A (zh) * | 2002-08-14 | 2004-05-05 | ���ṫ˾ | 数据存储系统 |
CN101567895A (zh) * | 2008-04-22 | 2009-10-28 | 海尔集团公司 | 一种网络数据存储系统及方法 |
CN101833940A (zh) * | 2009-03-13 | 2010-09-15 | 武汉奇致激光技术有限公司 | 单片机系统中lcd全屏背景图片显示实现的方法 |
CN109992564A (zh) * | 2019-02-20 | 2019-07-09 | 深圳大普微电子科技有限公司 | 文件存储系统及方法 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8578261B1 (en) * | 2007-06-22 | 2013-11-05 | Adobe Systems Incorporated | Active preview of hyperlink content in browser supported file-format |
WO2009150259A1 (es) * | 2008-06-10 | 2009-12-17 | Microelectronica Española, S.A.U. | Procedimiento para el acceso a un sistema de almacenamiento con múltiples sistemas de fichero |
US9195636B2 (en) * | 2012-03-07 | 2015-11-24 | Box, Inc. | Universal file type preview for mobile devices |
US8892638B2 (en) * | 2012-05-10 | 2014-11-18 | Microsoft Corporation | Predicting and retrieving data for preloading on client device |
CN104935666B (zh) * | 2015-06-24 | 2019-01-01 | 智秦数字出版(西安)有限公司 | 一种用于移动端观看pdf文件的方法及系统 |
CN105227672B (zh) * | 2015-10-13 | 2018-04-17 | 国家电网公司 | 数据存储及访问的方法和系统 |
-
2019
- 2019-02-20 CN CN201910124842.0A patent/CN109992564B/zh active Active
-
2020
- 2020-02-20 WO PCT/CN2020/075934 patent/WO2020169057A1/zh active Application Filing
-
2021
- 2021-07-29 US US17/388,583 patent/US20210357358A1/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1494011A (zh) * | 2002-08-14 | 2004-05-05 | ���ṫ˾ | 数据存储系统 |
CN101567895A (zh) * | 2008-04-22 | 2009-10-28 | 海尔集团公司 | 一种网络数据存储系统及方法 |
CN101833940A (zh) * | 2009-03-13 | 2010-09-15 | 武汉奇致激光技术有限公司 | 单片机系统中lcd全屏背景图片显示实现的方法 |
CN109992564A (zh) * | 2019-02-20 | 2019-07-09 | 深圳大普微电子科技有限公司 | 文件存储系统及方法 |
Also Published As
Publication number | Publication date |
---|---|
CN109992564B (zh) | 2024-03-22 |
CN109992564A (zh) | 2019-07-09 |
US20210357358A1 (en) | 2021-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020169057A1 (zh) | 文件存储系统及方法 | |
US10291618B2 (en) | Method and apparatus for providing and receiving contents via network, method and apparatus for backing up data via network, backup data providing device, and backup system | |
US20110087726A1 (en) | Cloud server, client terminal, device, and method of operating cloud server and client terminal | |
JP4990359B2 (ja) | ネットワーク・インターフェイス装置を使用しネットワークを介してメディアを転送するための方法及び装置 | |
US20100325155A1 (en) | Systems and Methods for Providing Access to Various Files Across a Network | |
US20140013015A1 (en) | Method and system for transferring data between portable terminal and external device | |
CN105589836A (zh) | 文档预览方法、终端及服务器 | |
US20140351900A1 (en) | Local proxy system and method | |
US20050223100A1 (en) | Rendering a first media type content on a browser | |
CN104378435A (zh) | 计算设备的浏览器与移动终端的文件传输 | |
CN106101206B (zh) | 提供内容的方法和系统 | |
US20150058397A1 (en) | Information processing system, information processing apparatus, terminal apparatus and information transmission method | |
CN104394208A (zh) | 文件传输方法和服务器 | |
US20170339230A1 (en) | Method and apparatus for file management | |
CN103379164A (zh) | 照相机及其处理文件的方法 | |
US20140115091A1 (en) | Machine-implemented file sharing method for network storage system | |
US20130324191A1 (en) | External electronic device and method for wirelessly accessing storage device | |
CN101599916A (zh) | 文件发布客户端、文件发布服务器、文件发布系统及方法 | |
KR101414585B1 (ko) | 문서 파일의 효율적인 미러링 방법 | |
KR20150088529A (ko) | 이미지로 변환된 전자문서를 제공하는 서버 및 이를 이용한 전자문서 제공 방법 | |
CN111199141B (zh) | 图片处理方法、装置及电子设备 | |
US20240364779A1 (en) | Device and method for uploading file and terminal and method for downloading file | |
US20230032525A1 (en) | Network connected apparatus and cloud data processing method | |
US20220094810A1 (en) | Transmission device, communication system, and display device | |
TWI436221B (zh) | 提供遠端接取的方法及其通訊裝置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20759553 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20759553 Country of ref document: EP Kind code of ref document: A1 |