CN109189772A - File management method and system for no file system storage medium - Google Patents

File management method and system for no file system storage medium Download PDF

Info

Publication number
CN109189772A
CN109189772A CN201810954451.7A CN201810954451A CN109189772A CN 109189772 A CN109189772 A CN 109189772A CN 201810954451 A CN201810954451 A CN 201810954451A CN 109189772 A CN109189772 A CN 109189772A
Authority
CN
China
Prior art keywords
file
stored
management table
storage address
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810954451.7A
Other languages
Chinese (zh)
Other versions
CN109189772B (en
Inventor
孟逍遥
朱骏
孟宪聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaqing Ruida (tianjin) Technology Co Ltd
Original Assignee
Huaqing Ruida (tianjin) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaqing Ruida (tianjin) Technology Co Ltd filed Critical Huaqing Ruida (tianjin) Technology Co Ltd
Priority to CN201810954451.7A priority Critical patent/CN109189772B/en
Publication of CN109189772A publication Critical patent/CN109189772A/en
Application granted granted Critical
Publication of CN109189772B publication Critical patent/CN109189772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of file management method for no file system storage medium.This method comprises: establishing storage space management database in storage medium;In response to the write instruction to file to be stored, the file name and file size of file to be stored are obtained;Locating file manages the file name that whether there is file to be stored in table;If it does not exist, managing table according to idle storage address is that file to be stored distributes specified storage address;File to be stored is written to specified storage address in file name, storage address and the file size that file to be stored is recorded in file management table.The embodiment of the present invention also provides a kind of file management system for no file system storage medium.The embodiment of the present invention passes through, and the memory space of no file system storage medium is recorded and managed by using the file management table and idle storage address management table of database, the professional platform independence energy of no file system storage medium is provided, improves read or write speed.

Description

File management method and system for no file system storage medium
Technical field
The present invention relates to file management system technical field more particularly to a kind of texts for no file system storage medium Part management method and system.
Background technique
High-speed high capacity solid-state memory system is mainly made of control chip and Nand flash.Control chip performance pair The height of Nand flash firmware management ability directly affects the performance of storage system, the data processing and control algorithm meeting used Directly result in huge spread of the high-speed high capacity solid-state memory system on indices.High-speed high capacity solid-state memory system Controller is exactly an internal processor, runs refreshable firmware, controller is used to will be between the data that stored and computer It links up, generally the address by the specified write-in of computer program developer and data length, by controller to the DMA of computer The transmission of data is completed in (Direct Memory Access, direct memory access) operation.
File system is operating system for clearly (commonly disk also to have based on Nand Flash's storage equipment Solid state hard disk) or the file on subregion method and data structure;That is the method for constituent act on a storage device.Operating system The software mechanism of middle complex management and storage file information is known as file management system, abbreviation file system.File system is by three Part forms: the interface of file system, to the software assembly of Object Operations and management, object and attribute.Come from the angle of system See, file system is to carry out tissue and distribution to the space of file-storage device, be responsible for file storage and to the file of deposit into The system of row protection and retrieval.Specifically, it, which is responsible for user, establishes file, it is stored in, stays alone, modifying, dump file, controls The access of file cancels file when user does not use file.
In realizing process of the present invention, at least there are the following problems in the related technology for inventor's discovery:
Operation for the high-speed high capacity storage medium of no file system, user is by directly specified read/write address, so The managing chip of high-speed high capacity storage medium is passed data to afterwards, then specified ground is write data by the managing chip Location, due to needing user to be voluntarily managed to address, operation is more troublesome, and due to being artificial recording address, simultaneously There are the risks of maloperation.And professional platform independence can be insufficient, the file system of different operating system, due to using different files Supervisory format and data storage format cause the storage medium is different surely to be identified by another operating system;Although file Dispersion storage can be improved the utilization rate of storage medium, but in some cases, need to carry out a certain Large Volume Data Not interruptable fast reading and writing operation, so that the storage of dispersion is unsatisfactory for demand, and the discontinuous storage of file also results in Read or write speed slows down;Storage medium is wanted to be identified by operating system, it is necessary to which storage medium format is turned to operating system energy The file system of identification, the management for file, then recorded by some data structures, and manageable to certain needs letters Function realizes that above-mentioned demand can greatly increase development cost.
Summary of the invention
In order at least solve in the prior art, the professional platform independence energy without file system storage medium is insufficient, discontinuously storage is led Cause read or write speed to slow down, be directed to peer machine the storage medium format of no file system must be turned to operated system can The problem of file system of identification.
In a first aspect, the embodiment of the present invention provides a kind of file management method for no file system storage medium, packet It includes:
Storage space management database is established in the storage medium, wherein in the storage space management database Including at least below table: according to the file name, storage address and file size of data with existing in the storage medium, building Vertical file management table and idle storage address manage table;
In response to the write instruction to file to be stored, file name and the file for obtaining the file to be stored are big It is small;
Search the file name that whether there is the file to be stored in the file management table;
It if it does not exist, is that the file to be stored distributes specified storage address according to the idle storage address management table;
The file name, storage address and file size that the file to be stored is recorded in the file management table, to The file to be stored is written in the specified storage address.
Second aspect, the embodiment of the present invention provide a kind of file management system for no file system storage medium, packet It includes:
Database program module, for establishing storage space management database in the storage medium, wherein institute State and include at least below table in storage space management database: according to the file name of data with existing in the storage medium, Storage address and file size, the file management table of foundation and idle storage address manage table;
The file information obtains program module, for obtaining described wait store in response to the write instruction to file to be stored The file name and file size of file;
File name search program module, for searching in the file management table with the presence or absence of the file to be stored File name;
Allocations of storage addresses program module is specified, if in the absence of the file name for the file to be stored, according to The free time storage address management table is that the file to be stored distributes specified storage address;
File to be stored write-in program module, for recording the file of the file to be stored in the file management table The file to be stored is written to the specified storage address in title, storage address and file size.
The third aspect provides a kind of electronic equipment comprising: at least one processor, and with described at least one Manage the memory of device communication connection, wherein the memory is stored with the instruction that can be executed by least one described processor, institute It states instruction to be executed by least one described processor, so that at least one described processor is able to carry out any embodiment of the present invention The file management method for no file system storage medium the step of.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, are stored thereon with computer program, and feature exists In the file management for no file system storage medium of realization any embodiment of the present invention when the program is executed by processor The step of method.
The beneficial effect of the embodiment of the present invention is: empty by using storage of the database to no file system storage medium Between recorded and managed, rather than direct formatting storage medium ensure that professional platform independence energy, and store on storage medium Be all effective data, the problem of segmentation there is no file data by file system data, meanwhile, also ensured do not have to it is necessary Formatting can also be user-operably system and be identified.Use the title for the data that data-base recording is written, occupied memory space Size and the information such as first address, and change the remaining space size of storage medium automatically, effectively adjust the inside of storage medium Space improves read or write speed.
By the way that file name is compared, user is avoided to cover write-in, while from delete operation, only deleting file The data in table are managed, without wiping without the data in file system storage medium, reduces the no file system storage and is situated between The erasable number of matter, to ensure the service life of storage equipment.
The file that user is deleted can be inquired by establishing deleted document management table, text can have been deleted by inquiry Part management table extracts deleted file, avoids covering from being written or accidentally deletion etc. operates.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of stream for file management method for no file system storage medium that one embodiment of the invention provides Cheng Tu;
Fig. 2 is a kind of knot for file management system for no file system storage medium that one embodiment of the invention provides Structure schematic diagram.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
A kind of file management side for no file system storage medium provided as shown in Figure 1 for one embodiment of the invention The flow chart of method, includes the following steps:
S11: storage space management database is established in the storage medium, wherein the storage space management data Below table is included at least in library: big according to the file name, storage address of data with existing in the storage medium and file Small, the file management table of foundation and idle storage address manage table;
S12: in response to the write instruction to file to be stored, the file name and file of the file to be stored are obtained Size;
S13: the file name that whether there is the file to be stored in the file management table is searched;
S14: being the specified storage ground of file to be stored distribution according to the idle storage address management table if it does not exist Location;.
S15: the file name, storage address and file that the file to be stored is recorded in the file management table are big It is small, the file to be stored is written to the specified storage address.
In the present embodiment, the no file system storage medium includes the hard disk, USB flash disk, storage card of no file system Deng.Such as when hard disk of the user by electronic equipment reading without file system, user will be directly facing the sector of hard disk.It can incite somebody to action This method configures in a computer, when user reads without file system storage medium, can build for no file system storage medium Vertical storage space management database.
For step S11, the electronic equipment of user is according to the file of data with existing in the no file system storage medium Title, storage address and file size establish storage space management database, wherein the storage space management database Including at least file management table and idle storage address table;
For example, 3 files are stored in the no file system storage medium, respectively Test.doc, Password.txt、Index.html。
The file management table then established are as follows:
Name base address Size
Test.doc 0x0800 0FED 7Kbyte
Password.txt 0x0800 81AC 2Kbyte
Index.html 0x0801 A00B 1Kbyte
Idle storage address table is then the storage address for recording the available free time in the no file system storage medium, This, no longer citing repeats.
For step S12, after the storage space management database that step S11 is established, in response to the text of user's sending Part write instruction obtains title and file size that user wants the file to be stored of storage.For example, user wants write-in Table.xlsx file then obtains file name " Table.xlsx ", the file size " 5Kbyte " of Table.xlsx.
For step S13, inquiry whether there is the file to be stored " Table.xlsx " in the file management table File name.Wherein when file is less, most basic sequential search can be used.It is described but with the write-in of file When more and more without the file in file system storage medium, more querying methods can be used to improve search efficiency, example Such as: binary chop, interpolation lookup, Fibonacci search, tree table lookup, block research, Ha Xi are searched.
For step S14, by the lookup of step S13, if the name of file to be stored is not present in the file management table It is that the file to be stored distributes specified storage address according to the idle storage address management table when title.It is deposited for example, being assigned with Store up address be 0x0802 0A0B wherein, the specified storage address by memory block in the no file system storage medium head Address and file size are constituted, such as according to the idle storage address specified range available address or the random range of selection Available address.
For step S15, recorded in the file management table file name of the file to be stored, storage address and The file to be stored is written to the specified storage address in file size.
After write-in, file management table are as follows:
Name base address Size
Test.doc 0x0800 0FED 7Kbyte
Password.txt 0x0800 81AC 2Kbyte
Index.html 0x0801 A00B 1Kbyte
Table.xlsx 0x0802 0A0B 5Kbyte
As an implementation, in the present embodiment, described to be written to the specified storage address of memory space wait store The data of file include:
Wipe the data that storage address is specified in the storage medium;
The data of the file to be stored are written to the specified storage address of the storage medium.
In the present embodiment, need to wipe institute to the data of the specified storage address of memory space write-in file to be stored The data for specifying storage address in storage medium are stated, just the no file system storage medium can will be written with storage file later Specified storage address among.
It is recorded and is managed by using memory space of the database to no file system storage medium, rather than directly Formatted storage medium ensure that professional platform independence energy, and what is stored on storage medium is all effective data, and file is not present The problem of data are divided by file system data, meanwhile, it has also ensured and has not had to format also be user-operably system institute Identification.Using the title for the data that data-base recording is written, the information such as the size of occupied memory space and first address, and it is automatic The remaining space size of storage medium is changed, the inner space of storage medium is effectively adjusted, improves read or write speed.
As an implementation, in the present embodiment, it searches in the file management table described with the presence or absence of described After the file name of file to be stored, the method also includes:
If it exists, whether feedback carries out the confirmation message of file replacement;
File replacement is carried out in response to confirmation message, deletes the file in the file management table with the file to be stored The identical the file information of title;
Increase the occupied address space of deleted file in the idle storage address management table, according to the free time Storage address manages table and distributes specified storage address to the file to be stored.
In the present embodiment, for example, user wants write-in " Test.doc " file, then the filename of Test.doc is obtained Claim " Test.doc ", file size " 4Kbyte ".If there are when the title of file to be stored in the file management table, to user Whether feedback carries out the confirmation message of file replacement;
In response to the file replacement confirmation instruction of user, the text in the file management table with the file to be stored is deleted The identical the file information of part title;
The file occupied space as recorded in file management table changes, and adjusts the idle storage address management Address space in table.Storage address is specified to the file to be stored fragment according to storage address management table idle after adjustment.
For example, after replacement, file management table are as follows:
Name base address Size
Password.txt 0x0800 81AC 2Kbyte
Index.html 0x0801 A00B 1Kbyte
Test.doc 0x0800 0FED 4Kbyte
It can be seen that by the embodiment by the way that file name is compared, user avoided to cover write-in, while When delete operation, the data in file management table are only deleted, without wiping without the data in file system storage medium, are reduced The erasable number of the no file system storage medium, to ensure the service life of storage equipment.
As an implementation, in the present embodiment, in the storage space management database at least further include: deleted Except file management table;
After the file name searched in the file management table with the presence or absence of the file to be stored, the side Method further include:
If it exists, whether feedback carries out the confirmation message of file replacement;
File replacement is carried out in response to confirmation message, deletes the file in the file management table with the file to be stored The identical the file information of title records deleted file information in deleted document management table;
Specified storage address is distributed to the file to be stored according to the idle storage address management table.
It in the present embodiment, further include deleted document management table in storage space management database, for recording quilt Delete the file name of file, storage address, file size and erasing time.
In response to the file replacement confirmation instruction of user, the text in the file management table with the file to be stored is deleted The identical the file information of part title records deleted file information in deleted document management table;
Table, which is managed, according to idle storage address distributes specified storage address to the file to be stored.
As an implementation, in the present embodiment, the method also includes: according to preset period of time, according to quilt The erasing time sequence of the file of deletion, wipes deleted file in deleted document management table described in the storage medium Information increases the occupied address space of deleted file in the idle storage address management table.
When being in the present embodiment, such as according to a week a cycle, when according to the deletion of deleted file Between sequence, to wipe in the storage medium deleted file information in deleted document management table, in the idle storage Increase the occupied address space of deleted file in address administration table.
Can be seen that by the embodiment can inquire the text that user is deleted by establishing deleted document management table Deleted file can be extracted by inquiry deleted document management table, covering is avoided to be written or accidentally delete by part Deng operation.
A kind of file management system for no file system storage medium of one embodiment of the invention offer is provided The structural schematic diagram of system, the technical solution of the present embodiment are applicable to the file for no file system storage medium to equipment The file management side described in above-mentioned any embodiment for no file system storage medium can be performed in management method, the system Method, and configure in the terminal.
A kind of file management system for no file system storage medium provided in this embodiment includes: Database Program module 11, the file information obtain program module 12, and file name search program module 13 specifies allocations of storage addresses program Module 14 and file to be stored write-in program module 15.
Wherein, Database program module 11 is used to establish storage space management database in the storage medium, Wherein, below table is included at least in the storage space management database: according to the text of data with existing in the storage medium Part title, storage address and file size, the file management table of foundation and idle storage address manage table;The file information obtains Program module 12 is used to obtain the file name and text of the file to be stored in response to the write instruction to file to be stored Part size;File name search program module 13 is used to search in the file management table with the presence or absence of the file to be stored File name;If in the absence of specified allocations of storage addresses program module 14 is for the file name of the file to be stored, root It is that the file to be stored distributes specified storage address according to the idle storage address management table;File to be stored write-in program mould Block 15 is used to record the file name, storage address and file size of the file to be stored in the file management table, to The file to be stored is written in the specified storage address.
Further, the system also includes replacement information feedback process modules, if the text for the file to be stored In the presence of part title, whether feedback carries out the confirmation message of file replacement;
The file information deletes program module, for carrying out file replacement in response to confirmation message, deletes the file management The file information identical with the file name of the file to be stored in table;
Specified allocations of storage addresses program module, for increasing deleted file in the idle storage address management table Occupied address space distributes specified storage address to the file to be stored according to the idle storage address management table.
Further, in the storage space management database at least further include: deleted document manages table;
The system also includes: replacement information feedback process module, if the file name for the file to be stored is deposited When, whether feedback carries out the confirmation message of file replacement;
The file information deletes program module, for carrying out file replacement in response to confirmation message, deletes the file management The file information identical with the file name of the file to be stored in table, records in the deleted document management table and is deleted The file information removed;
Specified allocations of storage addresses program module, for managing table to the file to be stored according to the idle storage address Distribute specified storage address.
Further, the system also includes:
The file information wipes program module, is used for according to preset period of time, according to the erasing time of deleted file Sequentially, deleted file information in deleted document management table described in the storage medium is wiped, in the idle storage Increase the occupied address space of deleted file in address administration table.
Further, the data to the specified storage address of memory space write-in file to be stored include:
Wipe the data that storage address is specified in the storage medium;
The data of the file to be stored are written to the specified storage address of the storage medium.
The embodiment of the invention also provides a kind of nonvolatile computer storage media, computer storage medium is stored with meter Depositing in above-mentioned any means embodiment for no file system can be performed in calculation machine executable instruction, the computer executable instructions The file management method of storage media;
As an implementation, nonvolatile computer storage media of the invention is stored with the executable finger of computer It enables, computer executable instructions setting are as follows:
Storage space management database is established in the storage medium, wherein in the storage space management database Including at least below table: according to the file name, storage address and file size of data with existing in the storage medium, building Vertical file management table and idle storage address manage table;
In response to the write instruction to file to be stored, file name and the file for obtaining the file to be stored are big It is small;
Search the file name that whether there is the file to be stored in the file management table;
It if it does not exist, is that the file to be stored distributes specified storage address according to the idle storage address management table;
The file name, storage address and file size that the file to be stored is recorded in the file management table, to The file to be stored is written in the specified storage address.
As a kind of non-volatile computer readable storage medium storing program for executing, it can be used for storing non-volatile software program, non-volatile Property computer executable program and module, such as the corresponding program instruction/mould of the method for the test software in the embodiment of the present invention Block.One or more program instruction is stored in non-volatile computer readable storage medium storing program for executing, when being executed by a processor, is held The file management method for no file system storage medium in the above-mentioned any means embodiment of row.
Non-volatile computer readable storage medium storing program for executing may include storing program area and storage data area, wherein storage journey It sequence area can application program required for storage program area, at least one function;Storage data area can be stored according to test software Device use created data etc..In addition, non-volatile computer readable storage medium storing program for executing may include that high speed is deposited at random Access to memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other are non- Volatile solid-state part.In some embodiments, it includes relative to place that non-volatile computer readable storage medium storing program for executing is optional The remotely located memory of device is managed, these remote memories can be by being connected to the network to the device of test software.Above-mentioned network Example include but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
The embodiment of the present invention also provides a kind of electronic equipment comprising: at least one processor, and with described at least one The memory of a processor communication connection, wherein the memory is stored with the finger that can be executed by least one described processor Enable, described instruction executed by least one described processor so that at least one described processor be able to carry out it is of the invention any The step of file management method for no file system storage medium of embodiment.
The client of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) other electronic devices with store function.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality Relationship or sequence.Moreover, the terms "include", "comprise", include not only those elements, but also including being not explicitly listed Other element, or further include for elements inherent to such a process, method, article, or device.Do not limiting more In the case where system, the element that is limited by sentence " including ... ", it is not excluded that including process, method, the article of the element Or there is also other identical elements in equipment.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of file management method for no file system storage medium, comprising:
Storage space management database is established in the storage medium, wherein in the storage space management database at least Including below table: according to the file name, storage address and file size of data with existing in the storage medium, foundation File management table and idle storage address manage table;
In response to the write instruction to file to be stored, the file name and file size of the file to be stored are obtained;
Search the file name that whether there is the file to be stored in the file management table;
It if it does not exist, is that the file to be stored distributes specified storage address according to the idle storage address management table;
The file name, storage address and file size that the file to be stored is recorded in the file management table, to described The file to be stored is written in specified storage address.
2. according to the method described in claim 1, wherein, searching in the file management table with the presence or absence of described described wait deposit After the file name for storing up file, the method also includes:
If it exists, whether feedback carries out the confirmation message of file replacement;
File replacement is carried out in response to confirmation message, deletes the file name in the file management table with the file to be stored Identical the file information;
Increase the occupied address space of deleted file in the idle storage address management table, according to the idle storage Address administration table distributes specified storage address to the file to be stored.
3. according to the method described in claim 1, wherein, in the storage space management database at least further include: deleted File management table;
After the file name searched in the file management table with the presence or absence of the file to be stored, the method is also Include:
If it exists, whether feedback carries out the confirmation message of file replacement;
File replacement is carried out in response to confirmation message, deletes the file name in the file management table with the file to be stored Identical the file information records deleted file information in deleted document management table;
Specified storage address is distributed to the file to be stored according to the idle storage address management table.
4. according to the method described in claim 3, wherein, the method also includes:
It is wiped described in the storage medium according to preset period of time according to the erasing time of deleted file sequence Deleted file information in file management table is deleted, is increased shared by deleted file in the idle storage address management table Address space.
5. method according to any of claims 1-4, wherein described to be written to the specified storage address of memory space The data of file to be stored include:
Wipe the data that storage address is specified in the storage medium;
The data of the file to be stored are written to the specified storage address of the storage medium.
6. a kind of file management system for no file system storage medium, comprising:
Database program module, for establishing storage space management database in the storage medium, wherein described to deposit It stores up and includes at least below table in space management database: according to the file name of data with existing, storage in the storage medium Address and file size, the file management table of foundation and idle storage address manage table;
The file information obtains program module, for obtaining the file to be stored in response to the write instruction to file to be stored File name and file size;
File name search program module, for searching the file that whether there is the file to be stored in the file management table Title;
Allocations of storage addresses program module is specified, if in the absence of the file name for the file to be stored, according to described Idle storage address management table is that the file to be stored distributes specified storage address;
File to be stored write-in program module, for recording the filename of the file to be stored in the file management table The file to be stored is written to the specified storage address in title, storage address and file size.
7. system according to claim 6, wherein the system also includes: replacement information feedback process module, if for In the presence of the file name of the file to be stored, whether feedback carries out the confirmation message of file replacement;
The file information deletes program module, for carrying out file replacement in response to confirmation message, deletes in the file management table The file information identical with the file name of the file to be stored;
Specified allocations of storage addresses program module, for increasing shared by deleted file in the idle storage address management table Address space distributes specified storage address to the file to be stored according to the idle storage address management table.
8. system according to claim 6, wherein in the storage space management database at least further include: deleted File management table;
The system also includes replacement information feedback process modules, if in the presence of the file name for the file to be stored, Whether feedback carries out the confirmation message of file replacement;
The file information deletes program module, for carrying out file replacement in response to confirmation message, deletes in the file management table The file information identical with the file name of the file to be stored, record is deleted in deleted document management table The file information;
Specified allocations of storage addresses program module, for distributing according to the idle storage address management table the file to be stored Specified storage address.
9. system according to claim 8, wherein the system also includes:
The file information wipes program module, is used for according to preset period of time, sequentially according to the erasing time of deleted file, Deleted file information in deleted document management table described in the storage medium is wiped, in the idle storage address pipe It manages and increases the occupied address space of deleted file in table.
10. the system according to any one of claim 6-9, wherein described to be write to the specified storage address of memory space The data for entering file to be stored include:
Wipe the data that storage address is specified in the storage medium;
The data of the file to be stored are written to the specified storage address of the storage medium.
CN201810954451.7A 2018-08-21 2018-08-21 File management method and system for storage medium without file system Active CN109189772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810954451.7A CN109189772B (en) 2018-08-21 2018-08-21 File management method and system for storage medium without file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810954451.7A CN109189772B (en) 2018-08-21 2018-08-21 File management method and system for storage medium without file system

Publications (2)

Publication Number Publication Date
CN109189772A true CN109189772A (en) 2019-01-11
CN109189772B CN109189772B (en) 2021-09-28

Family

ID=64919170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810954451.7A Active CN109189772B (en) 2018-08-21 2018-08-21 File management method and system for storage medium without file system

Country Status (1)

Country Link
CN (1) CN109189772B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049887A (en) * 2019-11-29 2020-04-21 天脉聚源(杭州)传媒科技有限公司 Download control method, system and storage medium based on dynamic search strategy
CN111159114A (en) * 2019-12-30 2020-05-15 中国科学院寒区旱区环境与工程研究所 File storage method and device and server
CN112214468A (en) * 2020-10-18 2021-01-12 苏州浪潮智能科技有限公司 Small file acceleration method, device, equipment and medium for distributed storage system
CN113495681A (en) * 2020-04-07 2021-10-12 杭州萤石软件有限公司 NAND FLASH file data access method, device and storage medium
CN114237513A (en) * 2021-12-17 2022-03-25 四川九洲空管科技有限责任公司 File data memory, writing method, reading method and storage system
CN114327246A (en) * 2020-10-12 2022-04-12 深圳市爱图仕影像器材有限公司 Data storage method in storage medium, storage medium and computer equipment
CN115952140A (en) * 2023-01-09 2023-04-11 弘泰信息技术(天津)有限公司 Computer resource management system and method based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426586A (en) * 2011-10-25 2012-04-25 厦门雅迅网络股份有限公司 FAT (file allocation table) file storage method in embedded system
CN103399826A (en) * 2013-08-15 2013-11-20 南京新联电子股份有限公司 Data storage method based on NOR FLASH
CN103577121A (en) * 2013-11-05 2014-02-12 中船重工(武汉)凌久电子有限责任公司 High-reliability linear file access method based on nand flash
US20150242310A1 (en) * 2014-02-21 2015-08-27 Lenovo (Beijing) Co., Ltd. Data Accessing Method And Data Accessing Apparatus
CN105243071A (en) * 2014-07-12 2016-01-13 航天恒星科技有限公司 Retrievable file access method suitable for no-file system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426586A (en) * 2011-10-25 2012-04-25 厦门雅迅网络股份有限公司 FAT (file allocation table) file storage method in embedded system
CN103399826A (en) * 2013-08-15 2013-11-20 南京新联电子股份有限公司 Data storage method based on NOR FLASH
CN103577121A (en) * 2013-11-05 2014-02-12 中船重工(武汉)凌久电子有限责任公司 High-reliability linear file access method based on nand flash
US20150242310A1 (en) * 2014-02-21 2015-08-27 Lenovo (Beijing) Co., Ltd. Data Accessing Method And Data Accessing Apparatus
CN105243071A (en) * 2014-07-12 2016-01-13 航天恒星科技有限公司 Retrievable file access method suitable for no-file system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049887A (en) * 2019-11-29 2020-04-21 天脉聚源(杭州)传媒科技有限公司 Download control method, system and storage medium based on dynamic search strategy
CN111159114A (en) * 2019-12-30 2020-05-15 中国科学院寒区旱区环境与工程研究所 File storage method and device and server
CN113495681A (en) * 2020-04-07 2021-10-12 杭州萤石软件有限公司 NAND FLASH file data access method, device and storage medium
CN114327246A (en) * 2020-10-12 2022-04-12 深圳市爱图仕影像器材有限公司 Data storage method in storage medium, storage medium and computer equipment
CN114327246B (en) * 2020-10-12 2024-02-27 深圳爱图仕创新科技股份有限公司 Method for storing data in storage medium, storage medium and computer device
CN112214468A (en) * 2020-10-18 2021-01-12 苏州浪潮智能科技有限公司 Small file acceleration method, device, equipment and medium for distributed storage system
CN112214468B (en) * 2020-10-18 2023-01-06 苏州浪潮智能科技有限公司 Small file acceleration method, device, equipment and medium for distributed storage system
CN114237513A (en) * 2021-12-17 2022-03-25 四川九洲空管科技有限责任公司 File data memory, writing method, reading method and storage system
CN115952140A (en) * 2023-01-09 2023-04-11 弘泰信息技术(天津)有限公司 Computer resource management system and method based on big data
CN115952140B (en) * 2023-01-09 2023-10-27 华苏数联科技有限公司 Big data-based computer resource management system and method

Also Published As

Publication number Publication date
CN109189772B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN109189772A (en) File management method and system for no file system storage medium
US9836514B2 (en) Cache based key-value store mapping and replication
CN104881481B (en) A kind of method and device for accessing magnanimity time series data
US11531491B2 (en) Systems and methods for random to sequential storage mapping
CN108647151A (en) It is a kind of to dodge system metadata rule method, apparatus, equipment and storage medium entirely
CN104679847B (en) A kind of method and apparatus constructing online real-time update magnanimity audio-frequency fingerprint library
CN108776682B (en) Method and system for randomly reading and writing object based on object storage
CN103150079A (en) Application icon management method and device based on Firefox OS (Operation System) platform
CN103544156A (en) Method and device for storing files
CN106970958B (en) A kind of inquiry of stream file and storage method and device
CN107026876A (en) A kind of file data accesses system and method
CN104054071A (en) Method for accessing storage device and storage device
CN102821111A (en) Real-time synchronizing method for file cloud storage
CN103067479A (en) Network disk synchronized method and system based on file coldness and hotness
CN103049574B (en) Realize key assignments file system and the method for file dynamic copies
CN108875046A (en) A kind of storage system access method, device and electronic equipment
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
CN108287869A (en) A kind of mass small documents solution based on speedy storage equipment
US8239427B2 (en) Disk layout method for object-based storage devices
CN102523301A (en) Method for caching data on client in cloud storage
CN103713926A (en) Method and system for updating software of client in advance
JP6034512B2 (en) Computer system and data management method
CN103841168B (en) Data trnascription update method and meta data server
CN109189724B (en) Method and device for improving audio and video data storage efficiency of video monitoring system
CN102104581A (en) Network karaoke on-demand system and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant