KR20060099304A - Method for writing file of mobile communication terminal - Google Patents
Method for writing file of mobile communication terminal Download PDFInfo
- Publication number
- KR20060099304A KR20060099304A KR1020050020676A KR20050020676A KR20060099304A KR 20060099304 A KR20060099304 A KR 20060099304A KR 1020050020676 A KR1020050020676 A KR 1020050020676A KR 20050020676 A KR20050020676 A KR 20050020676A KR 20060099304 A KR20060099304 A KR 20060099304A
- Authority
- KR
- South Korea
- Prior art keywords
- file
- size
- allocated
- efs
- files
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1435—Saving, restoring, recovering or retrying at system level using file system or storage system metadata
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
본 발명은 EFS 영역에 비정상적인 파일이 기록될 수 없도록 하는 이동 통신 단말기의 파일 기록 방법에 관한 것으로, 파일 기록 명령에 따라 기록할 파일의 사이즈와 할당된 EFS 사이즈를 비교하여 상기 파일의 사이즈가 상기 할당된 EFS 사이즈보다 작은 지를 판단하는 과정과; 상기 판단결과 상기 파일의 사이즈가 상기 할당된 EFS 사이즈보다 큰 경우에는 에러 메시지를 출력하여 상기 파일의 기록을 차단하는 과정을 포함하여 이루어지는 것이 바람직하다.The present invention relates to a file recording method of a mobile communication terminal to prevent an abnormal file from being recorded in an EFS area. The file size is allocated by comparing the size of a file to be recorded and the allocated EFS size according to a file recording command. Determining whether it is smaller than the size of the EFS; If the size of the file is larger than the allocated EFS size, the determination result may include outputting an error message to block writing of the file.
EFS 영역, 마스터 파일 디렉토리, 파일 사이즈 EFS area, master file directory, file size
Description
도 1은 EFS 영역에 파일을 기록할 때 업데이트되는 주요 요소를 개략적으로 보인 도면.1 schematically shows the main elements that are updated when writing a file in an EFS area;
도 2는 본 발명의 일 실시예에 따른 이동 통신 단말기의 파일 기록 방법을 설명하기 위한 플로우챠트.2 is a flowchart illustrating a file recording method of a mobile communication terminal according to an embodiment of the present invention.
본 발명은 이동 통신 단말기의 파일 기록 방법에 관한 것으로서, 특히 EFS 영역에 비정상적인 파일이 기록될 수 없도록 하는 이동 통신 단말기의 파일 기록 방법에 관한 것이다.The present invention relates to a file recording method of a mobile communication terminal, and more particularly, to a file recording method of a mobile communication terminal so that an abnormal file cannot be recorded in an EFS area.
종래에는 이동 통신 단말기의 EFS(Embedded File System) 영역에 파일을 기록할 때, 각 모델에 할당된 EFS 사이즈에 상관없이 무조건적으로 파일을 기록하게 된다.Conventionally, when recording a file in the EFS (Embedded File System) area of the mobile communication terminal, the file is unconditionally recorded regardless of the EFS size allocated to each model.
즉, EFS 내에 파일을 기록할 때, 유저(S/W 프로그래머)의 실수로 EFS 사이즈보다 큰 파일이 포함되어 있는 경우에도, EFS는 무조건적으로 기록을 실행한다.That is, when recording a file in the EFS, even if a file larger than the EFS size is included by a user (S / W programmer) mistake, the EFS unconditionally executes the recording.
전술한 바와 같이, 할당된 EFS 사이즈를 초과하는 파일을 EFS 내에 기록하거나, 내부적인 코딩 에러로 파일 사이즈가 커지게 되는 경우, EFS는 더 이상 할당해 줄 공간이 없어지게 되는 데, 단말기 부팅시 fbl_pool(EFS에 저장되어 있는 모든 파일에 대한 모든 정보를 저장하고 있는 테이블)은 더 이상 할당해 줄 공간이 없게 되어서 EFS 에러가 발생되며, 계속적인 리셋을 일으키게 되는 문제점이 있다.As described above, when a file exceeding the allocated EFS size is recorded in the EFS or the file size increases due to an internal coding error, the EFS no longer has space to allocate. There is a problem that the EFS error occurs because there is no more space to allocate all the tables that store all the information about all the files stored in the EFS, causing a continuous reset.
본 발명은 전술한 문제점을 해결하기 위해 안출된 것으로서, 단일의 파일이 EFS 할당량보다 크면 기록 자체를 막고, 여러개의 파일들이 기록되어 지다 EFS 할당량보다 커지게 되면, 마지막에 기록된 파일을 삭제하여 이동 통신 단말기가 정상적인 동작을 수행할 수 있도록 하는 이동 통신 단말기의 파일 기록 방법을 제공함에 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and if a single file is larger than the EFS quota, the recording itself is prevented, and if several files are written and larger than the EFS quota, the last recorded file is deleted and moved. It is an object of the present invention to provide a file recording method of a mobile communication terminal that allows a communication terminal to perform a normal operation.
전술한 목적을 달성하기 위한 본 발명의 일 실시예에 따른 이동 통신 단말기의 파일 기록 방법은, 파일 기록 명령에 따라 기록할 파일의 사이즈와 할당된 EFS 사이즈를 비교하여 상기 파일의 사이즈가 상기 할당된 EFS 사이즈보다 작은 지를 판단하는 과정과; 상기 판단결과 상기 파일의 사이즈가 상기 할당된 EFS 사이즈보다 큰 경우에는 에러 메시지를 출력하여 상기 파일의 기록을 차단하는 과정을 포함하여 이루어지는 것이 바람직하다.According to an aspect of the present invention, there is provided a file recording method of a mobile communication terminal, the size of the file being allocated by comparing the size of the file to be recorded with the allocated EFS size according to a file recording command. Determining whether it is smaller than the EFS size; If the size of the file is larger than the allocated EFS size, the determination result may include outputting an error message to block writing of the file.
나아가, 상기 판단결과 상기 파일의 사이즈가 상기 할당된 EFS 사이즈보다 작은 경우에는, 상기 파일이 기록될 블록(dirfrex)과 인덱싱에 사용될 이름(dirnamx)을 할당하고, 상기 블록의 위치를 해쉬 테이블(dirbukx)에 추가하는 과정과; 상기 할당된 블록(dirfrex) 및 이름(dirnamx)과 업데이트된 블록의 위치를 인덱싱하기 위한 엔트리를 마스터 파일 디렉토리에 추가하고, 상기 엔트리와 상기 파일에 대한 모든 정보를 저장하고 있는 테이블(fbl_pool)을 링크시키는 과정과; 상기 테이블(fbl_pool)이 꽉 차 더 이상 할당할 메모리 영역이 없는 지를 판단하는 과정과; 상기 판단결과 상기 테이블(fbl_pool)이 꽉 차 더 이상 할당할 메모리 영역이 없는 경우에는, 상기 파일과 관련된 파일들을 추출하여, 상기 추출된 파일들에 할당되어 있던 블록(dirfrex) 및 이름(dirnamx)의 할당을 취소하고, 상기 해쉬 테이블(dirbukx)에서 상기 파일들이 기록되어 있는 블록의 위치를 삭제하고, 상기 마스터 파일 디렉토리에서 상기 파일들의 엔트리를 삭제하는 과정과; 상기 마스터 파일 디렉토리와 상기 테이블(fbl_pool)을 참조하여 상기 추출된 파일들을 유효 파일에서 무효 파일로 변경시켜 섹터 상태 테이블을 업데이트하고, 이동 통신 단말기를 리셋시키는 과정을 더 포함하여 이루어지는 것이 바람직하다.Further, if the size of the file is smaller than the allocated EFS size as a result of the determination, a block (dirfrex) in which the file is to be written and a name (dirnamx) to be used for indexing are allocated, and the location of the block is assigned to a hash table (dirbukx). ) In addition to; Add an entry to the master file directory for indexing the allocated block (dirfrex) and name (dirnamx) and the location of the updated block, and link the table (fbl_pool) that stores the entry and all information about the file. Making a process; Determining whether the table (fbl_pool) is full and there are no more memory areas to allocate; If the table fbl_pool is full and there is no more memory area to allocate, the files associated with the file are extracted to determine the names of the blocks and the names allocated to the extracted files. Canceling the allocation, deleting the location of the block in which the files are written in the hash table (dirbukx), and deleting the entries of the files in the master file directory; The method may further include updating the sector state table by resetting the extracted files from the valid file to the invalid file with reference to the master file directory and the table fbl_pool, and resetting the mobile communication terminal.
그리고, 상기 판단결과 할당할 메모리 영역이 남아 있는 경우에는, 파일 기록을 위한 각종 명령어를 처리하고, 각 아이템을 업데이트하는 과정을 더 포함하여 이루어지는 것이 바람직하다.When the memory area to be allocated remains as a result of the determination, the method may further include processing various commands for file writing and updating each item.
이하에서는 첨부한 도면을 참조하여 본 발명의 바람직한 실시예에 따른 이동 통신 단말기의 파일 기록 방법에 대해서 상세하게 설명한다.Hereinafter, a file recording method of a mobile communication terminal according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.
도 1은 EFS 영역에 파일을 기록할 때 업데이트되는 주요 요소를 개략적으로 보인 도로, EFS는 효율적인 메모리 관리를 위해서 램 상주 테이블(RAM-resident table)을 가지고 실제 메모리 블록에 차지하고 있는 데이터를 종류별, 유형별로 분류하여 관리한다.FIG. 1 is a schematic diagram showing the main elements updated when a file is written to an EFS area. EFS has a RAM-resident table for efficient memory management. Manage by classifying.
즉, EFS에 파일을 기록할 때, 마스터 파일 디렉토리(Master File Directory), fbl_pool, dirnamx, dirfrex, dirbukx와 섹터 상태 테이블(Sector Status Table)을 업데이트하여, 파일 관리할 때 사용한다.In other words, when writing files to EFS, the master file directory, fbl_pool, dirnamx, dirfrex, dirbukx and the sector status table are updated to be used for file management.
전술한, fbl_pool은 EFS에 저장되어 있는 모든 파일에 대한 모든 정보를 저장하고 있고, 마스터 파일 디렉토리는 fbl_pool을 관리하고, dirnamx, dirfrex, dirbukx는 마스터 파일 디렉토리가 fbl_pool을 관리하기 위해 필요한 인수(factor)들로 dirnamx는 파일을 이름 순으로 저장하고 있고, dirfrex는 EFS에서 사용되고 있지 않은 블록에 대한 정보를 저장하고 있고, dirbukx는 파일 인덱싱에 필요한 해쉬 테이블을 저장하고 있으며, 섹터 상태 테이블은 유효한 파일과 무효한 파일을 구분하여 저장하고 있다.As mentioned above, fbl_pool stores all information about all files stored in EFS, the master file directory manages fbl_pool, and dirnamx, dirfrex, and dirbukx provide the parameters required for the master file directory to manage fbl_pool. For example, dirnamx stores files in order of name, dirfrex stores information about blocks that are not being used in EFS, dirbukx stores hash tables for file indexing, and sector state tables for valid files and invalidation. It stores one file separately.
도 2는 본 발명의 일 실시예에 따른 이동 통신 단말기의 파일 기록 방법을 설명하기 위한 플로우챠트이다.2 is a flowchart illustrating a file recording method of a mobile communication terminal according to an embodiment of the present invention.
우선, EFS 영역 내에 파일을 기록하라는 명령을 인가받으면(S10), 파일 기록 명령에 따라 EFS 영역 내에 기록할 파일의 사이즈와 할당된 EFS 사이즈를 비교하여 기록할 파일의 사이즈가 할당된 EFS 사이즈보다 작은 지를 판단한다(S12).First, if a command to write a file in the EFS area is authorized (S10), the size of the file to be written is smaller than the allocated EFS size by comparing the size of the file to be recorded in the EFS area with the allocated EFS size according to the file writing command. It is determined (S12).
상기한 과정 S12의 판단결과 EFS 영역 내에 기록할 파일의 사이즈가 할당된 EFS 사이즈보다 큰 경우에는, 에러 메시지를 출력하여 EFS에 파일을 기록할 수 없도록 차단한다(S14).If the size of the file to be recorded in the EFS area is larger than the allocated EFS size as a result of the determination in step S12, an error message is output to block the file from being written to the EFS (S14).
한편, 상기한 과정 S12의 판단결과 EFS 영역 내에 기록할 파일의 사이즈가 할당된 EFS 사이즈보다 작은 여러 개의 파일인 경우에는, 비어 있는 블록들 중에서 해당 파일이 기록될 블록(dirfrex)을 할당하고, 인덱싱에 사용될 이름(dirnamx)을 할당하고, 해당 파일이 기록된 블록의 위치를 해쉬 테이블(dirbukx)에 추가하여 업데이트시킨다(S16).On the other hand, if the size of the file to be recorded in the EFS area is a plurality of files smaller than the allocated EFS size as a result of the determination of step S12, allocate a block (dirfrex) to be recorded in the empty block, and indexing The name (dirnamx) to be used is allocated, and the location of the block in which the file is recorded is added to the hash table (dirbukx) and updated (S16).
이후에는, 상기한 과정 S16에서 할당된 dirfrex 및 dirnamx와 업데이트된 dirbukx를 인덱싱하기 위한 엔트리를 마스터 파일 디렉토리에 추가하여 업데이트시키고, 마스터 파일 디렉토리에 추가된 엔트리와 해당 파일에 대한 모든 정보를 저장하고 있는 fbl_pool을 링크시킨다(S18).Subsequently, an entry for indexing dirfrex and dirnamx and the updated dirbukx allocated in the above-described process S16 is added to the master file directory and updated, and the entry added to the master file directory and all information about the file are stored. Link fbl_pool (S18).
이후, fbl_pool이 꽉 차버려 더 이상 할당할 메모리 영역이 없는 지를 판단하여(S20), 할당할 메모리 영역이 남아 있는 경우에는 파일 기록을 위한 각종 명령어를 처리하고, 각 아이템을 업데이트한 후, 정상적으로 파일 기록 과정을 종료한다(S22).Subsequently, it is determined that the fbl_pool is full and there is no more memory area to allocate (S20). When the memory area to be allocated remains, the controller processes various commands for file recording, updates each item, and then records the file normally. The process ends (S22).
한편, 상기한 과정 S20의 판단결과 fbl_pool이 꽉 차 더 이상 할당할 메모리 영역이 없는 경우에는, 상기한 과정 S10의 파일 기록 명령에 따라 EFS 영역 내에 기록된 파일과 관련된 파일들을 추출하여 무효 처리시키고(S24), 상기한 과정 S24에서 무효 처리된 파일들에 할당되어 있던 블록(dirfrex) 및 이름(dirnamx)의 할당을 취소하고, 해쉬 테이블(dirbukx)에서 해당 파일들이 기록되어 있는 블록의 위치를 삭제하고, 마스터 파일 디렉토리에서 해당 파일들의 엔트리를 삭제한다(S26).On the other hand, if the fbl_pool is full as a result of the determination of step S20 and there is no more memory area to allocate, the file associated with the file recorded in the EFS area is extracted and invalidated according to the file writing command of step S10 (step S10). S24), deassigning the blocks (dirfrex) and names (dirnamx) assigned to the files invalidated in the above-described process S24, and deleting the positions of the blocks where the files are recorded in the hash table (dirbukx). In operation S26, entries of the corresponding files are deleted from the master file directory.
상기한 과정 S26을 통해 마스터 파일 디렉토리에서 해당 파일들의 엔트리를 삭제함에 따라 해당 엔트리와 fbl_pool 간의 링크도 끊기게 된다.In step S26, as the entries of the corresponding files are deleted from the master file directory, the link between the entry and the fbl_pool is also broken.
이후에는, 마스터 파일 디렉토리와 fbl_pool을 참조하여 상기한 과정 S에서 추출된 파일들을 유효 파일에서 무효 파일로 변경시킴으로서, 섹터 상태 테이블을 업데이트하고(S28), fbl_pool이 꽉 차버려 정상 동작이 불가능한 이동 통신 단말기를 리셋시켜 이동 통신 단말기를 정상 동작시킨다(S30).Thereafter, by referring to the master file directory and fbl_pool, the files extracted in step S are changed from a valid file to an invalid file, thereby updating the sector state table (S28), and fbl_pool is full and the mobile communication terminal cannot operate normally. By resetting the normal operation of the mobile communication terminal (S30).
본 발명의 이동 통신 단말기의 파일 기록 방법은 전술한 실시예에 국한되지 않고 본 발명의 기술 사상이 허용하는 범위 내에서 다양하게 변형하여 실시할 수 있다.The file recording method of the mobile communication terminal of the present invention is not limited to the above-described embodiments, and can be modified in various ways within the scope of the technical idea of the present invention.
이상에서 설명한 바와 같은 본 발명의 이동 통신 단말기의 파일 기록 방법에 따르면, 단일의 파일이 EFS 할당량보다 크면 기록 자체를 할 수 없게 차단하고, EFS 할당량보다 작은 여러개의 파일들이 기록되어 지다 EFS 할당량보다 커지게 되면, 마지막에 기록된 파일을 삭제함으로써, 이동 통신 단말기가 정상적인 동작을 수행할 수 있게 한다.According to the file recording method of the mobile communication terminal of the present invention as described above, if a single file is larger than the EFS quota, the recording itself cannot be blocked, and several files smaller than the EFS quota are recorded and larger than the EFS quota. If so, the last recorded file is deleted, thereby allowing the mobile communication terminal to perform its normal operation.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050020676A KR20060099304A (en) | 2005-03-11 | 2005-03-11 | Method for writing file of mobile communication terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050020676A KR20060099304A (en) | 2005-03-11 | 2005-03-11 | Method for writing file of mobile communication terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20060099304A true KR20060099304A (en) | 2006-09-19 |
Family
ID=37630587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050020676A KR20060099304A (en) | 2005-03-11 | 2005-03-11 | Method for writing file of mobile communication terminal |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20060099304A (en) |
-
2005
- 2005-03-11 KR KR1020050020676A patent/KR20060099304A/en not_active Application Discontinuation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10387316B2 (en) | Method for increasing cache size | |
US8271762B2 (en) | Mapping management methods and systems | |
KR100849446B1 (en) | Storage device, memory managing apparatus, memory managing method, and computer-readable recording medium | |
JP5647203B2 (en) | Memory page management | |
US20110055464A1 (en) | Device driver including a flash memory file system and method thereof and a flash memory device and method thereof | |
US20100077135A1 (en) | Memory wear leveling method, system and device | |
JP2012514794A (en) | Maintaining mapping address tables in storage | |
KR101336258B1 (en) | Apparatus and method of processing data of non-volatile memory | |
US6938140B2 (en) | System and method for linear object reallocation in place | |
US6928456B2 (en) | Method of tracking objects for application modifications | |
US20070073962A1 (en) | Accessing device | |
US20100180072A1 (en) | Memory controller, nonvolatile memory device, file system, nonvolatile memory system, data writing method and data writing program | |
EP1752879A1 (en) | File management device, file management method, file management program, and computer-readable recording medium containing the file management program | |
CN103309696A (en) | Method and device for updating Java card extended library, and Java card | |
KR101676175B1 (en) | Apparatus and method for memory storage to protect data-loss after power loss | |
KR20060099304A (en) | Method for writing file of mobile communication terminal | |
KR100638638B1 (en) | Method for controling flash memory device | |
KR101102754B1 (en) | Nand flash memory file system and method for accessing file thereof | |
KR100892608B1 (en) | Error block management method for flash memory | |
CN110943871B (en) | Resource interval adjusting method and device | |
KR100939814B1 (en) | Method of managing and writing log file for flash memory | |
KR20090059346A (en) | Terminal and the control method that have imei reproduction prevention function for using otp area | |
KR100587146B1 (en) | Apparatus and method for management media file of mobile communication terminal | |
KR100947727B1 (en) | Rom image composing and updating method for flash memory | |
JP2010128723A (en) | Electronic apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application |