CN109189772B - File management method and system for storage medium without file system - Google Patents

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

Info

Publication number
CN109189772B
CN109189772B CN201810954451.7A CN201810954451A CN109189772B CN 109189772 B CN109189772 B CN 109189772B CN 201810954451 A CN201810954451 A CN 201810954451A CN 109189772 B CN109189772 B CN 109189772B
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.)
Active
Application number
CN201810954451.7A
Other languages
Chinese (zh)
Other versions
CN109189772A (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

Images

Abstract

The embodiment of the invention provides a file management method for a storage medium without a file system. The method comprises the following steps: establishing a storage space management database in a storage medium; responding to a writing instruction of a file to be stored, and acquiring a file name and a file size of the file to be stored; searching whether a file name of a file to be stored exists in a file management table; if the file does not exist, allocating a designated storage address for the file to be stored according to the idle storage address management table; and recording the file name, the storage address and the file size of the file to be stored in the file management table, and writing the file to be stored into the specified storage address. The embodiment of the invention also provides a file management system for the storage medium without the file system. The embodiment of the invention records and manages the storage space of the storage medium without the file system by using the file management table and the free storage address management table of the database, thereby providing the cross-platform performance of the storage medium without the file system and improving the reading and writing speed.

Description

File management method and system for storage medium without file system
Technical Field
The invention relates to the technical field of file management systems, in particular to a file management method and a file management system for a storage medium without a file system.
Background
The high-speed large-capacity solid-state storage system mainly comprises a control chip and a Nand flash. The performance of the storage system is directly influenced by the performance of the control chip to the management capacity of the Nand flash firmware, and the used data processing control algorithm directly causes a great difference in each index of the high-speed large-capacity solid-state storage system. A controller of a high-speed large-capacity solid-state storage system is a built-in processor, runs a refreshable firmware, is used for communicating stored data with a computer, generally, a computer program developer designates a written address and a data length, and data transmission is completed through DMA (Direct Memory Access) operation of the computer by the controller.
The file system is a method and a data structure used by an operating system for defining files on a storage device (a magnetic disk is common and a solid state disk based on Nand Flash is also available) or a partition; i.e. a method of organizing files on a storage device. A software mechanism in an operating system that manages and stores file information in a complex manner is called a file management system, which is referred to as a file system for short. The file system consists of three parts: file system interface, software assembly for operating and managing objects, objects and attributes. From a system perspective, a file system is a system that organizes and allocates space of a file storage device, is responsible for file storage, and protects and retrieves stored files. In particular, it is responsible for creating files for the user, storing, individualizing, modifying, dumping files, controlling the access to files, and revoking files when the user is no longer using them.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the related art:
for the operation of the high-speed large-capacity storage medium without a file system, a user directly specifies a read-write address, then transmits data to a management chip of the high-speed large-capacity storage medium, and then the management chip writes the data into the specified address. The cross-platform performance is insufficient, and the file systems of different operating systems use different file management formats and data storage forms, so that the storage medium cannot be identified by another operating system; although the utilization rate of the storage medium can be improved by the distributed storage of the files, in some occasions, an uninterruptible fast read-write operation needs to be performed on certain large-capacity data, so that the distributed storage does not meet the requirement, and the discontinuous storage of the files can also cause the slow read-write speed; the storage medium is required to be recognized by an operating system, the storage medium must be formatted into a file system which can be recognized by the operating system, and for file management, the storage medium is recorded by data structures, and for some functions which only need to be easily controlled, the development cost is greatly increased when the above requirements are realized.
Disclosure of Invention
In order to at least solve the problems that the cross-platform performance of the storage medium without the file system is insufficient and the reading and writing speed is reduced due to discontinuous storage in the prior art, the storage medium without the file system must be formatted into the file system which can be identified by an operating system by an individual system.
In a first aspect, an embodiment of the present invention provides a file management method for a storage medium without a file system, including:
establishing a storage space management database in the storage medium, wherein the storage space management database at least comprises the following tables: establishing a file management table and an idle storage address management table according to the file name, the storage address and the file size of the existing data in the storage medium;
responding to a writing instruction of a file to be stored, and acquiring a file name and a file size of the file to be stored;
searching whether the file name of the file to be stored exists in the file management table;
if the file to be stored does not exist, allocating a designated storage address for the file to be stored according to the free storage address management table;
and recording the file name, the storage address and the file size of the file to be stored in the file management table, and writing the file to be stored into the specified storage address.
In a second aspect, an embodiment of the present invention provides a file management system for a storage medium without a file system, including:
a database establishing program module, configured to establish a storage space management database in the storage medium, where the storage space management database at least includes the following tables: establishing a file management table and an idle storage address management table according to the file name, the storage address and the file size of the existing data in the storage medium;
the file information acquisition program module is used for responding to a writing instruction of a file to be stored, and acquiring the file name and the file size of the file to be stored;
the file name searching program module is used for searching whether the file name of the file to be stored exists in the file management table or not;
the appointed storage address allocation program module is used for allocating appointed storage addresses for the files to be stored according to the idle storage address management table if the file names of the files to be stored do not exist;
and the program writing module for the file to be stored is used for recording the file name, the storage address and the file size of the file to be stored in the file management table and writing the file to be stored into the specified storage address.
In a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the file management method for a filesystem-less storage medium of any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the steps of the file management method for a storage medium without a file system according to any embodiment of the present invention.
The embodiment of the invention has the beneficial effects that: the storage space of the storage medium without the file system is recorded and managed by using the database instead of directly formatting the storage medium, so that the cross-platform performance is ensured, the effective data is stored on the storage medium, the problem that the file data is divided by the file system data does not exist, and the condition that the file data can be identified by a user operating system without necessarily formatting is also ensured. The database is used for recording the written data name, the size of the occupied storage space, the first address and other information, the size of the residual space of the storage medium is automatically changed, the internal space of the storage medium is effectively adjusted, and the reading and writing speed is improved.
By comparing the file names, the user is prevented from overwriting, and only the data in the file management table is deleted without erasing the data in the storage medium without the file system during the deletion operation, so that the erasing times of the storage medium without the file system are reduced, and the service life of the storage equipment is ensured.
The deleted files can be inquired by the user by establishing the deleted file management table, and the deleted files can be extracted by inquiring the deleted file management table, so that the operations of overwriting, mistaken deletion and the like are avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of a file management method for a filesystem-less storage medium according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a file management system for a storage medium without a file system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a file management method for a storage medium without a file system according to an embodiment of the present invention, including the following steps:
s11: establishing a storage space management database in the storage medium, wherein the storage space management database at least comprises the following tables: establishing a file management table and an idle storage address management table according to the file name, the storage address and the file size of the existing data in the storage medium;
s12: responding to a writing instruction of a file to be stored, and acquiring a file name and a file size of the file to be stored;
s13: searching whether the file name of the file to be stored exists in the file management table;
s14: if not, allocating a designated storage address for the file to be stored according to the free storage address management table.
S15: and recording the file name, the storage address and the file size of the file to be stored in the file management table, and writing the file to be stored into the specified storage address.
In this embodiment, the non-file system storage medium includes a non-file system hard disk, a usb disk, a memory card, and the like. For example, when a user reads a hard disk without a file system through an electronic device, the user will directly face a sector of the hard disk. The method can be configured in a computer, and when a user reads the storage medium without the file system, a storage space management database is established for the storage medium without the file system.
For step S11, the electronic device of the user establishes a storage space management database according to the file name, the storage address and the file size of the existing data in the storage medium without file system, where the storage space management database at least includes a file management table and a free storage address table;
for example, the storage medium without the file system stores 3 files, which are respectively test.
The file management table is then established as follows:
Name base address Size
Test.doc 0x0800 0FED 7Kbyte
Password.txt 0x0800 81AC 2Kbyte
Index.html 0x0801 A00B 1Kbyte
the free storage address table records available free storage addresses in the storage medium without the file system, which is not described herein again for example.
With step S12, after the storage space management database created in step S11, the name of the file to be stored and the file size that the user wants to store are acquired in response to a file write instruction issued by the user. For example, if the user wants to write a table.xlsx file, the file name "table.xlsx" and the file size "5 Kbyte" of table.xlsx are obtained.
For step S13, it is queried in the file management table whether there is a file name of the file to be stored "table. Where the most basic sequential lookup can be used when there are fewer files. However, as the number of files in the storage medium without the file system is increased along with the writing of the files, more query methods can be used to improve the query efficiency, for example: binary search, interpolation search, fibonacci search, tree table search, block search, haysi search, and the like.
For step S14, after the search of step S13, if the name of the file to be stored does not exist in the file management table, assigning a designated storage address to the file to be stored according to the free storage address management table. For example, a storage address of 0x 08020 A0B is allocated, wherein the specified storage address is composed of a head address of a storage block in the storage medium without a file system and a file size, and for example, a range of available addresses is specified or a random range of available addresses is selected according to the free storage address.
For step S15, the file name, storage address, and file size of the file to be stored are recorded in the file management table, and the file to be stored is written to the specified storage address.
After writing, the file management table is:
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 manner, in this embodiment, the writing data of the file to be stored to the specified storage address of the storage space includes:
erasing data of a specified storage address in the storage medium;
and writing the data of the file to be stored into the specified storage address of the storage medium.
In this embodiment, writing data of a file to be stored to a specified storage address of a storage space requires erasing data of the specified storage address in the storage medium, and then writing the tape storage file to the specified storage address of the non-file system storage medium.
The storage space of the storage medium without the file system is recorded and managed by using the database instead of directly formatting the storage medium, so that the cross-platform performance is ensured, the effective data is stored on the storage medium, the problem that the file data is divided by the file system data does not exist, and the condition that the file data can be identified by a user operating system without necessarily formatting is also ensured. The database is used for recording the written data name, the size of the occupied storage space, the first address and other information, the size of the residual space of the storage medium is automatically changed, the internal space of the storage medium is effectively adjusted, and the reading and writing speed is improved.
As an implementation manner, in this embodiment, after the searching whether the file name of the file to be stored exists in the file management table, the method further includes:
if yes, feeding back confirmation information whether to replace the file;
responding to the confirmation information to carry out file replacement, and deleting the file information which is the same as the file name of the file to be stored in the file management table;
and adding an address space occupied by the deleted file in the idle storage address management table, and allocating a specified storage address to the file to be stored according to the idle storage address management table.
In the present embodiment, for example, when the user wants to write a "test.doc" file, the user acquires the file name "test.doc" and the file size "4 Kbyte" of the test.doc. If the name of the file to be stored exists in the file management table, feeding back confirmation information whether to replace the file to a user;
in response to a file replacement confirmation instruction of a user, deleting file information which is the same as the file name of the file to be stored in the file management table;
and adjusting the address space in the free storage address management table because the occupied space of the file recorded in the file management table is changed. And assigning a storage address to the file to be stored in a fragmentation mode according to the adjusted idle storage address management table.
For example, after replacement, the file management table is:
Name base address Size
Password.txt 0x0800 81AC 2Kbyte
Index.html 0x0801 A00B 1Kbyte
Test.doc 0x0800 0FED 4Kbyte
according to the embodiment, the file names are compared, so that the user is prevented from overwriting, and meanwhile, only the data in the file management table is deleted without erasing the data in the storage medium without the file system during the deletion operation, so that the erasing times of the storage medium without the file system are reduced, and the service life of the storage equipment is ensured.
As an implementation manner, in this embodiment, the storage space management database further includes at least: a deleted file management table;
after the searching whether the file name of the file to be stored exists in the file management table, the method further comprises:
if yes, feeding back confirmation information whether to replace the file;
responding to the confirmation information to carry out file replacement, deleting the file information which is the same as the file name of the file to be stored in the file management table, and recording the deleted file information in the deleted file management table;
and allocating a specified storage address to the file to be stored according to the free storage address management table.
In this embodiment, the storage space management database further includes a deleted file management table for recording the file name, storage address, file size, and deletion time of the deleted file.
In response to a file replacement confirmation instruction of a user, deleting file information which is the same as the file name of the file to be stored in the file management table, and recording the deleted file information in the deleted file management table;
and allocating a designated storage address to the file to be stored according to an idle storage address management table.
As an implementation manner, in this embodiment, the method further includes: according to a preset time period and according to the deletion time sequence of the deleted files, the deleted file information in the deleted file management table in the storage medium is erased, and the address space occupied by the deleted files is increased in the free storage address management table.
In this embodiment, for example, when a week is a period, the information of the deleted files in the deleted file management table in the storage medium is erased according to the deletion time sequence of the deleted files, and the address space occupied by the deleted files is added to the free storage address management table.
According to the embodiment, the deleted file management table is established to inquire the files deleted by the user, and the deleted files can be extracted by inquiring the deleted file management table, so that the operations of overwriting, mistaken deletion and the like are avoided.
Fig. 2 is a schematic structural diagram of a file management system for a storage medium without a file system according to an embodiment of the present invention, and the technical solution of this embodiment is applicable to a file management method for a storage medium without a file system for a device, and the system can execute the file management method for a storage medium without a file system according to any of the above embodiments and is configured in a terminal.
The present embodiment provides a file management system 10 for a non-file system storage medium, comprising: a database creation program module 11, a file information acquisition program module 12, a file name search program module 13, a specified storage address assignment program module 14, and a file to be stored write program module 15.
The database creating program module 11 is configured to create a storage space management database in the storage medium, where the storage space management database at least includes the following tables: establishing a file management table and an idle storage address management table according to the file name, the storage address and the file size of the existing data in the storage medium; the file information obtaining program module 12 is configured to respond to a write instruction of a file to be stored, and obtain a file name and a file size of the file to be stored; the file name searching program module 13 is configured to search whether a file name of the file to be stored exists in the file management table; the designated storage address allocation program module 14 is configured to allocate a designated storage address to the file to be stored according to the free storage address management table if the file name of the file to be stored does not exist; the program module 15 for writing the file to be stored is configured to record a file name, a storage address, and a file size of the file to be stored in the file management table, and write the file to be stored into the specified storage address.
Further, the system further comprises: the replacement information feedback program module is used for feeding back confirmation information whether to replace the file if the file name of the file to be stored exists;
the file information deleting program module is used for responding to the confirmation information to replace the file and deleting the file information which is the same as the file name of the file to be stored in the file management table;
and the assigned storage address allocation program module is used for increasing the address space occupied by the deleted file in the idle storage address management table and allocating an assigned storage address to the file to be stored according to the idle storage address management table.
Further, the storage space management database at least further comprises: a deleted file management table;
the system further comprises: the replacement information feedback program module is used for feeding back confirmation information whether to replace the file if the file name of the file to be stored exists;
a file information deleting program module, configured to perform file replacement in response to the confirmation information, delete file information in the file management table that is the same as the file name of the file to be stored, and record the deleted file information in the deleted file management table;
and the assigned storage address allocation program module is used for allocating an assigned storage address to the file to be stored according to the idle storage address management table.
Further, the system further comprises:
and the file information erasing program module is used for erasing the deleted file information in the deleted file management table in the storage medium according to a preset time period and the deletion time sequence of the deleted files, and increasing the address space occupied by the deleted files in the idle storage address management table.
Further, the writing the data of the file to be stored to the specified storage address of the storage space includes:
erasing data of a specified storage address in the storage medium;
and writing the data of the file to be stored into the specified storage address of the storage medium.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the file management method for the storage medium without the file system in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
establishing a storage space management database in the storage medium, wherein the storage space management database at least comprises the following tables: establishing a file management table and an idle storage address management table according to the file name, the storage address and the file size of the existing data in the storage medium;
responding to a writing instruction of a file to be stored, and acquiring a file name and a file size of the file to be stored;
searching whether the file name of the file to be stored exists in the file management table;
if the file to be stored does not exist, allocating a designated storage address for the file to be stored according to the free storage address management table;
and recording the file name, the storage address and the file size of the file to be stored in the file management table, and writing the file to be stored into the specified storage address.
As a non-volatile computer readable storage medium, may be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the methods of testing software in embodiments of the present invention. One or more program instructions are stored in a non-transitory computer readable storage medium, which when executed by a processor, perform a file management method for a filesystem-less storage medium in any of the method embodiments described above.
The non-volatile computer-readable storage medium may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a device of test software, and the like. Further, the non-volatile computer-readable storage medium may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the non-transitory computer readable storage medium optionally includes memory located remotely from the processor, which may be connected to the means for testing software over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
An embodiment of the present invention further provides an electronic device, which includes: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the file management method for a filesystem-less storage medium of any embodiment of the invention.
The client of the embodiment of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) Other electronic devices with memory function.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (4)

1. A file management method for a file-system-less storage medium including a file-system-less hard disk, a usb disk, and a memory card, the method comprising:
establishing a storage space management database in the storage medium, wherein the storage space management database at least comprises the following tables: establishing a file management table and an idle storage address management table according to the file name, the storage address and the file size of the existing data in the storage medium;
responding to a writing instruction of a file to be stored, and acquiring a file name and a file size of the file to be stored;
searching whether the file name of the file to be stored exists in the file management table;
if the file to be stored does not exist, allocating a designated storage address for the file to be stored according to the free storage address management table;
recording the file name, the storage address and the file size of the file to be stored in the file management table, and writing the file to be stored into the specified storage address;
the storage space management database at least further comprises: a deleted file management table for recording deleted file information including a file name, a storage address, a file size, and a deletion time;
after the searching whether the file name of the file to be stored exists in the file management table, the method further comprises:
if yes, feeding back confirmation information whether to replace the file;
responding to the confirmation information to carry out file replacement, deleting the file information which is the same as the file name of the file to be stored in the file management table, and recording the deleted file information in the deleted file management table;
allocating a designated storage address to the file to be stored according to the free storage address management table;
according to a preset time period and according to the deletion time sequence of the deleted files, the deleted file information in the deleted file management table in the storage medium is erased, and the address space occupied by the deleted files is increased in the free storage address management table.
2. The method of claim 1, wherein the writing the file to be stored to the specified storage address comprises:
erasing data of a specified storage address in the storage medium;
and writing the data of the file to be stored into the specified storage address of the storage medium.
3. A file management system for a file-system-less storage medium including a file-system-less hard disk, a usb-disk and a memory card, the management system comprising:
a database establishing program module, configured to establish a storage space management database in the storage medium, where the storage space management database at least includes the following tables: establishing a file management table and an idle storage address management table according to the file name, the storage address and the file size of the existing data in the storage medium;
the file information acquisition program module is used for responding to a writing instruction of a file to be stored, and acquiring the file name and the file size of the file to be stored;
the file name searching program module is used for searching whether the file name of the file to be stored exists in the file management table or not;
the appointed storage address allocation program module is used for allocating appointed storage addresses for the files to be stored according to the idle storage address management table if the file names of the files to be stored do not exist;
a program module for writing the file to be stored, which is used for recording the file name, the storage address and the file size of the file to be stored in the file management table and writing the file to be stored into the specified storage address;
the storage space management database at least further comprises: a deleted file management table for recording deleted file information including a file name, a storage address, a file size, and a deletion time;
the system further comprises: the replacement information feedback program module is used for feeding back confirmation information whether to replace the file if the file name of the file to be stored exists;
a file information deleting program module, configured to perform file replacement in response to the confirmation information, delete file information in the file management table that is the same as the file name of the file to be stored, and record the deleted file information in the deleted file management table;
the appointed storage address allocation program module is used for allocating appointed storage addresses to the files to be stored according to the idle storage address management table;
and the file information erasing program module is used for erasing the deleted file information in the deleted file management table in the storage medium according to a preset time period and the deletion time sequence of the deleted files, and increasing the address space occupied by the deleted files in the idle storage address management table.
4. The system of claim 3, wherein the writing the file to be stored to the specified storage address comprises:
erasing data of a specified storage address in the storage medium;
and writing the data of the file to be stored into 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 CN109189772A (en) 2019-01-11
CN109189772B true 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)

Families Citing this family (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
CN113495681A (en) * 2020-04-07 2021-10-12 杭州萤石软件有限公司 NAND FLASH file data access method, device and storage medium
CN114327246B (en) * 2020-10-12 2024-02-27 深圳爱图仕创新科技股份有限公司 Method for storing data in storage medium, storage medium and computer device
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
CN115952140B (en) * 2023-01-09 2023-10-27 华苏数联科技有限公司 Big data-based computer resource management system and method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399826A (en) * 2013-08-15 2013-11-20 南京新联电子股份有限公司 Data storage method based on NOR FLASH

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426586B (en) * 2011-10-25 2017-02-08 厦门雅迅网络股份有限公司 FAT (file allocation table) file storage method in embedded system
CN103577121B (en) * 2013-11-05 2016-07-06 中船重工(武汉)凌久电子有限责任公司 A kind of highly reliable linear file access method based on Nand Flash
CN104866428B (en) * 2014-02-21 2018-08-31 联想(北京)有限公司 Data access method and data access device
CN105243071A (en) * 2014-07-12 2016-01-13 航天恒星科技有限公司 Retrievable file access method suitable for no-file system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399826A (en) * 2013-08-15 2013-11-20 南京新联电子股份有限公司 Data storage method based on NOR FLASH

Also Published As

Publication number Publication date
CN109189772A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109189772B (en) File management method and system for storage medium without file system
CN108647151B (en) Full flash system metadata disk-dropping method, device, equipment and storage medium
WO2017185579A1 (en) Method and apparatus for data storage
CN101983376B (en) Access device, information recording device, information recording system, file management method, and program
EP1936508A1 (en) Information recording medium access apparatus, and data recording method
US10585589B2 (en) Data collation method, storage device, storage controller, and storage array
CN109804359A (en) For the system and method by write back data to storage equipment
US20170364300A1 (en) Controller, flash memory apparatus, method for identifying data block stability, and method for storing data in flash memory apparatus
CN108628542B (en) File merging method and controller
CN108614837B (en) File storage and retrieval method and device
CN105094695A (en) Storing method and system
CN109240607B (en) File reading method and device
CN111506269A (en) Disk storage space allocation method, device, equipment and storage medium
CN110908927A (en) Data storage device and method for deleting name space thereof
US20070038835A1 (en) Device for transmitting data and method for the same
CN111143290A (en) Memory management method, system, equipment and computer readable storage medium
CN114816240A (en) Data writing method and data reading method
CN113641630A (en) FLASH memory
CN104133640B (en) From the fast quick-recovery of dormancy
CN115934002B (en) Solid state disk access method, solid state disk, storage system and cloud server
US11132134B2 (en) Flexible over-provisioning of storage space within solid-state storage devices (SSDs)
CN103544254A (en) Method and device for managing data
KR101643278B1 (en) Method, apparatus, and computer program stored in computer readable medium for managing storage server in database system
CN113296700A (en) Storage space management method and device and server
CN109241011B (en) Virtual machine file processing method and device

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