KR100941026B1 - Database Managemnet Method for a Storage Medium - Google Patents

Database Managemnet Method for a Storage Medium Download PDF

Info

Publication number
KR100941026B1
KR100941026B1 KR1020080032890A KR20080032890A KR100941026B1 KR 100941026 B1 KR100941026 B1 KR 100941026B1 KR 1020080032890 A KR1020080032890 A KR 1020080032890A KR 20080032890 A KR20080032890 A KR 20080032890A KR 100941026 B1 KR100941026 B1 KR 100941026B1
Authority
KR
South Korea
Prior art keywords
folder
file
storage medium
database
item
Prior art date
Application number
KR1020080032890A
Other languages
Korean (ko)
Other versions
KR20090107389A (en
Inventor
전규성
Original Assignee
주식회사 텔레칩스
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 주식회사 텔레칩스 filed Critical 주식회사 텔레칩스
Priority to KR1020080032890A priority Critical patent/KR100941026B1/en
Publication of KR20090107389A publication Critical patent/KR20090107389A/en
Application granted granted Critical
Publication of KR100941026B1 publication Critical patent/KR100941026B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/40Data acquisition and logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

본 발명은 저장매체에 대한 데이터베이스 관리 기술로서, 특히 저장매체의 파일 및 폴더에 대한 엔트리 로케이션 정보 및 크로스링크를 위한 DB 인덱스를 사용하여 데이터베이스를 최소 저장공간으로 구축한 후, 이후 파일 및 폴더에 대한 이름이 필요하게 되면 데이터베이스 항목을 활용하여 최소의 저장매체 액세스로 빠르게 파일 이름 또는 폴더 이름을 제공할 수 있도록 하는 데이터베이스 관리 기술을 개시한다. 본 발명에 따르면, 저장매체의 파일 및 폴더를 관리하는 데이터베이스를 최소 저장공간으로 구축함으로써 저장매체를 사용하는 시스템에서 저용량 메모리 사용에 따른 비용 절감, 저장매체 액세스 저감에 따른 동작속도 향상, 데이터베이스 관리기능 강화를 얻을 수 있다.The present invention relates to a database management technology for a storage medium. In particular, the database is constructed with a minimum storage space by using entry location information for files and folders of a storage medium and a DB index for crosslinking. When a name is needed, a database management technique is disclosed that can utilize a database item to quickly provide a file or folder name with minimal storage access. According to the present invention, by establishing a database that manages files and folders of a storage medium with a minimum storage space, a cost reduction due to low memory usage in a system using a storage medium, an operation speed improvement due to a reduction in access to a storage medium, and a database management function Enhancement can be obtained.

파일 엔트리 로케이션, 폴더 엔트리 로케이션, 데이터베이스, 인덱스 File entry location, folder entry location, database, index

Description

저장매체에 대한 데이터베이스 관리 방법{Database Managemnet Method for a Storage Medium}Database Managemnet Method for a Storage Medium}

본 발명은 저장매체에 대한 데이터베이스 관리 기술로서, 특히 저장매체의 파일 및 폴더에 대한 엔트리 로케이션 정보 및 크로스링크를 위한 DB 인덱스를 사용하여 데이터베이스를 최소 저장공간으로 구축한 후, 이후 파일 및 폴더에 대한 이름이 필요하게 되면 데이터베이스 항목을 활용하여 적은 저장매체 액세스로 빠르게 파일 이름 또는 폴더 이름을 제공할 수 있도록 하는 데이터베이스 관리 기술에 관한 것이다. The present invention relates to a database management technology for a storage medium. In particular, the database is constructed with a minimum storage space by using entry location information for files and folders of a storage medium and a DB index for crosslinking. When a name is needed, it relates to a database management technique that can utilize a database item to quickly provide a file name or folder name with less storage access.

종래로 하드디스크, SD 메모리 카드, MMC 메모리, USB 메모리 장치 등과 같은 각종의 저장매체는 대용량의 데이터를 효과적으로 저장할 수 있어 널리 사용되어 왔으며, 최근에는 차량용 오디오나 가정용 오디오에서 음악 파일(예: MP3 파일)을 저장하는 매체로서 점차로 사용되고 있다.Conventionally, various storage media such as hard disks, SD memory cards, MMC memory and USB memory devices have been widely used for effectively storing large amounts of data. Recently, music files (eg, MP3 files) have been used in car audio and home audio. It is increasingly used as a storage medium.

이와 같은 저장매체는 대용량 데이터를 효과적으로 관리하기 위하여 FAT32, NTFS 등의 파일 시스템에 의해 파일 및 폴더 정보를 계층적 디렉토리 형태의 할당테이블(예 : File Allocation Table)로 관리하는데, 파일을 저장하거나 삭제할 때 저장매체에 파일 데이터를 기록하는 것과 동시에 관련된 파일 정보를 할당테이블의 계층적 디렉토리 내에 기록한다.The storage medium manages file and folder information in a hierarchical directory type allocation table (eg, File Allocation Table) by a file system such as FAT32 or NTFS in order to effectively manage a large amount of data. At the same time as recording the file data on the storage medium, related file information is recorded in the hierarchical directory of the allocation table.

한편, 음악 파일이 저장된 저장매체를 차량용/가정용 오디오 시스템에 삽입하여 오디오 시스템에서 이들 음악 파일을 읽어 재생하는 기술이 최근들어 널리 사용되기 시작하였다. 이러한 차량용/가정용 오디오 시스템은 저장매체의 음악 파일을 효과적으로 관리할 필요가 있는데, 이를 위해 저장매체의 음악 파일과 폴더 구조에 대한 데이터베이스를 관리하는 것을 생각해 볼 수 있다.On the other hand, the technique of inserting a storage medium storing music files into a vehicle / home audio system and reading and playing these music files in an audio system has recently been widely used. Such a car / home audio system needs to effectively manage music files of a storage medium. For this purpose, it is conceivable to manage a database of music files and folder structures of a storage medium.

다만, 이러한 데이터베이스를 관리하기 위해 너무 많은 메모리 공간을 소모하는 것은 바람직하지 않으므로 메모리 공간을 최적화하는 것이 요구된다. 일반적으로 저장매체의 용량은 수 내지 수십 기가바이트인 반면 음악 파일은 3 내지 4 메가바이트 정도에 불과하므로 10,000 개 이상의 음악 파일이 저장되는 경우도 가정해야 한다. 데이터베이스의 설계를 안이하게 하는 경우에는 상당한 정도의 메모리 공간이 소요되며, 이는 바람직하지 않다.However, it is not desirable to consume too much memory space to manage such a database, so it is required to optimize the memory space. In general, since the storage medium has a capacity of several to several tens of gigabytes while the music file is only about 3 to 4 megabytes, it should be assumed that more than 10,000 music files are stored. The ease of designing a database requires a significant amount of memory space, which is undesirable.

이러한 요구는 차량용/가정용 오디오 시스템이 업체 간의 가격 경쟁이 치열한 분야라는 점을 감안한다면 매우 중요하다. 제품 가격을 고려한다면 시스템 콘트롤러 칩 이외에 별도의 시스템 메모리(예 : SRAM, DRAM)를 부착하는 것은 바람직하지 않고 설사 불가피하게 시스템 메모리를 부착하더라도 필요한 메모리 용량은 최소한으로 줄이는 것이 요망된다. This demand is very important, given that automotive and home audio systems are in a competitive price competition. Considering the product price, it is not desirable to attach additional system memory (eg, SRAM and DRAM) in addition to the system controller chip. Even if the system memory is inevitably attached, it is desired to reduce the required memory capacity to a minimum.

여기에서 파일 이름이나 폴더 이름이 데이터베이스 메모리 용량에 있어서 특히 문제가 될 것으로 생각된다. 설명의 편이를 위해 음악 파일이 10,000 개 있는 경우를 가정하면, 데이터베이스에 파일 이름을 스트링(string)으로 256 바이트로 한정하여 파일별로 배정하더라도, 전체적으로는 약 2.4 메가바이트가 파일 이름에만 소요된다. 또한 추가적인 파일 정보도 데이터베이스에 기록해야 할 것이므로 저장매체 전체에 대해 2.6 내지 3 메가바이트 정도의 메모리 공간이 데이터베이스에 소요될 것으로 예상된다.The file name and folder name are considered to be particularly problematic here in terms of database memory capacity. For the sake of simplicity, assuming that there are 10,000 music files, even if the file name in the database is limited to 256 bytes by string, the total file size is about 2.4 megabytes. In addition, additional file information will also have to be recorded in the database, which is expected to require 2.6 to 3 megabytes of memory space for the entire storage medium.

이처럼 2.6 내지 3 메가바이트 정도의 메모리 공간이라면 일반적인 시스템 콘트롤러 칩에 내장된 메모리 공간으로는 결코 수용할 수 없는 수준이어서 상당 규모의 시스템 메모리를 별도로 부착할 수밖에 없고, 결국 심각한 제품 가격 상승 요인으로 될 수 있다.In this case, the memory space of 2.6 to 3 megabytes cannot be accommodated by the memory space embedded in the general system controller chip. Therefore, it is necessary to attach a large amount of system memory separately, which can be a serious factor in raising the product price. have.

또한, 저장매체에 포함된 음악 파일을 오디오 시스템에서 조작할 때, 특히 파일 이름이나 폴더 이름을 가져와서 UI (User Interface)에 디스플레이할 때, 지나치게 많은 저장매체 액세스를 수행하게 되면 속도가 느려져 바람직하지 않으므로, 저장매체 액세스를 적게 유지할 필요성이 요구된다. 데이터베이스의 메모리 용량을 줄이기 위해서는 필연적으로 각 데이터베이스 항목에 저장되는 정보를 줄이기 마련인데, 데이터베이스 설계를 안이하게 하는 경우에는, 실제 사용 시에 저장매체를 과다하게 액세스하게 될 위험이 있다.In addition, when operating music files included in a storage medium in an audio system, especially when a file name or folder name is taken out and displayed on a UI (User Interface), excessive access to the storage medium may be slow and undesirable. Thus, there is a need for maintaining less storage media access. In order to reduce the memory capacity of the database, it is necessary to reduce the information stored in each database item. If the database design is not easy, there is a risk of over-accessing the storage medium in actual use.

따라서 저장매체를 사용하는 시스템에서 저장매체의 파일 및 폴더 정보를 데이터베이스로 관리하는 기술이 요구되며, 특히 다수의 파일 및 폴더가 포함되어 있 는 상황을 감안하여 데이터베이스에 소요되는 메모리 공간을 최적화할 뿐만 아니라 실제 사용 시에 저장매체에 대한 액세스를 적게 유지할 수 있도록 해주는 데이터베이스 관리 기술이 요구된다.Therefore, a technology for managing file and folder information of a storage medium in a database using a storage medium is required. In particular, the memory space required for a database is optimized in consideration of a situation in which a large number of files and folders are included. Rather, there is a need for database management techniques that allow for less access to storage media in actual use.

하드디스크, SD 메모리 카드, MMC 메모리, USB 메모리 장치 등과 같은 각종의 저장매체를 사용하는 시스템에서 저장매체에 포함된 파일 및 폴더 정보를 데이터베이스로 효율적으로 관리하는 기술이 요구된다.In a system using various storage media such as a hard disk, an SD memory card, an MMC memory, a USB memory device, and the like, a technology for efficiently managing files and folder information included in the storage media as a database is required.

특히 저장매체의 용량이 수 내지 수십 기가바이트로 대용량화되어 저장매체에 다수의 파일 및 폴더가 포함됨에 반해 시스템의 제품 가격을 상승시키는 것은 극히 곤란하다는 상황을 감안하여 데이터베이스에 소요되는 메모리 공간을 최적화할 뿐만 아니라 실제 사용 시에 저장매체에 대한 액세스를 적게 유지할 수 있도록 해주는 효율적인 데이터베이스 관리 기술이 요구된다.In particular, it is extremely difficult to increase the product price of the system while the storage medium has a large capacity of several to several tens of gigabytes. Therefore, it is very difficult to optimize the memory space required for the database. In addition, there is a need for an efficient database management technique that allows for less access to storage media in actual use.

본 발명에서 사용하는 저장매체 데이터베이스 관리 방법은 저장매체의 파일 및 폴더에 대한 엔트리 로케이션 정보 및 크로스링크를 위한 DB 인덱스를 사용하여 데이터베이스를 최소 저장공간으로 구축한 후, 이후 파일 및 폴더에 대한 이름이 필요하게 되면 데이터베이스 항목을 활용하여 최소의 저장매체 액세스로 빠르게 파일 이름 또는 폴더 이름을 제공할 수 있도록 함으로써, 저용량 메모리를 사용함에 따른 비용 절감, 액세스 최소화를 통한 동작속도 향상, 데이터베이스 관리기능 강화를 증대시킬 수 있는 기술이다.In the method of managing a storage medium database used in the present invention, after constructing a database with a minimum storage space using entry location information of files and folders of a storage medium and a DB index for crosslinking, the names of the files and folders are changed. If necessary, database items can be used to quickly provide file or folder names with minimal access to storage media, thereby reducing the cost of using low memory, speeding up operations by minimizing access, and enhancing database management. It is a technology that can be done.

상기의 과제를 달성하기 위한 본 발명의 구성은 다음과 같다.The structure of this invention for achieving the said subject is as follows.

본 발명에 따른 저장매체 데이터베이스 관리 방법은, 저장매체에 저장된 하나 이상의 파일 및 폴더에 대한 데이터베이스를 관리하는 방법으로, (a-1) 저장매체의 할당테이블을 분석하는 단계; (a-2) 저장매체의 파일 및 폴더에 대한 데이터베이스를 생성하는 단계; (a-3) 저장매체의 파일 및 폴더에 대한 엔트리 로케이션을 저장매체의 할당테이블로부터 입수하여 데이터베이스의 파일 항목 및 폴더 항목에 배정하여 기록하는 단계; (a-4) 파일 항목에 대하여 각 파일이 속한 폴더의 크로스링크를 데이터베이스에 기록하는 단계; (b-1) 특정의 파일 항목에 대해 파일 이름을 요청받는 단계; (b-2) 요청된 파일 항목에 대하여 데이터베이스로부터 파일 엔트리 로케이션 및 크로스링크를 획득하는 단계; (b-3) 저장매체로부터 크로스링크에 대응되는 폴더를 오픈하는 단계; 및 (b-4) 위 오픈된 폴더 내에서 파일 엔트리 로케이션에 대응되는 파일 이름을 획득하여 제공하는 단계;를 포함하여 구성된다.Storage medium database management method according to the invention, a method for managing a database for one or more files and folders stored in the storage medium, (a-1) analyzing the allocation table of the storage medium; (a-2) creating a database of files and folders on a storage medium; (a-3) obtaining entry locations of files and folders on a storage medium from allocation tables of the storage medium, assigning and recording file items and folder items in a database; (a-4) recording a crosslink of the folder to which each file belongs to the database for the file item; (b-1) receiving a file name for a specific file item; (b-2) obtaining a file entry location and a crosslink from a database for the requested file item; (b-3) opening a folder corresponding to the crosslink from the storage medium; And (b-4) acquiring and providing a file name corresponding to the file entry location in the opened folder.

본 발명에 따른 저장매체 데이터베이스 관리 방법은, (a-5) 저장매체의 폴더에 대하여 상위 폴더의 DB 인덱스를 데이터베이스에 기록하는 단계; (b-5) 특정의 폴더 항목에 대하여 폴더 이름을 요청받는 단계; (b-6) 요청된 폴더 항목에 대하여 데이터베이스로부터 폴더 엔트리 로케이션 및 상위폴더 DB 인덱스를 획득하는 단계; (b-7) 저장매체로부터 상위폴더 DB 인덱스에 따른 폴더를 오픈하는 단계; 및 (b-8) 오픈된 폴더 내에서 폴더 엔트리 로케이션에 대응되는 폴더 이름을 획득하여 제공하는 단계;를 더 포함하여 구성될 수 있다.A storage medium database management method according to the present invention comprises the steps of: (a-5) recording a DB index of a higher folder with respect to a folder of a storage medium in a database; (b-5) receiving a request for a folder name for a specific folder item; (b-6) obtaining a folder entry location and a higher folder DB index from the database for the requested folder item; (b-7) opening a folder according to a higher folder DB index from the storage medium; And (b-8) acquiring and providing a folder name corresponding to the folder entry location in the opened folder.

본 발명에 따른 저장매체 데이터베이스 관리 방법에서, (b-4) 단계는, (b-4- 1) 오픈된 폴더에 포함된 하나 이상의 파일 정보 중 파일 엔트리 로케이션과 매칭되는 파일 정보를 검색하는 단계; 및 (b-4-2) 검색된 파일 정보로부터 파일 이름을 획득하여 제공하는 단계;를 포함하여 구성될 수 있다.In the method of managing a storage medium database according to the present invention, step (b-4) may include: (b-4- 1) searching for file information matching a file entry location among one or more file information included in the opened folder; And (b-4-2) acquiring and providing a file name from the retrieved file information.

본 발명에 따른 데이터베이스 관리 방법에서, (b-8) 단계는, (b-8-1) 오픈된 폴더에 포함된 하나 이상의 폴더 정보 중 폴더 엔트리 로케이션과 매칭되는 폴더 정보를 검색하는 단계; 및 (b-8-2) 폴더 정보에 기입된 폴더 이름을 획득하여 제공하는 단계;를 포함하여 구성될 수 있다.In the database management method according to the present invention, step (b-8) includes (b-8-1) searching for folder information matching the folder entry location among one or more folder information included in the opened folder; And (b-8-2) acquiring and providing a folder name written in the folder information.

본 발명에 따른 저장매체 데이터베이스 관리 방법은, (a-6) 저장매체의 각 폴더에 대하여 소속된 최초 파일에 대한 DB 인덱스를 데이터베이스에 저장하는 단계; (b-9) 특정의 폴더 항목에 대해 파일 탐색을 요청받는 단계; (b-10) 요청된 폴더 항목에 대하여 데이터베이스로부터 최초파일 DB 인덱스를 획득하는 단계; 및 (b-11) 데이터베이스에서 최초파일 DB 인덱스에 대응되는 파일 항목으로부터 파일 탐색을 수행하는 단계;를 더 포함하여 구성될 수 있다.A storage medium database management method according to the present invention comprises the steps of: (a-6) storing a DB index for the first file belonging to each folder of the storage medium in a database; (b-9) receiving a file search request for a specific folder item; (b-10) obtaining an original file DB index from a database for the requested folder item; And (b-11) performing a file search from a file item corresponding to the original file DB index in the database.

본 발명에 따른 저장매체 데이터베이스 관리 방법은, (c-1) 특정의 파일 항목에 대해 재생을 요청받는 단계; (c-2) 요청된 파일 항목에 대하여 데이터베이스로부터 파일 엔트리 로케이션을 획득하는 단계; 및 (c-3) 저장매체에서 파일 엔트리 로케이션에 대응되는 물리적 주소로부터 데이터를 판독하여 재생을 수행하는 단계;를 더 포함하여 구성될 수 있다.A storage medium database management method according to the present invention comprises the steps of: (c-1) receiving a request to play a specific file item; (c-2) obtaining a file entry location from a database for the requested file item; And (c-3) reading data from the physical address corresponding to the file entry location in the storage medium to perform the playback.

본 발명에 따른 저장매체 데이터베이스 관리 방법은, (a-7) 저장매체의 파일에 대하여 코덱 타입 정보를 저장매체에 기록하는 단계;를 더 포함하여 구성될 수 있다.The method for managing a storage medium database according to the present invention may further comprise (a-7) recording codec type information on a storage medium with respect to a file of the storage medium.

본 발명의 데이터베이스 관리 방법에 따르면, 저장매체에 포함된 다수의 파일 및 폴더를 관리하는 데이터베이스를 최소한의 메모리 공간으로 구축함으로써 저장매체를 사용하는 시스템에서 콘트롤러 칩 내장 메모리로 충분히 사용할 수 있거나 최소한 저용량 메모리를 사용할 수 있게 됨에 따른 비용 절감 효과를 얻을 수 있는 장점이 있다.According to the method for managing a database of the present invention, a database managing a plurality of files and folders included in a storage medium can be built with a minimum memory space so that the controller chip can be used as a controller chip internal memory in a system using the storage medium or at least a low memory capacity. There is an advantage that can be obtained by reducing the cost of using.

또한, 본 발명의 데이터베이스 관리 방법에 따르면 다수의 파일 및 폴더에 대한 데이터베이스를 최소 공간으로 구축하면서도 실제 파일 사용시에는 저장매체에 대한 액세스를 적게 유지할 수 있어 시스템 조작 시에 사용자가 체감하는 동작속도를 향상할 수 있는 장점이 있다.In addition, according to the database management method of the present invention, it is possible to establish a database for a plurality of files and folders with a minimum space while maintaining less access to the storage medium when the actual file is used, thereby improving the operation speed that the user feels when operating the system. There is an advantage to this.

또한, 본 발명의 데이터베이스 관리 방법에 따르면 저장매체를 사용하는 시스템에서 저장매체에 포함된 다수의 파일 및 폴더에 대한 정보를 효과적으로 관리할 수 있게 된다는 장점이 있다.In addition, the database management method of the present invention has an advantage that it is possible to effectively manage information on a plurality of files and folders included in the storage medium in a system using the storage medium.

이하, 본 발명의 실시예를 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명에 따른 데이터베이스 관리 기술에서 관리장치(10)와 저장매 체(50) 간의 연결을 도시한 도면이다.1 is a view showing a connection between the management device 10 and the storage medium 50 in the database management technology according to the present invention.

저장매체(50)는 하드디스크, SD 메모리 카드, MMC 메모리, USB 메모리 장치 등과 같이 내부에 저장 공간을 구유하고 있어 MP3 파일 등과 같은 각종의 파일을 저장하는 장치이다. 저장매체(50)는 FAT32, NTFS 등과 같은 파일시스템에 따라 포매팅되어 있고, 그에 따라 파일 및 폴더에 대한 정보를 계층적 디렉토리 구조의 할당테이블(60)을 구비하고 있다.The storage medium 50 has a storage space therein such as a hard disk, an SD memory card, an MMC memory, a USB memory device, and the like to store various files such as MP3 files. The storage medium 50 is formatted according to a file system such as FAT32, NTFS, etc., and thus has an allocation table 60 of a hierarchical directory structure for information on files and folders.

관리장치(10)는 저장매체(50)에 저장되어 있는 파일을 활용하는 장치로서, 본 발명에서는 저장매체(50)에 저장된 음악 파일을 판독하여 재생하는 가정용 또는 차량용 오디오 시스템을 가정한다. 관리장치(10)는 시스템 제어용 프로세서(20), 각종 파일 및 폴더에 대한 정보를 관리하는 데이터베이스(30), 저장매체(50)가 연결되기 위한 입출력 포트(40)를 포함한다.The management device 10 is a device utilizing a file stored in the storage medium 50. In the present invention, it is assumed that the home or car audio system reads and reproduces the music file stored in the storage medium 50. The management apparatus 10 includes a system control processor 20, a database 30 for managing information on various files and folders, and an input / output port 40 for connecting the storage medium 50.

먼저, 저장매체(50)가 입출력 포트(40)를 통해 삽입됨에 따라 관리장치(10)의 프로세서(20)는 할당테이블(60)을 액세스하여 저장매체(50)에 포함된 파일 및 폴더에 대한 엔트리 구조를 분석한다. 즉, 프로세서(20)는 할당테이블(60)로부터 파일 및 폴더에 대한 엔트리 구조를 파악하며, 이들 파일 및 폴더에 대한 엔트리 로케이션(File Entry Location, Folder Entry Location)을 할당테이블(60)로부터 입수한다.First, as the storage medium 50 is inserted through the input / output port 40, the processor 20 of the management apparatus 10 accesses the allocation table 60 to access files and folders included in the storage medium 50. Analyze the entry structure. That is, the processor 20 grasps the entry structure for files and folders from the allocation table 60, and obtains an entry location (File Entry Location, Folder Entry Location) for these files and folders from the allocation table 60. .

여기서, 엔트리 로케이션은 파일 엔트리 로케이션 또는 폴더 엔트리 로케이션을 총칭하여 명명한 것으로, 이들 파일 및 폴더에 관한 실제 데이터의 주소값이 저장된 섹터 주소(Sector Address)와 하나 이상의 파일 및 폴더에 대한 트리 구조 를 확인할 수 있는 디렉토리 엔트리 옵셋(Directory Entry Offset)의 조합으로 이루어진 값으로 바람직하게 구성된다.Here, the entry location is collectively named as a file entry location or folder entry location, and the sector address where the actual data address values of these files and folders are stored and the tree structure of one or more files and folders are identified. It is preferably composed of a value consisting of a combination of possible Directory Entry Offsets.

프로세서(20)는 데이터베이스(30) 내에 이들 파일 및 폴더에 대한 정보를 기록하여 정리해 두는데, 먼저 각 파일 및 폴더 별로 파일 엔트리 로케이션 및 폴더 앤트리 로케이션을 배정함으로써, 본격적으로 저장매체(50)에 대한 데이터베이스 관리가 개시되는 것이다.The processor 20 records and organizes information on these files and folders in the database 30. First, by assigning a file entry location and a folder entry location for each file and folder, the storage medium 50 is loaded into the storage medium 50 in earnest. Database management is started.

도 2는 저장매체(50)의 파일 및 폴더의 배치 구조, 및 그에 따른 할당테이블(60)의 일 예를 도시한 도면이다.2 is a diagram illustrating an arrangement of files and folders of a storage medium 50 and an example of the allocation table 60 accordingly.

도 2를 참조하면, 저장매체(50)의 할당테이블(60)에는 루트(root) 폴더로부터 시작하여 각종의 파일 및 폴더에 대한 계층적인 소속 구조를 나타내는 디렉토리 엔트리를 형성하고, 각각에 대해 파일 이름이나 폴더 이름, 속성 정보, 그리고 파일/폴더 엔트리 로케이션 값을 구비한다. Referring to FIG. 2, in the allocation table 60 of the storage medium 50, directory entries representing hierarchical affiliation structures for various files and folders are formed, starting from a root folder, and file names for each. Or folder name, attribute information, and file / folder entry location value.

예를 들어, 할당테이블(60)에 따르면 최상위 폴더인 루트(root) 폴더 이하에 lecture 폴더와 music 폴더가 2개 존재하고 Friends.mp3 파일이 1개 존재함을 파악한다. 또한, 할당테이블(60)에 따르면 lecture 폴더 이하에 history, law, math, science 라는 폴더가 있음을 파악하고, music 폴더 이하에 classic, jazz, pop 이라는 폴더가 있음도 파악한다.For example, the allocation table 60 determines that two lecture folders and music folders exist and one Friends.mp3 file exists under a root folder, which is a top-level folder. In addition, according to the assignment table 60, it is understood that there are folders called history, law, math, and science under the lecture folder, and that there are folders called classic, jazz, and pop under the music folder.

또한, 할당테이블(60)에 따르면 history 폴더 내부에 China.mp3, Japan.mp3 라는 파일이 2개 있음을 파악하고, 동일 계층의 구조인 jazz 폴더 내부에는 Jazz1.mp3 내지 jazz17.mp3까지의 17개 파일이 있음을 파악한다. 또한, 할당테이블(60)에 따르면 각종 파일에 대하여 파일 이름, 속성 정보, 파일 엔트리 로케이션 정보를 인지한다.In addition, according to the allocation table 60, it is found that there are two files named China.mp3 and Japan.mp3 in the history folder, and 17 items from Jazz1.mp3 to jazz17.mp3 in the jazz folder having the same hierarchical structure. Know that the file exists. Further, according to the assignment table 60, file names, attribute information, and file entry location information are recognized for various files.

본 명세서의 상세한 설명에서는 저장매체(50) 내에 root 폴더를 포함한 10 개의 폴더와 10,000 개의 파일이 존재하는 경우를 가정하며, 이하 본 발명에 따른 데이터베이스 관리 기술을 설명한다.In the detailed description of the present specification, it is assumed that 10 folders including the root folder and 10,000 files exist in the storage medium 50. Hereinafter, the database management technology according to the present invention will be described.

도 3은 본 발명에서 관리장치(10)가 저장매체(50)를 관리하기 위해 운용하는 데이터베이스(30)의 일 예를 도시한 도면이다.3 is a diagram illustrating an example of a database 30 operated by the management device 10 to manage the storage medium 50 in the present invention.

도 3를 참조하면, 관리장치(10)의 프로세서(20)는 저장매체(50)의 파일 및 폴더에 대한 정보를 관리하기 위하여 파일 DB 항목과 폴더 DB 항목을 구비한 데이터베이스(30)를 구축한다. Referring to FIG. 3, the processor 20 of the management apparatus 10 constructs a database 30 having a file DB item and a folder DB item in order to manage information on files and folders of a storage medium 50. .

여기에서, 파일 DB 항목은 저장매체(50)의 파일에 대한 정보를 구비하는 부분으로, 10,000 개의 파일이 저장된 것으로 가정하였으므로 10,000 개의 항목을 갖는 배열(array)로 이루어진다. 또한, 폴더 DB 항목은 저장매체(50)의 폴더에 대한 정보를 구비하는 부분으로, 10 개의 폴더를 갖는 것으로 가정하였으므로 10 개의 항목을 갖는 배열로 이루어진다.Here, the file DB item is a part having information about a file of the storage medium 50. Since the file DB item is assumed to be stored, the file DB item is an array having 10,000 items. In addition, the folder DB item is a part having information on a folder of the storage medium 50. Since the folder DB item is assumed to have 10 folders, the folder DB item has an array having 10 items.

도시된 바와 같이, 데이터베이스(30)의 파일 DB 항목 부분은 10,000 개의 파일 정보를 각 항목에 배정하는데, 본 실시예에서는 Friends.mp3 파일에 대한 정보를 [0]에 배정하고, China.mp3 파일에 대한 정보와 Japan.mp3 파일에 대한 정보를 [1]과 [2]에 배정하며, Jazz1.mp3 파일 내지 Jazz17.mp3 파일에 대한 정보를 [101] 내지 [117]에 배정한 것으로 나타내었다.As shown, the file DB item portion of the database 30 assigns 10,000 file information to each item. In this embodiment, information about the Friends.mp3 file is assigned to [0], and the file is assigned to the China.mp3 file. And information about the Japan.mp3 file are assigned to [1] and [2], and the information about the Jazz1.mp3 to Jazz17.mp3 files is assigned to [101] to [117].

또한, 데이터베이스(30)의 폴더 DB 항목 부분은 10개의 폴더 정보를 각 항목에 배정하는데, 본 실시예에서는 root 폴더에 대한 정보를 [0]에 배정하고, 각각의 폴더, 즉 lecture 폴더, music 폴더, history 폴더, law 폴더, math 폴더, science 폴더, classic 폴더, jazz 폴더, pop 폴더에 대한 정보를 [1] 내지 [9]에 배정한 것으로 나타내었다.In addition, the folder DB item portion of the database 30 assigns ten folder information to each item. In this embodiment, information about the root folder is assigned to [0] and each folder, that is, a lecture folder and a music folder. The information about the history folder, law folder, math folder, science folder, classic folder, jazz folder, and pop folder is shown in [1] to [9].

도 2를 참조하여 이미 나타낸 바와 같이 본 실시예에서 Friends.mp3 파일은 root 폴더에 소속되고, China.mp3 파일과 Japan.mp3 파일은 history 폴더에 소속되며, Jazz1.mp3 파일 내지 Jazz17.mp3 파일은 jazz 폴더에 소속되는 것으로 가정하였다.As already shown with reference to FIG. 2, in this embodiment, the Friends.mp3 file belongs to the root folder, the China.mp3 file and Japan.mp3 file belong to the history folder, and the Jazz1.mp3 to Jazz17.mp3 files It is assumed to belong to the jazz folder.

그에 따라, 본 발명에 따른 데이터베이스 관리방법에서는 파일 DB 항목에서 Friends.mp3 파일에 대한 항목은 폴더 DB 항목에서 root 폴더의 항목을 크로스링크(crosslink)하고, 파일 DB 항목에서 China.mp3 파일과 Japan.mp3 파일에 대한 항목은 폴더 DB 항목에서 history 폴더의 항목을 크로스링크하며, 파일 DB 항목에서 Jazz1.mp3 파일 내지 Jazz17.mp3 파일에 대한 항목은 폴더 DB 항목에서 jazz 폴더의 항목을 크로스링크한다. Accordingly, in the database management method according to the present invention, an item for the Friends.mp3 file in the file DB item crosslinks an item of the root folder in the folder DB item, and the China.mp3 file and the Japan. The entry for the mp3 file crosslinks the entry of the history folder in the folder DB entry, and the entry for the Jazz1.mp3 file or the Jazz17.mp3 file in the file DB entry crosslinks the entry in the jazz folder in the folder DB entry.

도 4는 본 발명에 따른 데이터베이스(30)에서 사용되는 파일 항목과 폴더 항목의 비트필드(bit-field) 구성의 일 예를 도시한 도면이다. 도 4는 본 발명의 기 술을 적용할 수 있는 데이터베이스 항목의 비트필드의 바람직한 일 실시예에 불과한 것으로 이해되어야 한다. 4 is a diagram illustrating an example of a bit-field configuration of file items and folder items used in the database 30 according to the present invention. 4 is only to be understood that the preferred embodiment of the bitfield of the database item to which the technology of the present invention can be applied.

먼저, 파일 DB 항목에 대한 비트필드에 대해 설명한다.First, the bitfields for file DB items will be described.

▲ 파일 엔트리 로케이션(File Entry Location, 2 바이트) : 저장매체(50) 내에서 당해 파일의 실제 데이터가 저장된 물리 번지와 관련된 정보로, 실제 데이터에 대한 섹터 주소와 디렉토리 엔트리 옵셋의 조합으로 구성될 수 있다. 파일 엔트리 로케이션은 파일 이름 또는 파일 속성을 파일 시스템에서 가져올 때 필요한 위치 정보이다. 또한, 파일 엔트리 로케이션 정보는 실제 데이터가 저장된 물리 번지에 대응되므로 이 정보를 활용하면 즉시 해당 파일에 대한 조작, 예컨대 음악 파일의 재생을 수행할 수 있다.▲ File Entry Location (2 bytes): Information related to the physical address where the actual data of the file is stored in the storage medium 50, and may be composed of a combination of a sector address and a directory entry offset for the actual data. have. The file entry location is the location information needed to get a file name or file attribute from the file system. In addition, since the file entry location information corresponds to the physical address where the actual data is stored, using this information, it is possible to immediately perform operations on the file, for example, playing a music file.

▲ 폴더 DB 인덱스(Folder DB Index, 2 바이트) : 당해 파일이 속하는 폴더가 폴더 DB 항목에서 차지하는 인덱스 값을 나타내는 값으로, 파일 DB 항목과 폴더 DB 항목 간의 크로스링크(cross-link)에 해당한다. 예를 들면 China.mp3 파일이 속하는 history 폴더는 폴더 DB 항목에서 [3]에 배정되어 있으므로, China.mp3 파일에 대한 폴더 DB 인덱스는 "3"이 된다. 특정 파일에 대한 이름을 가져오기 위해서는 그 파일이 속한 폴더를 먼저 열어야 하므로, 파일 DB 항목에 폴더 DB 인덱스가 필요하게 된다.▲ Folder DB Index (2 bytes): A value indicating the index value of a folder to which a file belongs to a folder DB item, and corresponds to a cross-link between a file DB item and a folder DB item. For example, since the history folder to which the China.mp3 file belongs is assigned to [3] in the folder DB item, the folder DB index for the China.mp3 file becomes "3". To get the name of a specific file, you must first open the folder to which the file belongs, so you need a folder DB index for the file DB item.

▲ 코덱 타입(Codec Type, 1 바이트) : 당해 파일에 대한 코덱 정보(예 : MP3, WMA, AVI 등)를 나타낸다. 당해 파일을 프로세싱할 때 저장매체(50)를 액세스하는 횟수를 줄여주기 위한 것이다.▲ Codec Type (1 byte): Shows codec information (eg MP3, WMA, AVI, etc.) for the file. In order to reduce the number of times the storage medium 50 is accessed when processing the file.

▲ 확장 타입(Extend Type, 1 바이트) : 파일 DB에 설계자의 선택에 따라 여분의 정보를 넣기 위한 영역이다.▲ Extended Type (1 byte): This is an area for adding extra information to the file DB according to the designer's choice.

이어서, 폴더 DB 항목에 대한 비트필드에 대해 설명한다.Next, the bit field for the folder DB item will be described.

▲ 폴더 엔트리 로케이션(Folder Entry Location, 4 바이트) : 저장매체(50) 내에서 당해 폴더의 정보가 저장된 물리 번지와 관련된 정보로서, 폴더 정보가 저장된 섹터 주소와 디렉토리 엔트리 옵셋의 조합으로 이루어질 수 있다. 폴더 엔트리 로케이션은 폴더 이름 또는 폴더 속성을 파일 시스템에서 가져올 때 필요한 위치 정보이다.Folder Entry Location (4 bytes): Information related to a physical address where information of the folder is stored in the storage medium 50, and may be a combination of a sector address and a directory entry offset in which folder information is stored. Folder entry locations are the location information needed to get a folder name or folder attribute from the file system.

▲ 상위폴더 DB 인덱스(Parent DB Index, 2 바이트) : 당해 폴더의 상위 폴더가 폴더 DB 항목에서 차지하는 인덱스 값이다. 예를 들면 classic 폴더의 상위 폴더인 music 폴더는 폴더 DB 항목에서 [2]에 배정되어 있으므로 classic 폴더에 대한 상위폴더 DB 인덱스는 "2"가 된다. 특정 폴더의 이름을 가져오기 위해서는 그 폴더가 속한 폴더를 먼저 열어야 하므로, 폴더 DB 항목에 상위폴더 DB 인덱스가 필요하게 된다.▲ Upper Folder DB Index (2 bytes): The upper level of the folder occupies the folder DB item. For example, the music folder, the parent folder of the classic folder, is assigned to [2] in the folder DB item, so the parent folder DB index for the classic folder is "2". In order to get the name of a specific folder, the folder to which the folder belongs must first be opened. Therefore, the parent folder DB index is required for the folder DB item.

▲ 최초파일 DB 인덱스(First File Index, 2 바이트) : 당해 폴더에 속하는 파일 중에서 최초의 파일에 대한 파일 DB 항목에서의 인덱스 값이다. 예를 들면 jazz 폴더에는 모두 17 개의 파일이 속해 있는데, 이중에서 최초 파일인 Jazz1.mp3 파일은 파일 DB 항목에서 [101]에 배정되어 있으므로, jazz 폴더에 대한 최초파일 DB 인덱스는 "101"이 된다. 최초파일 DB 인덱스는 파일을 고속 탐색하는 데에 유용하게 사용될 수 있다.▲ First File Index (2 bytes): Index value in the file DB item for the first file among the files belonging to the folder. For example, all 17 files belong to the jazz folder. Among them, the first file Jazz1.mp3 is assigned to [101] in the file DB item, so the first file DB index for the jazz folder is "101". . The original file DB index can be useful for fast file searching.

이상의 실시예와 같이 데이터베이스(30)의 비트필드를 구성한다면 파일 항목 하나당 6 바이트가 소요되므로 음악 파일이 10,000 개 있는 경우라도 60 킬로바이트의 메모리 공간만 필요할 뿐이다. (음악 파일이 10,000 개 있더라도 폴더의 갯수는 일반적으로 많지 않으며, 그에 따라 폴더 항목에 소요되는 메모리 공간은 파일 항목에 소요되는 메모리 공간에 비해 상대적으로 매우 작을 것으로 예상되어, 메모리 공간 분석에서는 무시하였다.)If the bitfield of the database 30 is configured as in the above embodiment, it takes 6 bytes per file item, so even if there are 10,000 music files, only 60 kilobytes of memory space is required. (Even if there are 10,000 music files, the number of folders is generally not large. Therefore, the memory space required for the folder item is expected to be relatively small compared to the memory space required for the file item. )

위 메모리 공간 분석 결과를 전술하였던 별다른 고려 없이 데이터베이스를 구성할 경우 약 2.6 내지 3 메가바이트의 메모리 공간이 필요하다는 분석 결과와 비교한다면 데이터베이스의 메모리 사용 효율이 약 50 배 정도 개선된 것이어서 매우 획기적인 결과임에 분명하다. Compared to the analysis result that the memory space analysis requires about 2.6 to 3 megabytes of memory space without considering the above-mentioned memory space analysis results, the memory usage efficiency of the database is improved by about 50 times, which is a very significant result. Is obvious.

특히, 60 킬로바이트 정도의 메모리 공간이라면 상용 시스템 콘트롤러 칩에 내장된 메모리 공간으로도 충분히 수용 가능할 뿐만 아니라 더 나아가 캐쉬(cache)로도 구성이 가능한 정도여서 메모리 공간의 절약뿐만 아니라 제품 가격의 절감 및 시스템 성능 향상도 추가로 얻을 수 있는 것이다. In particular, the memory space of about 60 kilobytes is not only enough to accommodate the memory space built into the commercial system controller chip, but also can be configured as a cache, which not only saves memory space but also reduces product price and system performance. Additional improvements are also available.

도 5는 본 발명에 따른 데이터베이스 관리 방법에서 데이터베이스(30)와 할당테이블(60) 간의 파일 이름이나 폴더 이름을 효과적으로 획득하는 방법의 개념을 도시한 도면이다.5 is a diagram illustrating the concept of a method for effectively obtaining a file name or a folder name between the database 30 and the allocation table 60 in the database management method according to the present invention.

도 5를 참조하면, 파일 이름을 효과적으로 획득하기 위하여, 관리장치(10)가 운영하는 데이터베이스(30)는 파일에 대한 정보를 보유하는 파일 DB 항목과 폴더에 대한 정보를 보유하는 폴더 DB 항목을 포함하여 이루어지고, 다시 파일 DB 항목은 각 파일의 엔트리 로케이션과 파일이 속한 폴더의 DB 인덱스와 파일 엔트리 로케이션을 보유하고, 폴더 DB 항목은 각 폴더의 엔트리 로케이션과 상위 폴더의 DB 인덱스와 최초파일 DB 인덱스를 보유한다.Referring to FIG. 5, in order to effectively obtain a file name, the database 30 operated by the management apparatus 10 includes a file DB item holding information on a file and a folder DB item holding information on a folder. In addition, the file DB item holds the entry location of each file, the DB index of the folder to which the file belongs, and the file entry location, and the folder DB item contains the DB location of each folder, the DB index of the parent folder, and the original file DB index. Holds.

먼저, 데이터베이스(30)에 속하는 특정 파일 항목에 대한 이름이 요청된 경우에 대해 설명한다. 이해를 돕기 위하여, 파일 DB 항목의 인덱스 [101]에 대한 파일 이름이 요청된 경우를 예로 들어 기술한다.First, a case where a name for a specific file item belonging to the database 30 is requested will be described. For better understanding, a case where a file name for the index [101] of the file DB item is requested is described as an example.

먼저, 프로세서(20)는 파일 DB 항목으로부터 파일 엔트리 로케이션과 폴더 DB 인덱스를 획득한다. 파일 인덱스 [101]의 경우, 도 5 좌측의 파일 DB 항목에서 빗금친 부분으로부터 기록되어 있던 특정의 파일 엔트리 로케이션 값과 폴더 DB 인덱스 "8"이 획득된다.First, the processor 20 obtains a file entry location and a folder DB index from the file DB item. In the case of the file index [101], a specific file entry location value and folder DB index " 8 " recorded from the portion hatched in the file DB item on the left side of Fig. 5 are obtained.

프로세서(20)는 폴더 DB 인덱스에 대응되는 폴더 DB 항목으로부터 폴더 엔트리 로케이션을 획득한다. 파일 인덱스 [101]의 경우, 도 5 우측의 폴더 DB 항목에서 빗금친 부분인 폴더 항목[8]로부터 기록되어 있던 특정의 폴더 엔트리 로케이션 값이 획득된다.The processor 20 obtains a folder entry location from the folder DB item corresponding to the folder DB index. In the case of the file index [101], a specific folder entry location value recorded from the folder item [8], which is a hatched portion of the folder DB item on the right side of Fig. 5, is obtained.

프로세서(20)는 위 획득된 폴더 엔트리 로케이션을 사용하여 저장매체(50)의 할당테이블(60)로부터 해당 폴더를 오픈한다. 파일 인덱스 [101]의 경우, "jazz" 폴더가 오픈된다. The processor 20 opens the folder from the allocation table 60 of the storage medium 50 using the folder entry location obtained above. In the case of the file index [101], the "jazz" folder is opened.

위 오픈된 폴더는 해당 폴더에 소속된 파일에 대한 정보(파일 이름 및 파일 엔트리 로케이션 포함)를 포함하고 있으므로 프로세서(20)는 이들 파일 정보와 위 획득된 파일 엔트리 로케이션을 비교하여, 매칭되는 파일 정보를 추출해낸다. 이 추출된 파일 정보에 포함되어 있는 파일 이름이 바로 얻고자 하는 파일 이름인 것이다.Since the opened folder includes information (including a file name and a file entry location) of files belonging to the folder, the processor 20 compares these file information with the obtained file entry location and matches the file information. Extract The file name included in the extracted file information is the file name to be obtained.

파일 인덱스 [101]의 경우, jazz 폴더에는 Jazz1.mp3 내지 Jazz17.mp3 파일에 대한 총 17 개의 파일 정보가 연결되어 있다. 이들 각각은 해당 파일에 대한 이름과 해당 파일의 엔트리 로케이션 또는 이를 구성하는 정보(예: 섹터 주소, 디렉토리 엔트리 옵셋)을 포함하고 있으므로, 파일항목[101]로부터 획득한 파일 엔트리 로케이션 값을 이들 17 개의 파일 정보와 비교해보면 매칭되는 파일 정보를 추출할 수 있다. 이 매칭되는 파일 정보에 포함된 파일 이름이 바로 얻고자 하는 파일 이름인 것이다.In the case of the file index [101], a total of 17 file information about Jazz1.mp3 to Jazz17.mp3 files are connected to the jazz folder. Each of these contains the name of the file and the entry location of the file or information constituting it (eg, sector address, directory entry offset), so that the file entry location values obtained from the file entry [101] Compared with the file information, matching file information can be extracted. The file name included in the matching file information is the file name to be obtained.

이상과 같은 절차를 통하여 프로세서(20)는 데이터베이스(30)에 속하는 특정 파일 항목에 대한 파일 이름을 획득하여 제공한다.Through the above procedure, the processor 20 obtains and provides a file name for a specific file item belonging to the database 30.

이어서, 데이터베이스(30)에 속하는 특정 폴더 항목에 대한 이름이 요청된 경우에 대해 설명한다. 이해를 돕기 위하여, 폴더 DB 항목의 인덱스 [8]에 대한 폴더 이름이 요청된 경우를 예로 들어 기술한다.Next, the case where a name for a specific folder item belonging to the database 30 is requested will be described. For the sake of understanding, the case where a folder name for the index [8] of the folder DB item is requested is described as an example.

먼저, 프로세서(20)는 폴더 DB 항목으로부터 폴더 엔트리 로케이션과 상위폴더 DB 인덱스를 획득한다. 폴더 인덱스 [8]의 경우, 도 5 우측의 폴더 DB 항목에서 빗금친 부분으로부터 기록되어 있던 특정의 폴더 엔트리 로케이션 값과 상위폴더 DB 인덱스 "2"가 획득된다.First, the processor 20 obtains a folder entry location and a higher folder DB index from the folder DB item. In the case of the folder index [8], the specific folder entry location value and the upper folder DB index " 2 " recorded from the shaded portion in the folder DB item on the right side of Fig. 5 are obtained.

프로세서(20)는 저장매체(50)로부터 상위폴더 DB 인덱스에 따른 폴더를 오픈한다. 예컨대, 프로세서(20)는 상위폴더 DB 인덱스에 대응되는 폴더 DB 항목으로부터 폴더 엔트리 로케이션을 획득하고, 이를 이용하여 해당 폴더(즉, 상위 폴더)를 오픈한다. 폴더 인덱스 [8]의 경우, 상위폴더 DB 인덱스가 "2"이므로 도 5 우측의 폴더 DB 항목의 폴더 항목[2]로부터 폴더 엔트리 로케이션 값을 획득한 후, 이를 이용하여 저장매체(50)의 할당테이블(60)로부터 해당 폴더를 오픈한다. 폴더 인덱스 [8]의 경우, "music" 폴더가 오픈된다. The processor 20 opens a folder according to a higher folder DB index from the storage medium 50. For example, the processor 20 obtains a folder entry location from a folder DB item corresponding to the upper folder DB index, and opens the corresponding folder (ie, the upper folder) by using the same. In the case of the folder index [8], since the upper folder DB index is "2", the folder entry location value is obtained from the folder item [2] of the folder DB item on the right side of FIG. The folder is opened from the table 60. In the case of folder index [8], the "music" folder is opened.

위 오픈된 폴더는 해당 폴더에 소속된 폴더에 대한 정보(폴더 이름 및 폴더 엔트리 로케이션 포함)를 포함하고 있으므로 프로세서(20)는 이들 폴더 정보와 위 획득된 폴더 엔트리 로케이션을 비교하여, 매칭되는 폴더 정보를 추출해낸다. 이 추출된 폴더 정보에 포함되어 있는 폴더 이름이 바로 얻고자 하는 폴더 이름인 것이다.Since the opened folder includes information (including folder name and folder entry location) of folders belonging to the folder, the processor 20 compares these folder information with the obtained folder entry location, and matches the matching folder information. Extract The folder name included in the extracted folder information is the folder name to be obtained.

폴더 인덱스 [8]의 경우, music 폴더에는 classic 폴더, jazz 폴더, pop 폴더에 대한 총 3 개의 폴더 정보가 연결되어 있다. 이들 각각은 해당 폴더에 대한 이름과 해당 폴더의 엔트리 로케이션 또는 이를 구성하는 정보(예: 섹터 주소, 디렉토리 엔트리 옵셋)을 포함하고 있으므로, 폴더 항목 [8]로부터 획득한 폴더 엔트리 로케이션 값을 이들 3 개의 폴더 정보와 비교해보면 매칭되는 폴더 정보를 추출할 수 있다. 이 매칭되는 폴더 정보에 포함된 이름이 바로 얻고자 하는 폴더 이름인 것이다.In the case of the folder index [8], three pieces of folder information are connected to the music folder: the classic folder, the jazz folder, and the pop folder. Each of these contains a name for the folder and the entry location of the folder or information constituting the same (eg, sector address, directory entry offset), so that the three folder entry location values obtained from folder item [8] are obtained. Compared with the folder information, matching folder information can be extracted. The name included in the matching folder information is the folder name to be obtained.

이상과 같은 절차를 통하여 프로세서(20)는 데이터베이스(30)에 속하는 특정 폴더 항목에 대한 폴더 이름을 획득하여 제공한다.Through the above-described procedure, the processor 20 obtains and provides a folder name for a specific folder item belonging to the database 30.

추가로, 데이터베이스(30)에 포함된 특정 폴더 항목에 대한 파일 탐색이 요청된 경우에 있어서, 요청된 폴더 항목에 대한 최초파일 DB 인덱스를 데이터베이스(30)로부터 획득하고 최초파일 DB 인덱스에 대응되는 파일 항목으로부터 파일 탐색을 시작한다. In addition, when a file search for a specific folder item included in the database 30 is requested, a file corresponding to the original file DB index is obtained from the database 30 and an initial file DB index for the requested folder item is obtained. Start searching for a file from an item.

폴더 DB 항목의 인덱스 [8]에 대한 파일 탐색이 요청된 경우를 예를 들어 설명하면, 도 5 우측의 폴더 항목 [8]에서 최초파일 DB 인덱스는 "101"이 얻어지며, 그로 인하여 파일 항목 [101]로부터 파일 탐색이 이루어진다. 즉, 폴더 항목 [8]인 jazz 폴더에서 파일 탐색이 요청된 경우 파일 항목 [101]인 Jazz1.mp3 파일로부터 파일 탐색이 시작되므로 타당한 결과가 얻어진다.For example, a file search for the index [8] of the folder DB item is described. For example, in the folder item [8] on the right side of FIG. 5, the initial file DB index is “101”, whereby the file item [ File search is performed. That is, when a file search is requested in the jazz folder which is the folder item [8], a file search is started from the Jazz1.mp3 file which is the file item [101], thereby obtaining a valid result.

도 6은 본 발명에 따른 데이터베이스 관리 방법에서 파일 및 폴더에 대한 이름 요청에 따른 처리 방법을 도시한 도면이다.6 is a diagram illustrating a processing method according to a name request for a file and a folder in a database management method according to the present invention.

도 6을 참조하면, 파일 및 폴더에 대한 이름 요청에 따른 처리 방법은 파일 및 폴더에 대한 이름 요청시, 폴더 DB 인덱스와 상위폴더 DB 인덱스가 지명하는 폴더 엔트리 로케이션을 기초하여 오픈된 특정 폴더 및 상위 폴더 내에서 파일 및 폴더에 대한 엔트리 로케이션과 대응된 파일 이름 및 폴더 이름을 획득하는 방법이다.Referring to FIG. 6, a processing method according to a name request for a file and a folder includes a specific folder and a parent opened based on a folder entry location designated by a folder DB index and a parent folder DB index when a name request for a file and a folder is requested. A method of obtaining a file name and a folder name corresponding to an entry location for a file and a folder in a folder.

프로세서(20)는 Jazz1.mp3 파일 이름 요청될 시, 요청된 Jazz1.mp3에 대한 파일 엔트리 로케이션이 속한 jazz 폴더의 폴더 DB 인덱스 "8"을 데이터베이스(30)로부터 획득한다.When the Jazz1.mp3 file name is requested, the processor 20 obtains from the database 30 the folder DB index "8" of the jazz folder to which the file entry location for the requested Jazz1.mp3 belongs.

프로세서(20)는 폴더 DB 인덱스 "8"에 의해 지명된 폴더 엔트리 로케이션에 기초하여 저장매체(50)의 할당테이블(60)의 root 엔트리 구조에 따른 jazz 폴더 8를 오픈하고, 오픈된 jazz 폴더 [8] 내에서 [101]에서부터 [117]까지 입력된 파일 엔트리 로케이션에 대응되는 Jazz1.mp3 라는 파일 이름에서부터 Jazz17.mp3 라는 파일 이름을 순번대로 17개 획득한다.The processor 20 opens the jazz folder 8 according to the root entry structure of the allocation table 60 of the storage medium 50 based on the folder entry location designated by the folder DB index "8", and opens the opened jazz folder [ 8] 17 files are obtained in order from the file name Jazz1.mp3 corresponding to the file entry location entered from [101] to [117] in order from Jazz17.mp3.

또한, 프로세서(20)는 jazz 폴더 이름 요청시, 요청된 jazz 폴더에 대한 폴더 엔트리 로케이션이 속한 상위 폴더인 music 폴더의 상위폴더 DB 인덱스 "2"를 데이터베이스(30)로부터 획득한다.In addition, upon request for the jazz folder name, the processor 20 obtains, from the database 30, the upper folder DB index "2" of the music folder, which is the upper folder to which the folder entry location for the requested jazz folder belongs.

프로세서(20)는 상위폴더 DB 인덱스 2에 의해 지명된 폴더 엔트리 로케이션에 기초하여 저장매체(50)의 할당테이블(60)의 root 엔트리 구조에 따른 music 폴더를 오픈하고, 오픈된 music 폴더 내에서 8 주소 번지에 입력된 폴더 엔트리 로케이션에 대응되는 Jazz 라는 폴더 이름을 획득한다.The processor 20 opens the music folder according to the root entry structure of the allocation table 60 of the storage medium 50 based on the folder entry location designated by the upper folder DB index 2, and then opens the music folder in the opened music folder. Get the folder name Jazz that corresponds to the folder entry location entered at the address.

프로세서(20)는 요청된 jazz 폴더에 대한 최초 파일을 탐색함에 따라, 요청된 jazz 폴더에 대한 최초파일 DB 인덱스 101를 데이터베이스(30)로부터 획득하고, 최초파일 DB 인덱스 [101]에 대응되는 최초 파일인 Jazz1.mp3을 파일 항목으로부터 찾아낸다.As the processor 20 searches for the first file for the requested jazz folder, the processor 20 obtains the first file DB index 101 for the requested jazz folder from the database 30, and the first file corresponding to the original file DB index [101]. Find Jazz1.mp3 from the file entry.

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허청구범위에 기재된 본 발명의 사상 및 영역으 로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although described above with reference to a preferred embodiment of the present invention, those skilled in the art will be variously modified and changed within the scope of the invention without departing from the spirit and scope of the invention described in the claims below I can understand that you can.

도 1은 본 발명에 따른 데이터베이스 관리 기술에서 관리장치와 저장매체 간의 연결을 도시한 도면,1 is a view showing a connection between a management device and a storage medium in the database management technology according to the present invention;

도 2는 저장매체의 파일 및 폴더의 배치 구조, 및 그에 따른 할당테이블의 일 예를 도시한 도면,2 is a diagram illustrating an arrangement structure of files and folders on a storage medium, and an allocation table according thereto;

도 3은 본 발명에 따른 데이터베이스의 일 예를 도시한 도면,3 is a view showing an example of a database according to the present invention;

도 4는 본 발명에 따른 데이터베이스에서 사용되는 파일 항목과 폴더 항목의 비트필드 구성의 일 예를 도시한 도면,4 is a diagram illustrating an example of a bitfield configuration of a file item and a folder item used in a database according to the present invention;

도 5는 본 발명에 따른 데이터베이스와 할당테이블 간의 파일 이름 및 폴더 이름을 효과적으로 획득하는 방법의 개념을 도시한 도면,5 is a diagram illustrating a concept of a method for effectively obtaining a file name and a folder name between a database and an allocation table according to the present invention;

도 6은 본 발명에 따른 파일 및 폴더에 대한 이름 요청에 따른 처리 방법을 도시한 도면이다.6 is a diagram illustrating a processing method according to a name request for a file and a folder according to the present invention.

Claims (7)

저장매체에 저장된 하나 이상의 파일 및 폴더에 대한 데이터베이스를 관리하는 방법에 있어서,A method of managing a database of one or more files and folders stored on a storage medium, the method comprising: (a-1) 상기 저장매체의 할당테이블을 분석하는 단계;(a-1) analyzing the allocation table of the storage medium; (a-2) 상기 저장매체의 파일 및 폴더에 대한 데이터베이스를 생성하는 단계;(a-2) creating a database of files and folders on the storage medium; (a-3) 상기 저장매체의 파일 및 폴더에 대한 엔트리 로케이션을 상기 저장매체의 할당테이블로부터 입수하여 상기 데이터베이스의 파일 항목 및 폴더 항목에 배정하여 기록하는 단계;(a-3) obtaining entry locations of the files and folders of the storage medium from the allocation table of the storage medium, assigning and recording the file items and the folder items of the database; (a-4) 상기 파일 항목에 대하여 각 파일이 속한 폴더의 크로스링크를 상기 데이터베이스에 기록하는 단계;(a-4) recording a crosslink of the folder to which each file belongs to the database for the file item; (b-1) 특정의 파일 항목에 대해 파일 이름을 요청받는 단계;(b-1) receiving a file name for a specific file item; (b-2) 상기 요청된 파일 항목에 대하여 상기 데이터베이스로부터 파일 엔트리 로케이션 및 크로스링크를 획득하는 단계;(b-2) obtaining a file entry location and a crosslink from the database for the requested file item; (b-3) 상기 저장매체로부터 상기 크로스링크에 대응되는 폴더를 오픈하는 단계; 및(b-3) opening a folder corresponding to the crosslink from the storage medium; And (b-4) 상기 오픈된 폴더 내에서 상기 파일 엔트리 로케이션에 대응되는 파일 이름을 획득하여 제공하는 단계;(b-4) acquiring and providing a file name corresponding to the file entry location in the opened folder; 를 포함하여 구성되는 저장매체 데이터베이스 관리 방법.Storage medium database management method comprising a. 청구항 1에 있어서,The method according to claim 1, 상기 저장매체 데이터베이스 관리 방법은,The storage medium database management method, (a-5) 상기 저장매체의 폴더에 대하여 상위 폴더의 DB 인덱스를 데이터베이스에 기록하는 단계;(a-5) recording a DB index of an upper folder with respect to the folder of the storage medium in a database; (b-5) 특정의 폴더 항목에 대하여 폴더 이름을 요청받는 단계;(b-5) receiving a request for a folder name for a specific folder item; (b-6) 상기 요청된 폴더 항목에 대하여 상기 데이터베이스로부터 폴더 엔트리 로케이션 및 상위폴더 DB 인덱스를 획득하는 단계;(b-6) obtaining a folder entry location and a higher folder DB index from the database for the requested folder item; (b-7) 상기 저장매체로부터 상기 상위폴더 DB 인덱스에 따른 폴더를 오픈하는 단계; 및(b-7) opening a folder according to the upper folder DB index from the storage medium; And (b-8) 상기 오픈된 폴더 내에서 상기 폴더 엔트리 로케이션에 대응되는 폴더 이름을 획득하여 제공하는 단계;(b-8) acquiring and providing a folder name corresponding to the folder entry location in the opened folder; 를 더 포함하여 구성되는 저장매체 데이터베이스 관리 방법.Storage medium database management method further comprises. 청구항 2에 있어서,The method according to claim 2, 상기 (b-4) 단계는,Step (b-4) is, (b-4-1) 상기 오픈된 폴더에 포함된 하나 이상의 파일 정보 중 상기 파일 엔트리 로케이션과 매칭되는 파일 정보를 검색하는 단계; 및(b-4-1) searching for file information matching the file entry location among one or more file information included in the opened folder; And (b-4-2) 상기 검색된 파일 정보로부터 파일 이름을 획득하여 제공하는 단계;(b-4-2) acquiring and providing a file name from the retrieved file information; 를 포함하여 구성되는 것을 특징으로 하는 저장매체 데이터베이스 관리 방법.Storage medium database management method comprising a. 청구항 3에 있어서,The method according to claim 3, 상기 (b-8) 단계는,Step (b-8), (b-8-1) 상기 오픈된 폴더에 포함된 하나 이상의 폴더 정보 중 상기 폴더 엔트리 로케이션과 매칭되는 폴더 정보를 검색하는 단계; 및(b-8-1) searching for folder information matching the folder entry location among one or more folder information included in the opened folder; And (b-8-2) 상기 폴더 정보에 기입된 폴더 이름을 획득하여 제공하는 단계;(b-8-2) obtaining and providing a folder name written in the folder information; 를 포함하여 구성되는 것을 특징으로 하는 저장매체 데이터베이스 관리 방법.Storage medium database management method comprising a. 청구항 4에 있어서,The method according to claim 4, 상기 저장매체 데이터베이스 관리 방법은,The storage medium database management method, (a-6) 상기 저장매체의 각 폴더에 대하여 소속된 최초 파일에 대한 DB 인덱스를 상기 데이터베이스에 저장하는 단계;(a-6) storing a DB index of the first file belonging to each folder of the storage medium in the database; (b-9) 특정의 폴더 항목에 대해 파일 탐색을 요청받는 단계;(b-9) receiving a file search request for a specific folder item; (b-10) 상기 요청된 폴더 항목에 대하여 상기 데이터베이스로부터 최초파일 DB 인덱스를 획득하는 단계; 및(b-10) obtaining an original file DB index from the database for the requested folder item; And (b-11) 상기 데이터베이스에서 상기 최초파일 DB 인덱스에 대응되는 파일 항목으로부터 상기 파일 탐색을 수행하는 단계;(b-11) performing the file search from a file item corresponding to the original file DB index in the database; 를 더 포함하여 구성되는 저장매체 데이터베이스 관리 방법.Storage medium database management method further comprises. 청구항 5에 있어서,The method according to claim 5, 상기 저장매체 데이터베이스 관리 방법은,The storage medium database management method, (c-1) 특정의 파일 항목에 대해 재생을 요청받는 단계;(c-1) receiving a request to play a specific file item; (c-2) 상기 요청된 파일 항목에 대하여 상기 데이터베이스로부터 파일 엔트리 로케이션을 획득하는 단계; 및(c-2) obtaining a file entry location from the database for the requested file item; And (c-3) 상기 저장매체에서 상기 파일 엔트리 로케이션에 대응되는 물리적 주소로부터 데이터를 판독하여 재생을 수행하는 단계;(c-3) reading data from the physical address corresponding to the file entry location on the storage medium to perform playback; 를 더 포함하여 구성되는 저장매체 데이터베이스 관리 방법.Storage medium database management method further comprises. 청구항 6에 있어서,The method according to claim 6, 상기 저장매체 데이터베이스 관리 방법은,The storage medium database management method, (a-7) 상기 저장매체의 파일에 대하여 코덱 타입 정보를 상기 저장매체에 기록하는 단계;(a-7) recording codec type information on a file of the storage medium on the storage medium; 를 더 포함하여 구성되는 저장매체 데이터베이스 관리 방법.Storage medium database management method further comprises.
KR1020080032890A 2008-04-08 2008-04-08 Database Managemnet Method for a Storage Medium KR100941026B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080032890A KR100941026B1 (en) 2008-04-08 2008-04-08 Database Managemnet Method for a Storage Medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080032890A KR100941026B1 (en) 2008-04-08 2008-04-08 Database Managemnet Method for a Storage Medium

Publications (2)

Publication Number Publication Date
KR20090107389A KR20090107389A (en) 2009-10-13
KR100941026B1 true KR100941026B1 (en) 2010-02-05

Family

ID=41537198

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080032890A KR100941026B1 (en) 2008-04-08 2008-04-08 Database Managemnet Method for a Storage Medium

Country Status (1)

Country Link
KR (1) KR100941026B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030095438A (en) * 2002-06-10 2003-12-24 삼성전자주식회사 Flash memory file system
JP2004310621A (en) 2003-04-10 2004-11-04 Hitachi Ltd File access method, and program for file access in storage system
KR20060010424A (en) * 2004-07-28 2006-02-02 삼성전자주식회사 Method and apparatus for searching a file of the memory card
KR20070059281A (en) * 2005-12-06 2007-06-12 엘지전자 주식회사 Method and system for managing file in home network personal computer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030095438A (en) * 2002-06-10 2003-12-24 삼성전자주식회사 Flash memory file system
JP2004310621A (en) 2003-04-10 2004-11-04 Hitachi Ltd File access method, and program for file access in storage system
KR20060010424A (en) * 2004-07-28 2006-02-02 삼성전자주식회사 Method and apparatus for searching a file of the memory card
KR20070059281A (en) * 2005-12-06 2007-06-12 엘지전자 주식회사 Method and system for managing file in home network personal computer

Also Published As

Publication number Publication date
KR20090107389A (en) 2009-10-13

Similar Documents

Publication Publication Date Title
US7761648B2 (en) Caching method for NAND flash translation layer
US20140223089A1 (en) Method and device for storing data in a flash memory using address mapping for supporting various block sizes
CN108255408B (en) Data storage method and system
CN107526550B (en) Two-stage merging method based on log structure merging tree
CN103838853B (en) Mixed file system based on different storage media
CN108052643B (en) Data storage method and device based on LSM Tree structure and storage engine
US20100235359A1 (en) File retrieval method and device and time stream file processor
CN101464901B (en) Object search method in object storage device
CN108491402B (en) Method for implementing lightweight file system
US20120158804A1 (en) Method for converting data in optical disc drive
TWI397060B (en) Disk layout method for object-based storage device
US8176103B2 (en) File access method and system
CN102236609B (en) Memory device and access method thereof
CN105260139B (en) A kind of disk management method and system
CN114416646A (en) Data processing method and device of hierarchical storage system
US20070050396A1 (en) Fast algorithm for building multimedia library database
CN108829897A (en) Date storage method and data-storage system
KR100941026B1 (en) Database Managemnet Method for a Storage Medium
CN104657471B (en) Method and system for establishing pre-allocated file of FAT file system
CN114996275A (en) Key value storage method based on multi-tree conversion mechanism
US20110078391A1 (en) Information recording apparatus, information recording method, and computer-readable medium
US20100268870A1 (en) Data storage device and data storage system including the same
CN100444166C (en) Position-based interface access method and device for FAT file system
CN100541490C (en) The directory entry system and the method thereof that need not to reclaim
CN105630692A (en) File storage system storing file directory by using MRAM

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130107

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20140107

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20150114

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20160104

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20170124

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20180122

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20190115

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20200115

Year of fee payment: 11