TWI459196B - Log-structured file system - Google Patents

Log-structured file system Download PDF

Info

Publication number
TWI459196B
TWI459196B TW099122088A TW99122088A TWI459196B TW I459196 B TWI459196 B TW I459196B TW 099122088 A TW099122088 A TW 099122088A TW 99122088 A TW99122088 A TW 99122088A TW I459196 B TWI459196 B TW I459196B
Authority
TW
Taiwan
Prior art keywords
file
command
flash memory
data table
index data
Prior art date
Application number
TW099122088A
Other languages
Chinese (zh)
Other versions
TW201202927A (en
Original Assignee
Innostor Technology Corp
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 Innostor Technology Corp filed Critical Innostor Technology Corp
Priority to TW099122088A priority Critical patent/TWI459196B/en
Publication of TW201202927A publication Critical patent/TW201202927A/en
Application granted granted Critical
Publication of TWI459196B publication Critical patent/TWI459196B/en

Links

Description

快閃記憶體用之提高資料存取效能的登入-結構化檔案系統Login for Flash Memory with Improved Data Access Performance - Structured File System

本發明係關於一種快閃記憶體用之登入結構化檔案系統(LOG-STRUCTURED FILE SYSTEM),尤指一種快閃記憶體用之提高資料存取效能的登入結構化檔案系統(LOG-STRUCTURED FILE SYSTEM)。The invention relates to a login structured file system (LOG-STRUCTURED FILE SYSTEM) for flash memory, in particular to a login structured file system for improving data access performance in a flash memory (LOG-STRUCTURED FILE SYSTEM) ).

電腦主機中的硬碟是電腦資料儲存中心,隨著硬碟容量加大,作業系統亦搭配不同的檔案管理系統,以發揮硬碟的最大存取效率,如早期的FAT16、FAT32檔案管理系統至現今的NTFS檔案管理系統;其中該NTFS較FAT系列的檔案管理系統最大的不同在於,FAT系統採用「檔案配置表(File Allocation Table)」來管理磁碟與檔案,但NTFS檔案管理系理則是使用「管理檔案表(Master File Table;MFT)」,如第五圖所示,管理檔案表主要包含有表頭、檔案或資料夾名稱、檔案資料、檔案或資料夾相關資訊、建立日期等等。當作業系統產生新增資料欲儲存至硬碟時,NTFS檔案管理系統對該新增資料產生一檔案管理表,一併與檔案或資料夾儲存至硬碟中。一般來說,為提高硬碟檔案的儲存效率,硬碟最內圈會規劃為索引檔案儲存區,令讀寫頭最快地找到作業系統欲讀取檔案的索引資料,再依據索引資料儲存位址,讀出此一索引資料對應的資料檔案。The hard disk in the computer host is a computer data storage center. As the hard disk capacity increases, the operating system is also equipped with different file management systems to maximize the access efficiency of the hard disk, such as the early FAT16 and FAT32 file management systems. Today's NTFS file management system; the biggest difference between the NTFS and the FAT series file management system is that the FAT system uses the "File Allocation Table" to manage disks and files, but the NTFS file management system is Use "Master File Table (MFT)". As shown in the fifth figure, the management file table mainly contains the header, file or folder name, file data, file or folder related information, creation date, etc. . When the operating system generates new data to be stored on the hard disk, the NTFS file management system generates a file management table for the newly added data, and stores the file or folder on the hard disk together. Generally speaking, in order to improve the storage efficiency of the hard disk file, the innermost circle of the hard disk will be planned as an index file storage area, so that the head can quickly find the index data of the file to be read by the operating system, and then according to the index data storage bit. Address, read the data file corresponding to this index data.

然而,管理檔案表亦為硬碟中的一個檔案,隨著檔案或資料夾數量愈多,該管理檔案表數量亦相對變多,使得記錄管理檔案表的檔案容量增大,一旦檔案容量超過硬碟的配置單元(在NTFS中可設定在512B至4096KB)即有可能面臨分割儲存處理,而造成檔案破碎不連續;如此一來,即有可能降低作業系統存取硬碟檔案或資料夾的效能。However, the management file list is also a file on the hard disk. As the number of files or folders increases, the number of management file tables becomes relatively large, which increases the file capacity of the record management file table. The configuration unit of the disc (which can be set to 512B to 4096KB in NTFS) may face split storage processing and cause file fragmentation to be discontinuous; thus, it is possible to reduce the performance of the operating system to access hard disk files or folders. .

至於檔案或資料夾的資料容量超過硬碟設定配置單元時,會有機會在分割後儲存在不連續配置單元中,造成破碎而不連續檔案,但因為該些資訊會儲存在管理檔案表中,因此硬碟配合NTFS檔案管理系統,對於不連續檔案或資料夾的讀取效能並不會有顯著降低之問題。As for the data capacity of the file or folder exceeds the hard disk setting configuration unit, there will be a chance to store in the discontinuous configuration unit after the split, resulting in broken and non-continuous files, but because the information is stored in the management file table, Therefore, the hard disk cooperates with the NTFS file management system, and the read performance of the non-contiguous files or folders is not significantly reduced.

由上述說明可知,就硬碟存取效能來看NTFS檔案管理系統配合硬碟結構及其讀寫頭的控制方式,提供最佳讀寫檔案或資料夾的方式,然而卻無法一體適用於目前已相當普及化的快閃記憶裝置的檔案或資料夾的存取管理上。其主要原因在於快閃記憶裝置的資料儲存結構與硬碟完全不同,其實際記憶結構係由陣列式記憶單元組成,因此實際的記憶結構與硬碟已大不相同,雖較硬碟具有更輕薄的體積,但由於快閃記憶裝置的特殊記憶結構,亦造成二項個先天限制:其一係不能直接覆寫資料,其二為抺除次數有限(約為十萬次,但視各快閃記憶體類型而定,例如MLC為一萬次,而SLC為十萬次);是以,快閃記憶裝置即必須採用配合使用不同的檔案管系統。It can be seen from the above description that the NTFS file management system cooperates with the hard disk structure and the control mode of the read/write head to provide the best way to read and write files or folders in terms of hard disk access performance, but it cannot be applied to the current It is quite popular for the access management of files or folders of flash memory devices. The main reason is that the data storage structure of the flash memory device is completely different from that of the hard disk. The actual memory structure is composed of array memory cells, so the actual memory structure is quite different from that of the hard disk, although it is thinner than the hard disk. The size of the flash memory device, due to the special memory structure of the flash memory device, also caused two congenital restrictions: one can not directly overwrite the data, and the other is the limited number of erasures (about 100,000 times, but each flash Depending on the type of memory, for example, MLC is 10,000 times and SLC is 100,000 times. Therefore, flash memory devices must use different file management systems.

以下謹進一步說明目前快閃記憶裝置存取檔案或資料夾之方法。The following is a further description of the current method of accessing files or folders by a flash memory device.

如第六A圖所示,當作業系統對快閃記憶裝置要求儲存新增資料命令時,其檔案管理系統會如NTFS產生一包含有檔案或資料夾名稱及相關資訊的索引資料表,此時該索引資料表會與檔案或資料夾一併儲存至快閃記憶裝置的快閃記憶區(20)中。當作業系統欲刪除快閃記憶裝置其中一筆或數筆檔案(檔案B及E)或資料夾時,同樣會先讀取索引資料表,待取得對應檔案或資料夾所儲存的資料頁後,即能將該資料頁的區塊(21)及其索引資料表予以抺除,令該些區塊(21)形成自由區塊,供下筆新增檔案或資料夾儲存用,如第六B圖所示,如此一來,若下筆檔案(檔案G及H)或資料夾容量大於該些區塊,則必需加以分割儲存至其它自由區塊中,造成不連續檔案(檔案H1及H2)或資料夾。As shown in FIG. 6A, when the operating system requests the flash memory device to store the new data command, the file management system generates an index data table including the file name or the folder name and related information, such as NTFS. The index data sheet is stored with the file or folder in the flash memory area (20) of the flash memory device. When the operating system wants to delete one or several files (files B and E) or folders of the flash memory device, the index data table will also be read first, and after the data page stored in the corresponding file or folder is obtained, The block (21) and its index data table of the data page can be deleted, so that the blocks (21) form free blocks for the storage of new files or folders, as shown in Figure B. In this way, if the file size (files G and H) or the folder capacity is larger than the blocks, it must be divided and stored in other free blocks, resulting in discontinuous files (files H1 and H2) or folders. .

由於快閃記憶裝置是由複數區塊呈陣列排列而成,且無讀取頭設計,雖然其管理系統配合建立索引資料表以進行檔案或資料夾的存取之用,但並無助於提升讀取不連續檔案或資料夾的效能。隨著快閃記憶裝置容量增大,使用者儲取單筆大資料容量的檔案或資料夾的機會變高,如何能建立有效的檔案管理系統,以提高檔案存取效能,將是有助於更高容量快閃記憶裝置的發展。Since the flash memory device is arranged in an array of a plurality of blocks and has no read head design, although the management system cooperates with the establishment of an index data table for accessing files or folders, it does not contribute to improvement. Read the performance of discrete files or folders. As the capacity of flash memory devices increases, the chances of users storing files or folders with a single large data capacity become high. How to establish an effective file management system to improve file access performance will help The development of higher capacity flash memory devices.

有鑑於上述現有快閃記憶裝置之檔案管理系統缺陷,本發明主要目的係提供一種快閃記憶體用之提高資料存取效能的登入結構化檔案系統(LOG-STRUCTURED FILE SYSTEM)。In view of the above-mentioned deficiencies of the file management system of the existing flash memory device, the main object of the present invention is to provide a LOG-STRUCTURED FILE SYSTEM for improving the data access performance of the flash memory.

欲達上述目的所使用的主要技術手段係令該登入結構 化檔案系統包含有:一命令解碼模組,係解讀來自上層作業系統的指令,包含新增及刪除命令;其中命令解碼模組於判斷作業系統為刪除命令時,即以移動命令取代刪除命令;一索引資料表建立模組,係連結至命令解碼模組,並於判斷新增命令時,建立與新增檔案或資料夾的索引資料表,該索引資料表係包含有檔案或資料夾名稱及相關資料,其中相關資料包含有建立日期及建立來源;一順序存取模組,係連結至命令解碼模組及索引資料表建立模組,於判斷新增命令時,將新增檔案或資料夾資料及其索引資料表一併存儲至該快閃記憶區的最後區塊中;於判斷刪除命令為移動命令時,變更目標檔案或資料夾的索引資料表的建立來源;一自由區塊整併模組,係連結至順序存取模組,並將變更過索引資料表之建立來源的對應檔案或資料夾全數刪除。The main technical means used to achieve the above purpose is to enable the login structure. The file system includes: a command decoding module, which interprets instructions from the upper operating system, including new and delete commands; wherein the command decoding module replaces the delete command with a move command when determining that the operating system is a delete command; An index data table establishing module is connected to the command decoding module, and when determining the new command, establishing an index data table with the newly added file or folder, the index data table includes the file or folder name and Relevant information, including relevant date and source of establishment; a sequential access module is linked to the command decoding module and the index data table to create a module, when the new command is judged, a new file or folder will be added. The data and its index data table are stored together in the last block of the flash memory area; when the delete command is a move command, the source of the index data table of the target file or folder is changed; a free block is integrated. The module is linked to the sequential access module, and the corresponding file or folder whose source of the changed index table is changed is deleted.

上述本發明提供快閃記憶裝置一種能夠管理檔案或資料夾儲存於連續性區塊中,主要是當作業系統下達刪除其中任一筆檔案或資料夾時,先變更索引資料表的建立來源,令作業系統無法在原目錄下找到該筆檔案或資料夾,就使用者來說快閃記憶裝置確實已無儲存在該筆檔案或資料夾;再者,本發明的自由區塊整併模組會在特定時間,一併刪除變更過建立來源的索引資料表及其對應的檔案或資料夾,以釋放更多連續的自由區塊;是以,本發明的檔案管理系統不因直接刪除檔案或資料夾釋放的自由區塊, 造成下筆新增檔案或資料夾存入時,因為自由區塊容量不足,而無法儲存在連續區塊中;再者,因為本發明並非在作業系統下達刪除命令時,即對區塊進行抺除,故採用本發明的快閃記憶裝置達到抺除次數上限較慢,相對提高快閃記憶裝置的使用壽命。The above invention provides a flash memory device capable of managing files or folders stored in a continuous block, mainly when the operating system releases and deletes any of the files or folders, first changing the source of the index data table to make the operation The system cannot find the file or folder in the original directory, and the flash memory device is not stored in the file or folder for the user; furthermore, the free block splicing module of the present invention will be specific Time, delete the changed index data table and its corresponding file or folder to release more consecutive free blocks; therefore, the file management system of the present invention does not release files or folders directly Free block, When the new file or folder is saved, the free block cannot be stored in the contiguous block because the free block capacity is insufficient. Moreover, because the present invention does not release the delete command in the operating system, the block is removed. Therefore, the flash memory device of the present invention achieves a slower upper limit of the number of erasures, and relatively increases the service life of the flash memory device.

首先請參閱第一圖及第二圖所示,係為本發明一種快閃記憶體用之提高資料存取效能的登入-結構化檔案系統(LOG-STRUCTURED FILE SYSTEM)的功能方塊圖及流程圖,其中該登入-結構化檔案系統(10)係連結至由陣列自由區塊組成的一快閃記憶區(20),並包含:一命令解碼模組(11),係解讀來自上層作業系統(30)的指令(S1),包含新增及刪除命令;其中命令解碼模組(11)於判斷作業系統(30)為刪除命令時(S2),即以移動命令取代刪除命令(S3);一索引資料表建立模組(12),係連結至命令解碼模組(11),並於判斷新增命令時(S4),建立與新增檔案或資料夾的索引資料表,該索引資料表係包含有檔案或資料夾名稱及相關資料(S7),其中相關資料包含有建立日期及建立來源;一順序存取模組(13),係連結至命令解碼模組(11)及索引資料表建立模組(12),於判斷新增命令時(S4),當有自由區塊狀態下(S5),將新增檔案或資料夾資料及其索引資料表自快閃記憶區(20)的最後自由區塊開始存儲;於判斷刪除命 令為移動命令時(S2),變更目標檔案或資料夾的索引資料表的建立來源(S3),例如將原本E:\B.txt改為E:\FILE1\B.txt;一自由區塊整併模組(14),係連結至順序存取模組(13),並將變更過索引資料表之建立來源的對應檔案或資料夾全數刪除;於本實施例中,該自由區塊整併模組(14)在新增命令發生時,該快閃記憶區(20)又無自由區域下始執行(S6)。First, please refer to the first figure and the second figure, which is a functional block diagram and a flow chart of a login-structured file system (LOG-STRUCTURED FILE SYSTEM) for improving data access performance of the flash memory of the present invention. The login-structured file system (10) is coupled to a flash memory area (20) consisting of an array free block, and includes: a command decoding module (11), which is interpreted from the upper layer operating system ( 30) The instruction (S1) includes a new and delete command; wherein the command decoding module (11) determines that the operating system (30) is a delete command (S2), that is, replaces the delete command with the move command (S3); The index data table establishing module (12) is connected to the command decoding module (11), and when determining the new command (S4), establishing an index data table with the newly added file or folder, the index data table Contains the file or folder name and related information (S7), wherein the related data includes the date of creation and the source of the establishment; a sequential access module (13) is linked to the command decoding module (11) and the index data table is established. Module (12), when judging the new command (S4), when there is a free block The state (S5), add a file or folder information and the index table from the last free memory blocks of the flash zone (20) to begin storing; Analyzing deleted in order When the command is moved (S2), change the source of the index data table of the target file or folder (S3), for example, change the original E:\B.txt to E:\FILE1\B.txt; a free block The merging module (14) is linked to the sequential access module (13), and deletes the corresponding file or folder whose source of the index data table is changed. In this embodiment, the free block is completely When the new command occurs, the module (14) executes the flash memory area (20) without a free area (S6).

請配合參閱第三A至C圖所示,進一步說明本發明於作業系統下達新增及刪除命令時,快閃記憶裝置內部區塊儲存狀態。Please refer to the third A to C diagrams to further illustrate the storage state of the internal block of the flash memory device when the invention adds a new and delete command to the operating system.

首先如第三A圖所示,當作業系統下達刪除一檔案B及E命令時,該命令解碼模組會將判斷為刪除命令,而將刪除命令轉為移動命令,以將該檔案B和E的索引資料表內檔案相關資訊的建立來源加以變更,但不對儲存檔案B及E的區塊(21)進行抺除,因此快閃記憶裝區(20)將不會於每次收到刪除命令,即釋放出許多連續的自由區塊(21)。如此一來,使用者透過作業系統即無法在原目錄下找到該筆檔案或資料夾,就使用者來說快閃記憶裝置確實已無儲存在該筆檔案或資料夾。First, as shown in the third figure A, when the operating system releases the delete file A and E commands, the command decoding module will judge the delete command, and the delete command into the move command to the file B and E. The source of the file related information in the index data table is changed, but the block (21) storing the files B and E is not deleted, so the flash memory area (20) will not receive the delete command every time. That is, many continuous free blocks (21) are released. In this way, the user cannot find the file or folder in the original directory through the operating system, and the user does not have the flash memory device stored in the file or folder.

再如第三B圖所示,當作業系統下達新增一檔案G及H命令時,該命令解碼模組合判斷為新增命令,而建立該檔案G及H的索引資料表,由於快閃記憶區(20)並無不連續自由區塊(21),故可將檔案G、H順序儲存在連續的自由區塊中;又除非檔案G或H資料容量大於目前自由區塊容量,否則新增檔案均可連續地儲存於快閃記憶區內。因此,若快閃資料區已無自由區塊時(代表已滿),可作為自由區塊整併模組啟動整併自由區塊的時間點,或達到應預設整併時間點,如第三C圖所示,會將變更過建立來源的索引資料表及其對應的檔案B及E或資料夾予以刪除,即將儲存檔案B及E的區塊予以抺除,如此將會出現不連續自由區域,故再進一步將不連續自由區塊加以整併為連續區塊。As shown in the third figure B, when the operating system releases a new file G and H commands, the command decoding mode combination is judged to be a new command, and the index data table of the files G and H is established, due to the flash memory. There is no discontinuous free block (21) in the area (20), so the files G and H can be stored in consecutive free blocks in sequence; and unless the file G or H data capacity is larger than the current free block capacity, it is added. Files can be stored continuously in the flash memory area. Therefore, if there is no free block in the flash data area (representing full), it can be used as a free block block to start the time of the free block, or to reach the preset time point, such as As shown in Figure 3C, the index data table with the changed source and its corresponding file B and E or folder will be deleted. The blocks for storing files B and E will be deleted, so that there will be discontinuous freedom. Area, so further discontinuous free blocks are consolidated into contiguous blocks.

請配合參閱第四圖所示,係為本發明快閃記憶體用之提高資料存取效能的登入-結構化檔案系統(10a)的第二較佳實施例,其相較第一較佳實施例包含有一快取記憶區(22),該快取記憶區(22)係自該快取記憶區(20)中劃分一塊,專作為儲存索引資料表用,並於電腦關機時將快取記憶區(22)內的索引資料表回存至快閃記憶區(20),因此可加速作業系統讀取或刪除檔案的效能,此外由於快取記憶區(22)不作為檔案或資料夾儲存用,亦可減少因為快取記憶區(22)滿了而必須回存至快閃記憶區(20)的次數。Please refer to the fourth figure, which is a second preferred embodiment of the login-structured file system (10a) for improving data access performance for the flash memory of the present invention, which is compared with the first preferred embodiment. The example includes a cache memory area (22). The cache memory area (22) is divided into one block from the cache memory area (20), and is used for storing the index data table, and will cache the memory when the computer is turned off. The index data table in the area (22) is restored to the flash memory area (20), thereby speeding up the performance of the operating system for reading or deleting files, and since the cache memory area (22) is not stored as a file or folder, It is also possible to reduce the number of times that the memory area (22) must be restored to the flash memory area (20) because the cache memory area (22) is full.

由於電腦有可能不正常關機而使得快取記憶區的索引資料表來不及回存至快閃記憶區,故本發明進一步增設一工作狀態過濾模組,其係連結至快閃記憶區,以過濾目前包含有特定檔案格式(.doc/.exl/.txt/.ppt等)的索引資料表,若判斷為該些檔案格式者,不待關機後即自快取記憶區儲入快閃記憶區中;如此一來,即能避免不正常關機,使得正在作業中建立的檔案消失。Since the computer may not be properly shut down, the index data table of the cache memory area may not be saved back to the flash memory area, so the present invention further adds a working state filtering module, which is connected to the flash memory area to filter the current An index data table containing a specific file format (.doc/.exl/.txt/.ppt, etc.), if judged to be those file formats, is stored in the flash memory area from the cache memory area after being turned off; In this way, abnormal shutdown can be avoided, and the file created in the job disappears.

綜上所述,本發明應用於快閃記憶裝置的檔案管理系統,不因每次刪除檔案而釋放不連續自由區塊,而能有效地管理檔案或資料夾儲存於連續性區塊中;再者,因為本發明並非在作業系統下達刪除命令時,即對區塊進行抺除,故採用本發明的快閃記憶裝置達到抺除次數上限較慢,相對提高快閃記憶裝置的使用壽命。In summary, the present invention is applied to a file management system of a flash memory device, and does not release a discontinuous free block every time a file is deleted, but can effectively manage files or folders stored in a continuous block; Because the present invention does not delete the block when the delete command is issued in the operating system, the flash memory device of the present invention achieves a lower limit of the number of erasures and relatively increases the service life of the flash memory device.

(10)(10a)...檔案管理系統(10) (10a). . . File management system

(11)...命令解碼模組(11). . . Command decoding module

(12)...索引資料表建立模組(12). . . Index data table creation module

(13)...順序存取模組(13). . . Sequential access module

(14)‧‧‧自由區塊整併模組(14) ‧‧‧Free block consolidation module

(15)‧‧‧工作狀態過濾模組(15)‧‧‧Work status filter module

(20)‧‧‧快閃記憶區(20)‧‧‧Flash memory area

(21)‧‧‧區塊(21) ‧‧‧ Blocks

(22)‧‧‧快取記憶區(22)‧‧‧Cache memory area

(30)‧‧‧作業系統(30) ‧‧‧Operating system

第一圖:係本發明登入-結構化檔案系統第一較佳實施例的功能方塊圖。The first figure is a functional block diagram of a first preferred embodiment of the login-structured file system of the present invention.

第二圖:係第一圖各功能方塊圖對應的流程圖。The second figure is a flow chart corresponding to each functional block diagram of the first figure.

第三A至C圖:係本發明於作業系統下達刪除、新増及整併不連續自由區塊的示意圖。The third A to C diagrams are schematic diagrams of the present invention for deleting, new, and non-continuous free blocks in the operating system.

第四圖:係本發明登入-結構化檔案系統第二較佳實施例的功能方塊圖。Figure 4 is a functional block diagram of a second preferred embodiment of the login-structured file system of the present invention.

第五圖:係既有硬碟的NTFS檔案管理系理用管理檔案表結構示意圖。The fifth picture is a schematic diagram of the structure of the management file table of the NTFS file management system with both hard disks.

第六A圖:係快閃記憶裝置檔案管理系統進行刪除檔案的示意圖。Figure 6A: Schematic diagram of deleting files from the flash memory device file management system.

第六B圖:係快閃記憶裝置檔案管理系統進行新增檔案的示意圖。Figure 6B: Schematic diagram of adding files to the flash memory device file management system.

(10)...檔案管理系統(10). . . File management system

(11)...命令解碼模組(11). . . Command decoding module

(12)...索引資料表建立模組(12). . . Index data table creation module

(13)...順序存取模組(13). . . Sequential access module

(14)...自由區塊整併模組(14). . . Free block consolidation module

(20)...快閃記憶區(20). . . Flash memory area

(30)...作業系統(30). . . working system

Claims (5)

一種快閃記憶體用之提高資料存取效能的登入結構化檔案系統,係連結至由陣列自由區塊組成的一快閃記憶區,並包含有:一命令解碼模組,係解讀來自上層作業系統的指令,包含新增及刪除命令;其中命令解碼模組於判斷作業系統為刪除命令時,即以移動命令取代刪除命令;一索引資料表建立模組,係連結至命令解碼模組,並於判斷新增命令時,建立與新增檔案或資料夾的索引資料表,該索引資料表係包含有檔案或資料夾名稱及相關資料;一順序存取模組,係連結至命令解碼模組,於判斷新增命令時,將新增檔案或資料夾資料依序儲入連續自由區塊;於判斷刪除命令為移動命令時,變更目標檔案或資料夾的索引資料表的建立來源;一自由區塊整併模組,係連結至順序存取模組,並將變更過索引資料表之建立來源的對應檔案或資料夾全數刪除。 A login structured file system for improving data access performance in a flash memory is connected to a flash memory area composed of an array free block, and includes: a command decoding module, which is interpreted from the upper layer operation The command of the system includes a new and delete command; wherein the command decode module replaces the delete command with a move command when determining that the operating system is a delete command; and an index data table creation module is coupled to the command decode module, and When judging the new command, the index data table of the newly added file or folder is created, and the index data table includes the file or folder name and related data; a sequential access module is connected to the command decoding module. When judging the new command, the newly added file or folder data is sequentially stored in the continuous free block; when the delete command is the move command, the source of the index data table of the target file or folder is changed; The block merging module is linked to the sequential access module, and the corresponding files or folders of the source of the changed index data table are deleted in full. 如申請專利範圍第1項所述之登入結構化檔案系統,該自由區塊整併模組係於順序存取模組判斷無自由區塊時,將變更過索引資料表之建立來源的對應檔案或資料夾全數刪除。 For example, in the login structured file system described in claim 1, the free block merging module is adapted to the sequential access module to determine that there is no free block, and the corresponding file of the source of the index data table is changed. Or delete all folders. 如申請專利範圍第1或2項所述之登入結構化檔案系統,該快閃記憶區係進一步劃分出一快取記憶區,作為儲存索引資料表之用。 For example, in the login structured file system described in claim 1 or 2, the flash memory area further divides a cache memory area for use as a storage index data table. 如申請專利範圍第3項所述之登入結構化檔案系統,該快閃記憶區於作業系統傳來電腦關機訊號時,將快取記憶區內的索引資料表回存至快閃記憶區。For example, in the login structured file system described in claim 3, the flash memory area returns the index data table in the cache memory area to the flash memory area when the computer system sends a computer shutdown signal. 如申請專利範圍第4項所述之登入結構化檔案系統,該快閃記憶區係進一步包含有一工作狀態過濾模組,以過濾目前包含有特定檔案格式的索引資料表,並於目前已建立有符合該些檔案格式之檔案者,不待關機後即自快取記憶區儲入快閃記憶區中。For example, in the login structured file system described in claim 4, the flash memory system further includes a working status filtering module for filtering an index data table currently containing a specific file format, and has been established at present. Files that match these file formats are stored in the flash memory area from the cache memory area after being turned off.
TW099122088A 2010-07-06 2010-07-06 Log-structured file system TWI459196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099122088A TWI459196B (en) 2010-07-06 2010-07-06 Log-structured file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099122088A TWI459196B (en) 2010-07-06 2010-07-06 Log-structured file system

Publications (2)

Publication Number Publication Date
TW201202927A TW201202927A (en) 2012-01-16
TWI459196B true TWI459196B (en) 2014-11-01

Family

ID=46756263

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099122088A TWI459196B (en) 2010-07-06 2010-07-06 Log-structured file system

Country Status (1)

Country Link
TW (1) TWI459196B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI476680B (en) * 2012-02-29 2015-03-11 Innostor Technology Corp Archives System for File Management of Flash Memory

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060020745A1 (en) * 2004-07-21 2006-01-26 Conley Kevin M Fat analysis for optimized sequential cluster management
TW200705177A (en) * 2005-07-19 2007-02-01 Benq Corp Methods, systems and computer-readable storage medium for storage space management
TW200951711A (en) * 2008-06-02 2009-12-16 A Data Technology Co Ltd Method for memory space management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060020745A1 (en) * 2004-07-21 2006-01-26 Conley Kevin M Fat analysis for optimized sequential cluster management
TW200705177A (en) * 2005-07-19 2007-02-01 Benq Corp Methods, systems and computer-readable storage medium for storage space management
TW200951711A (en) * 2008-06-02 2009-12-16 A Data Technology Co Ltd Method for memory space management

Also Published As

Publication number Publication date
TW201202927A (en) 2012-01-16

Similar Documents

Publication Publication Date Title
JP5060876B2 (en) Storage system and storage system power consumption reduction method
US8510504B2 (en) SMR storage device with user controls and access to status information and parameter settings
US8380929B2 (en) Hierarchical storage management for database systems
JP5975473B2 (en) Backup method, restore method, storage system, and program
US7792882B2 (en) Method and system for block allocation for hybrid drives
JP5314158B2 (en) Method and computer readable medium for prestaging data based on dynamic storage tiering configuration
TW201619971A (en) Green nand SSD application and driver
US7987328B2 (en) Data archive system
KR20100122720A (en) Method of read/write performance of non-volatile data storage device
CN108628542B (en) File merging method and controller
WO2021082422A1 (en) Compatibility processing method, system and device for space reclamation of storage system
JP2012113789A (en) Hard disk drive device and processing device thereof
JP2006313531A (en) File management system
JP2005202942A (en) Information recording medium, data processor and data processing method
JP2008299559A (en) Storage system and data transfer method for storage system
TWI459196B (en) Log-structured file system
JP2015014963A (en) Storage control apparatus, control program, and control method
US20100169555A1 (en) Method of writing data into flash memory based on file system
JP2007249728A (en) Disk array device
US20100131469A1 (en) Storage management device and file deletion control method
JP2008262452A (en) Cache method of recording device, and recording device
KR20130086694A (en) Method for file management using file system adapted to non-volatile memory
CN105630692A (en) File storage system storing file directory by using MRAM
CN105354294A (en) Nested file management system and method
TWI476680B (en) Archives System for File Management of Flash Memory

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees