FILE SYSTEM, AND METHOD FOR STORING AND SEARCHING FOR FILE BY THE SAME
First Claim
1. A file system for storing a file, the file system comprising:
- a conversion unit for creating a name of a file to be stored and converting a created file name into memory block information about a specific memory block;
a storage unit including a plurality of memory blocks, which contains a memory block corresponding to the memory block information converted from the file name, and at least one memory block to store data corresponding to the file name; and
a data management unit for selecting memory block corresponding to the memory block information and the at least one memory block to store the data, storing detailed information about the file and information about the at least one memory block selected to store the data in the memory block corresponding to the memory block information, and storing the data corresponding to file name in the at least one memory block selected to store the data.
1 Assignment
0 Petitions
Accused Products
Abstract
A file system and a method for file storage and file search by the same are provided. All files have unique names in a block-based storage device, such as a hard disk, a flash memory, etc., so that each file is mapped and stored in a one-dimensional storage area. Each file name is matched with a memory block storing data of the corresponding file so that a memory block corresponding to a file name can be found when the file name is input. In addition, through information stored in the found memory block, the data corresponding to the file name can be read from the memory block storing the data or can be stored in a specific memory block.
-
Citations
23 Claims
-
1. A file system for storing a file, the file system comprising:
-
a conversion unit for creating a name of a file to be stored and converting a created file name into memory block information about a specific memory block; a storage unit including a plurality of memory blocks, which contains a memory block corresponding to the memory block information converted from the file name, and at least one memory block to store data corresponding to the file name; and a data management unit for selecting memory block corresponding to the memory block information and the at least one memory block to store the data, storing detailed information about the file and information about the at least one memory block selected to store the data in the memory block corresponding to the memory block information, and storing the data corresponding to file name in the at least one memory block selected to store the data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A file system for searching for a file, the file system comprising:
-
a conversion unit for converting a name of a target file into memory block information about a specific memory block; a storage unit including a plurality of memory blocks, which contains a memory block corresponding to the memory block information, and at least one memory block storing data corresponding to the target file; a data management unit for selecting the memory block corresponding to the memory block information, and when a selected memory block has stored detailed information about the target file and memory block information about the at least one memory block having stored the data corresponding to the target file, reading the data corresponding to the target file from the at least one memory block having stored the data; and an output unit for outputting the read data. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A method for storing a newly-created file in a file system, the method comprising:
-
a name creation step of creating a name of the newly-created file; a conversion step of converting the name of the file into information about a specific memory block; a selection step of selecting a memory block corresponding to converted memory block information and checking if a selected memory block is available; a data block number calculation step of calculating a number of memory blocks required to store data corresponding to the file name when the selected memory block is available; a data block selection step of selecting as many currently available memory blocks as the number of memory blocks obtained through the calculation as data blocks; an information storage step of storing detailed information about the file and memory block information about the currently-selected data blocks in the selected memory block; and a data storage step of storing the data of the file in memory blocks selected as the data blocks. - View Dependent Claims (17, 18, 19, 20)
-
-
21. A method for searching for a target file in a file system, the method comprising:
-
a conversion step of, when a name of a target file is input, converting an input file name into memory block information about a specific memory block; a memory-block-selection step of selecting a memory block corresponding to the memory block information obtained through the conversion; a file-block-determination step of determining if a selected memory block has stored detailed information about a specific file and information about data blocks corresponding to the specific file; a name-extraction step of extracting a name of the specific file from the selected memory block when the selected memory block has stored detailed information about the specific file and information about data blocks corresponding to the specific file; a comparison step of comparing an extracted file name with a name of the target file; a data-block-information-extraction step of extracting information about data blocks from the selected memory block when it is determined that the extracted file name is the same as the name of the target file as a result of the comparison; and a data-read step of reading data corresponding to the target file from memory blocks corresponding to extracted data block information. - View Dependent Claims (22, 23)
-
Specification