KR20190061549A - File system and method of storing files based on the file system - Google Patents

File system and method of storing files based on the file system Download PDF

Info

Publication number
KR20190061549A
KR20190061549A KR1020170160048A KR20170160048A KR20190061549A KR 20190061549 A KR20190061549 A KR 20190061549A KR 1020170160048 A KR1020170160048 A KR 1020170160048A KR 20170160048 A KR20170160048 A KR 20170160048A KR 20190061549 A KR20190061549 A KR 20190061549A
Authority
KR
South Korea
Prior art keywords
file
storage area
divided
area
information
Prior art date
Application number
KR1020170160048A
Other languages
Korean (ko)
Other versions
KR102094786B1 (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 KR1020170160048A priority Critical patent/KR102094786B1/en
Publication of KR20190061549A publication Critical patent/KR20190061549A/en
Application granted granted Critical
Publication of KR102094786B1 publication Critical patent/KR102094786B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Abstract

The present invention relates to a file system and a file storing method based on the same. According to the present invention, the file system divides a file storage region to correspond to concurrently storable image data streams one by one. The file storing method based on the file system sets each of divided storage regions of the file storage region to correspond to a concurrently storable image data stream one by one, wherein a maximum of only one file is recorded in each divided storage region concurrently to enable each file to be stored at continuous clusters of the storage region. Thereby, the present invention can minimize an FAT update overhead to reduce update costs and minimize an abused file system space as well as enhance reliability.

Description

파일 시스템 및 상기 파일 시스템을 이용한 파일 저장 방법{File system and method of storing files based on the file system}[0001] The present invention relates to a file system and a file storing method using the file system,

본 발명은 차량용 블랙박스 시스템이나 멀티 채널을 갖는 폐쇄회로 TV 와 같은 영상 저장 장치에 대한 파일 저장 방법 및 파일 시스템에 관한 것으로서, 더욱 구체적으로는, FAT 32 파일 시스템 등과 같은 종래의 파일 시스템과 호환이 되면서도 공간의 낭비가 없고 기록 성능을 개선시킴과 동시에 신뢰성을 향상시킨 새로운 파일 시스템 및 상기 파일 시스템을 적용한 파일 저장 방법에 관한 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file storage method and a file system for a video storage device such as a vehicle black box system or a multi-channel closed circuit TV, and more particularly, to a file storage system compatible with a conventional file system such as a FAT 32 file system A new file system that improves recording performance while improving reliability, and a file storage method using the file system.

차량용 블랙박스 시스템을 위한 파일시스템으로는 마이크로소프트(Microsoft)사의 FAT32 파일시스템이 주로 사용되어 왔다. 이는 FAT32 파일시스템이 사실상 라이선스 프리(license free)이기 때문에 개발 회사들이 무료로 사용할 수 있고, 차량용 블랙박스의 저장장치로 주로 사용되는 메모리 카드가 기본적으로 FAT32 파일시스템 포맷으로 시판되고 있기 때문이다. 참고로, 64GB 이상의 용량이 큰 메모리 카드는 exFAT 파일시스템 포맷으로 시판되고 있다. Microsoft's FAT32 file system has been the main file system for automotive black box systems. This is because the FAT32 file system is virtually license-free, so development companies can use it for free, and memory cards, which are mainly used as storage devices for car black boxes, are basically available in the FAT32 file system format. For reference, a memory card with a capacity of 64 GB or more is available as an exFAT file system format.

본 발명에서는 차량용 블랙박스 파일시스템에서 가장 많이 사용되고 있는 FAT32 파일시스템을 실시예로 하여 설명하기로 한다. 그러나 본 발명이 FAT32 파일시스템에만 국한되어 적용될 수 있는 것은 아니며 exFAT 파일시스템 등 기존의 다른 파일시스템에도 적용될 수 있음을 미리 밝혀 둔다. In the present invention, a FAT32 file system, which is most used in a vehicle black box file system, will be described as an embodiment. However, it should be noted that the present invention can be applied not only to the FAT32 file system but also to other existing file systems such as an exFAT file system.

도 1은 마이크로소프트사의 FAT32 파일 시스템의 기본 구조를 도시한 구조도이다. 1 is a structural view showing the basic structure of a FAT32 file system of Microsoft Corporation.

도 1을 참조하면, 전술한 마이크로소프트사의 FAT32 파일시스템은 전체 파일시스템 공간을 일정한 크기의 저장 단위인 클러스터(cluster)로 쪼개어 이를 할당의 기본 단위로 사용한다. 예를 들어, 클러스터의 크기가 32KB 라면, 32GB 크기의 메모리 카드는 모두 1M (= 1024 x 1024) 개의 클러스터를 가지게 된다. 클러스터 할당 정보는 FAT (File Allocation Table) 테이블이라고 불리는 파일시스템 관리용 자료구조에 저장되어 관리된다. FAT 테이블의 한 엔트리는 4 바이트 크기이며 엔트리 개수는 파일시스템의 총 클러스터 개수와 같다.Referring to FIG. 1, the FAT32 file system of Microsoft Corporation divides the entire file system space into clusters each having a predetermined size, and uses the divided file system as a basic unit of allocation. For example, if the size of a cluster is 32 KB, then all 32 GB memory cards will have 1M (= 1024 x 1024) clusters. The cluster allocation information is stored and managed in a file system management data structure called a FAT (File Allocation Table) table. One entry in the FAT table is 4 bytes in size and the number of entries is equal to the total number of clusters in the file system.

다른 파일시스템과 마찬가지로 FAT32 파일시스템도 트리(tree) 형태의 디렉토리(directory) 구조를 지원한다. 클러스터 2 번에 루트(root) 디렉토리가 존재하며 이 루트 디렉토리 안에 파일 또는 서브 디렉토리(sub-directory)를 만들 수 있다. 디렉토리는 32 바이트 크기를 갖는 디렉토리 엔트리(directory entry)들로 구성되는데, 각 디렉토리 엔트리는 하나의 파일 또는 서브 디렉토리에 대한 정보를 가지고 있다. Like other file systems, the FAT32 file system also supports a tree-like directory structure. There is a root directory in cluster # 2, and you can create files or subdirectories in this root directory. A directory is composed of directory entries having a size of 32 bytes, each directory entry having information on one file or subdirectory.

이 디렉토리 엔트리에 기록되는 정보 중 하나가 바로 해당 파일에 할당된 첫 번째 클러스터의 번호이다. 두 번째 클러스터 번호부터는 FAT 테이블 상에서 확인할 수 있다. 클러스터 번호를 인덱스로 사용하여 FAT 테이블을 조회했을 때, 접근된 FAT 엔트리에 저장되어 있는 값이 다음번 클러스터에 대한 번호이다. 이런 식으로 파일에 할당된 클러스터 정보를 체인(chain) 형태로 추적할 수 있는데, FAT 테이블 상에 저장되어 있기 때문에 이를 FAT 체인이라 부른다. FAT 엔트리에 저장된 값이 0x0FFFFFF8 이상인 경우, 이는 FAT 체인의 끝(END)을 의미하는 것으로서, 해당 파일에 할당된 클러스터가 더 이상 없음을 의미한다. FAT 엔트리가 초기 설정값인 0x00000000 을 가지면, 해당 클러스터는 아직 할당되지 않은 미사용 상태임을 의미한다.One of the information recorded in this directory entry is the number of the first cluster allocated to the file. The second cluster number can be checked on the FAT table. When the FAT table is looked up using the cluster number as an index, the value stored in the accessed FAT entry is the number for the next cluster. In this way, the cluster information assigned to the file can be tracked in a chain, which is stored in the FAT table, so this is called the FAT chain. If the value stored in the FAT entry is 0x0FFFFFF8 or more, this means the end of the FAT chain (END), meaning that there are no more clusters allocated to the file. If the FAT entry has an initial value of 0x00000000, it indicates that the cluster is unused, which is not yet allocated.

파일이 연속된 클러스터들에 계속 할당된다면 FAT 체인도 연속적인 형태가 된다. 예를 들어, 어떤 파일이 1000번 클러스터부터 시작하여 연속으로 5개의 클러스터를 할당 받는다면, FAT 체인은 1000→1001→1002→1003→1004→END 와 같은 형태가 된다. 반면, 미사용 중인 클러스터가 모여 있지 않고 여기저기 흩어져 있는 경우에는, 파일이 연속된 클러스터를 할당받지 못하는 경우도 발생하게 된다. If a file is still allocated to contiguous clusters, then the FAT chain is also contiguous. For example, if a file is allocated 5 clusters consecutively starting from 1000 clusters, the FAT chain will have the form 1000 → 1001 → 1002 → 1003 → 1004 → END. On the other hand, if the unused clusters are not clustered and scattered around, the files may not be allocated to successive clusters.

이와 같이, 미사용 중인 클러스터들이 모여 있지 않고 여기 저기 흩어져 있는 경우, 이를 파일 시스템 단편화(fragmentation)라 한다. 이러한 파일 시스템 단편화는 파일시스템을 오래 사용할수록 더 심해진다. 따라서 위의 예처럼 클러스터들을 연속적으로 할당받게 되는 경우보다는 1000→2122→3080→4305→5202→END 처럼 클러스터들을 비연속적으로 할당받게 되는 경우가 점점 더 많아지게 된다.Thus, when unused clusters are not clustered and scattered around, this is referred to as file system fragmentation. This file system fragmentation becomes worse the longer the file system is used. Therefore, clusters are allocated to non-contiguous clusters such as 1000 → 2122 → 3080 → 4305 → 5202 → END, rather than being allocated consecutively as in the above example.

파일이 연속된 클러스터를 할당받지 못해서 FAT 체인이 비연속적으로 구성되는 경우, FAT 테이블 갱신 오버헤드가 커지는 문제점이 생긴다. 예를 들어, 하나의 파일에 할당된 클러스터들이 연속적으로 할당되어 FAT 체인이 1000→1001→1002→1003→1004→END와 같이 형성된 경우, 이 정보를 FAT 테이블에 저장하기 위해서는 1개의 FAT 섹터(FAT 테이블 중 해당 FAT 엔트리들을 포함하고 있는 섹터)를 갱신해 주면 된다. 반면, 하나의 파일에 할당된 클러스터들이 비연속적으로 할당되어 모든 클러스터들이 흩어져 있어서, FAT 체인이 1000→2122→3080→4305→5202→END 와 같이 형성된 경우, 이 정보를 FAT 테이블에 저장하기 위해서는 각 FAT 엔트리가 포함되어 있는 5개의 FAT 섹터를 갱신해 주어야 한다.If the FAT chain is non-contiguously constructed because the files are not allocated to successive clusters, there arises a problem that the FAT table update overhead becomes large. For example, when the clusters allocated to one file are consecutively allocated and the FAT chain is formed as 1000 → 1001 → 1002 → 1003 → 1004 → END, in order to store this information in the FAT table, one FAT sector (FAT The sector including the corresponding FAT entries in the table). On the other hand, if clusters allocated to one file are allocated discontinuously and all the clusters are scattered so that the FAT chain is formed as 1000 → 2122 → 3080 → 4305 → 5202 → END, in order to store this information in the FAT table, You need to update the five FAT sectors that contain FAT entries.

이렇게 FAT 테이블 갱신 횟수가 늘어나게 되면 다음과 같은 문제점이 파생된다.If the number of FAT table updates is increased, the following problems arise.

① 디스크에 대한 기록 횟수가 증가하기 때문에 성능 저하가 발생한다. 특히, 차량용 블랙박스 시스템에서 저장 용도로 주로 사용되는 메모리 카드의 경우, 섹터(512바이트)와 같은 작은 단위의 빈번한 쓰기 동작은 더욱 심각한 성능 저하 현상을 유발한다.(1) Since the number of times of writing to the disk increases, performance deterioration occurs. Particularly, in the case of a memory card mainly used for storage in a vehicle black box system, a frequent write operation in a small unit such as a sector (512 bytes) causes a more serious performance degradation phenomenon.

② 파일시스템이 손상될 가능성이 높아진다. FAT32 파일시스템의 관리용 데이터인 메타 데이터(meta-data), 즉 FAT 테이블과 디렉토리는 그 일관성(consistency)이 유지되어야 한다. 그러나 메타 데이터를 갱신하는 도중에 갑자기 전원이 끊기거나 사용자가 메모리 카드를 뽑으면, 일부만 저장되고 일부는 저장되지 않음으로써 파일시스템의 일관성이 손상되는 결과를 초래한다. 이렇게 파일시스템이 손상되면 일부 파일이 유실되거나 심각하게는 나중에 파일시스템 자체가 인식되지 않을 수도 있다. FAT 테이블 갱신 횟수가 늘어나면 이런 위험성에 노출될 확률이 그만큼 높아진다. (2) There is a high possibility that the file system is damaged. The meta-data, that is, the FAT table and directory, must be maintained in consistency for management of the FAT32 file system. However, if the power is suddenly lost while the metadata is being updated, or if the user pulls out the memory card, some of them are stored and some are not stored, which results in inconsistency of the file system. This corruption of the file system may cause some files to be lost or even the file system itself not to be recognized at a later time. As the number of FAT table updates increases, the probability of exposure to these risks increases.

이상과 같은 위험성 때문에 기존의 FAT32 파일시스템 대신 다른 파일시스템을 사용하려는 다양한 시도들이 있었다. 여기서 다른 파일시스템이란, FAT32와는 호환되지 않는 파일시스템을 말하며 블랙박스 전용으로 설계된 것들이다. 그 대표적인 예가 TAT(Time Allocation Table) 파일시스템이다. 전술한 TAT 파일시스템은, 시간상 연속적인 데이터들은 파일시스템 상에서도 연속적인 공간에 할당되도록 단순화시킴으로써 파일시스템의 손상 가능성을 최소화시킨 것을 특징으로 한다. 그러나, 이러한 방법은 FAT32 파일시스템과 호환되지 않는 큰 단점을 갖는다. 즉, FAT32 파일 시스템과 호환이 되지 못하므로, 전술한 방식의 파일 시스템에 의해 저장된 블랙박스 영상을 PC 상에서 재생하기 위해서는 PC에 전용 영상 재생기를 별도로 설치해야 하는 불편함이 따른다. Because of these risks, there have been various attempts to use a different file system instead of the existing FAT32 file system. Here, other file systems are file systems that are incompatible with FAT32 and are designed specifically for black boxes. A typical example is the TAT (Time Allocation Table) file system. The TAT file system described above is characterized by minimizing the possibility of file system corruption by simplifying time-sequential data to be allocated to contiguous space on the file system as well. However, this method has a large disadvantage that it is incompatible with the FAT32 file system. That is, since it is not compatible with the FAT32 file system, it is inconvenient to separately install a dedicated video player in a PC in order to reproduce a black box image stored by a file system of the above-described method on a PC.

그런 측면에서 일반적으로 널리 사용되고 있는 FAT32 파일 시스템과의 호환성을 유지하는 범위 내에서, 기존의 FAT32 파일시스템을 개선하려는 시도도 있었다. 대표적인 예로 파일시스템 공간이 완전히 채워지도록 일정한 크기의 파일들을 미리 만들어두는 방법이 있다. 도 8은 이러한 종래의 기술에 따라, 하나의 저장 영역을 사전 설정된 일정 크기로 분할한 후 분할 영역에 각각 하나의 파일을 기록한 상태를 도시한 예시도이다. 이 방법에 의하면, 새로운 영상 데이터를 기록할 때에는, 일정한 크기로 미리 생성된 파일들을 그대로 둔 채, 그 중에서 가장 오래된 파일을 선택하여 파일 이름을 변경하고 새로운 데이터를 이미 할당되어 있는 클러스터에 기록한다. 결과적으로 파일시스템의 메타 데이터 중에서 디렉토리 엔트리만 변경하고 FAT 테이블은 전혀 변경하지 않기 때문에 파일시스템의 손상 가능성을 낮출 수 있게 된다. 그러나, 도 8에 도시된 바와 같이, 일정 시간 분량의 영상이라 할지라도 실제 인코딩된 영상 데이터의 크기는 차이가 많이 날 수 있기 때문에, 일정한 크기의 파일 할당 공간을 거의 다 채울 수도 있고 많이 남겨 놓을 수도 있다. 그 결과, 전체 파일시스템 공간 중에서 적지 않은 부분이 낭비될 수 있다는 단점이 있다.In this respect, there has been an attempt to improve the existing FAT32 file system to the extent that it maintains compatibility with the FAT32 file system, which is generally widely used. A typical example is to pre-create files of a certain size so that the file system space is completely filled. FIG. 8 is an exemplary diagram illustrating a state in which one storage area is divided into a predetermined size and one file is recorded in each divided area according to this conventional technique. According to this method, when new video data is recorded, the oldest file is selected with a predetermined size, and the file name is changed and new data is recorded in the already allocated cluster. As a result, since only the directory entry is changed and the FAT table is not changed at all in the meta data of the file system, the possibility of damaging the file system can be reduced. However, as shown in FIG. 8, since the size of the actually encoded image data may vary greatly even for a certain amount of time, it is possible to fill the file allocation space of a predetermined size almost have. As a result, there is a disadvantage that a small portion of the entire file system space can be wasted.

요약하면, 차량용 블랙박스 시스템을 위한 종래의 파일시스템은 크게 두 가지 형태로 구분해 볼 수 있다. 하나는 블랙박스 시스템을 위한 전용 파일시스템을 사용하는 경우인데, 높은 신뢰성을 제공하지만 FAT32 파일시스템과 호환되지 않기에 PC 상에서 영상을 확인하기 위해서는 전용 영상 재생기를 별도로 설치해야 하는 불편이 따른다. 다른 하나는 호환성을 위해 FAT32 파일시스템을 그대로 사용하는 경우인데, 신뢰성 개선을 위해 모든 파일들을 미리 할당해 두는 방법 등을 적용하였다. 그러나 그 경우 파일시스템 공간이 낭비되는 등의 부수적인 문제점이 존재하였다.In summary, a conventional file system for a vehicle black box system can be roughly divided into two types. One is a dedicated file system for the black box system, which provides high reliability but is incompatible with the FAT32 file system, so it is inconvenient to install a dedicated image player in order to check the image on the PC. The other is to preserve the FAT32 file system for compatibility. To improve reliability, all files are preallocated. However, there are additional problems such as wasting file system space.

한국등록특허공보 제 10-1370503호Korean Patent Registration No. 10-1370503 한국공개특허공보 제 10-2013-0071850호Korean Patent Laid-Open Publication No. 10-2013-0071850

전술한 문제점을 해결하기 위한 본 발명의 목적은 기존의 FAT 32 파일 시스템 또는 exFAT 파일 시스템과 호환되면서도, 파일 시스템의 FAT 테이블 갱신 오버헤드를 최소화시키고 신뢰성을 향상시키면서 메모리의 저장 공간의 낭비가 없도록 하는 파일 시스템을 제공하는 것이다. It is an object of the present invention to solve the above-described problems and to provide an optical disk apparatus which is compatible with an existing FAT 32 file system or an exFAT file system and minimizes the overhead of FAT table update of the file system, File system.

본 발명의 다른 목적은 전술한 파일 시스템을 기반으로 한 파일 저장 방법을 제공하는 것이다. Another object of the present invention is to provide a file storage method based on the above-described file system.

전술한 기술적 과제를 달성하기 위한 본 발명의 제1 특징에 따른 파일 저장 방법은, 하나 또는 둘 이상의 영상 데이터 스트림들을 저장가능한 파일 저장 장치로의 파일 저장 방법에 관한 것으로서, (a) 파일 저장 장치에 대하여, PBR(Partition Boot Record) 영역, 제1 FAT(File Allocation Table) 영역, 제2 FAT 영역, 루트 디렉토리 영역, 및 파일 저장 영역을 포함하고, 상기 파일 저장 영역은 시스템 저장 영역 및 사전 설정된 개수의 분할 저장 영역들을 포함하는 것을 특징으로 하는 파일 시스템으로 포맷(format)하여 초기화시키는 단계; (b) 파일명과 함께 새로운 파일의 기록 요청이 발생하면, 파일 저장 영역 중 상기 파일명에 대응하여 사전 설정된 분할 저장 영역을 지정하고, 상기 지정된 분할 저장 영역의 미사용 공간을 확인하고, 상기 확인된 미사용 공간에 사전 설정된 크기의 연속된 공간을 할당하고 FAT 테이블을 갱신하는 단계; (c) 상기 할당된 공간에 실제 파일 데이터를 기록하는 단계; (d) 파일 데이터의 기록이 완료되면, 상기 할당된 공간 중 미사용 공간은 반환하고 FAT 테이블을 갱신하는 단계; 를 구비하고, 상기 파일 저장 영역의 분할 저장 영역들은 상기 파일 저장 장치에 동시에 저장가능한 영상 데이터 스트림들에 일대일 대응되도록 구비되고, 상기 분할 저장 영역들의 각각은 동시에 저장가능한 영상 데이터 스트림들 중 하나와 일대일 대응되도록 지정된 것을 특징으로 하며, 상기 파일 저장 영역의 시스템 저장 영역은 상기 분할 저장 영역들에 대한 정보를 기록한다. According to an aspect of the present invention, there is provided a method of storing a file in a file storage device capable of storing one or more video data streams, the method comprising the steps of: (a) (FAT) area, a root directory area, and a file storage area, the file storage area including a system storage area and a predetermined number of Formatting and initializing the file system into a file system characterized by including divided storage areas; (b) designating a predetermined divided storage area corresponding to the file name in the file storage area when a new file recording request is made with the file name, checking the unused space of the designated divided storage area, Allocating a contiguous space of a predetermined size to the FAT table and updating the FAT table; (c) recording actual file data in the allocated space; (d) when recording the file data is completed, returning the unused space among the allocated spaces and updating the FAT table; Wherein the divided storage areas of the file storage area correspond to one-to-one correspondence with image data streams that can be simultaneously stored in the file storage device, and each of the divided storage areas corresponds to one of the simultaneously- And the system storage area of the file storage area records information on the divided storage areas.

전술한 제1 특징에 따른 파일 저장 방법에 있어서, 상기 (b) 단계에서 파일 기록 요청시 제공되는 파일명은 채널에 대한 정보 및 영상 데이터 스트림 타입에 대한 정보를 포함하는 것이 바람직하다. In the file storage method according to the first aspect, it is preferable that the file name provided in the file write request in the step (b) includes information on a channel and information on a video data stream type.

전술한 제1 특징에 따른 파일 저장 방법에 있어서, 상기 (b) 단계에서 파일 기록 요청에 대응하여 할당되는 연속된 공간의 크기는 기록 요청된 파일의 가능한 최대 크기인 것이 바람직하다. In the file storage method according to the first aspect, it is preferable that the size of the contiguous space allocated in response to the file write request in the step (b) is a maximum possible size of the file requested to be recorded.

전술한 제1 특징에 따른 파일 저장 방법에 있어서, 상기 (b) 단계에서 새로운 파일 기록 요청이 발생하면, 하나의 분할 저장 영역에는 동시에 1개의 파일만을 기록하도록 제어하는 것이 바람직하다. In the file storage method according to the first aspect, it is preferable that when a new file write request is generated in the step (b), only one file is simultaneously recorded in one divided storage area.

전술한 제1 특징에 따른 파일 저장 방법에 있어서, 상기 (b) 단계에서 상기 확인된 미사용 공간에 사전 설정된 크기의 연속된 공간을 할당함에 있어서, 상기 미사용 공간에 상기 사전 설정된 크기의 연속된 여유 공간이 존재하지 않는 경우, 상기 지정된 분할 저장 영역에서 가장 오래된 파일을 삭제하여 추가의 미사용 공간을 획득하고, 상기 미사용 공간 및 파일이 삭제된 상기 추가의 미사용 공간으로부터 순차적으로 사전 설정된 크기의 연속된 공간을 할당하는 것이 바람직하다. In the file storage method according to the first aspect, in the allocating of the consecutive space of a predetermined size to the identified unused space in the step (b), a continuous free space of the predetermined size If there is no existing space, deleting the oldest file in the designated divided storage area to acquire additional unused space, and sequentially allocating a continuous space of a predetermined size from the unused space and the additional unused space in which the file is deleted .

전술한 제1 특징에 따른 파일 저장 방법에 있어서, 상기 파일 저장 영역의 시스템 저장 영역에 기록된 상기 분할 저장 영역들에 대한 정보는 분할 저장 영역들의 개수, 각 분할 저장 영역들의 위치 정보, 각 분할 저장 영역들의 크기 정보 및 각 분할 저장 영역들에 일대일 대응되도록 설정된 영상 데이터 스트림 타입에 대한 정보들을 포함하는 것이 바람직하다. In the file storage method according to the first aspect, the information on the divided storage areas recorded in the system storage area of the file storage area may include a number of divided storage areas, position information of each divided storage areas, Size information of the regions, and information on a video data stream type set to be one-to-one correspondence to each divided storage areas.

전술한 제1 특징에 따른 파일 저장 방법에 있어서, 상기 파일 저장 방법은 하나 또는 둘 이상의 카메라를 구비하는 차량용 블랙박스 시스템(car black-box system)의 파일 저장 장치에 적용되고, 각 카메라에 대하여 하나 또는 둘 이상의 영상 데이터 스트림 타입이 제공되는 것이 바람직하다. In the file storage method according to the first aspect, the file storage method is applied to a file storage device of a car black-box system having one or two cameras, and one Or two or more video data stream types are provided.

전술한 제1 특징에 따른 파일 저장 방법에 있어서, 상기 파일 저장 방법은 하나 또는 둘 이상의 카메라를 구비하는 폐쇄 회로 텔레비젼(Closed Circuit Television;'CCTV') 시스템의 파일 저장 장치에 적용된 것이 바람직하다. In the file storage method according to the first aspect, the file storage method is preferably applied to a file storage device of a closed circuit television (CCTV) system having one or two cameras.

본 발명의 제2 특징에 따른 파일 시스템은, 하나 또는 둘 이상의 영상 데이터 스트림들을 저장가능한 파일 저장 장치의 파일 시스템에 관한 것으로서, 파일 시스템에 대한 정보가 저장된 PBR(Partition Boot Record) 영역; 클러스터 할당 정보를 포함하는 파일 할당 테이블(File Allocation Table; 이하 'FAT'라 한다)이 저장된 제1 FAT 영역; 상기 파일 할당 테이블에 대한 복구용 FAT가 저장되는 상기 제2 FAT 영역; 디렉토리 엔트리들이 저장된 루트 디렉토리 영역; 및 사전 설정된 개수의 분할 저장 영역들 및 시스템 저장 영역을 포함하는 파일 저장 영역;을 구비하고, A file system according to a second aspect of the present invention relates to a file system of a file storage device capable of storing one or two image data streams, the file system comprising: a PBR (Partition Boot Record) area in which information about a file system is stored; A first FAT area storing a file allocation table (FAT) including cluster allocation information; The second FAT area in which a restoration FAT for the file allocation table is stored; A root directory area in which directory entries are stored; And a file storage area including a predetermined number of divided storage areas and a system storage area,

상기 파일 저장 영역의 분할 저장 영역들은 상기 파일 저장 장치에 동시에 저장가능한 영상 데이터 스트림들에 일대일 대응되도록 구비되고, 상기 분할 저장 영역들의 각각은 동시에 저장가능한 영상 데이터 스트림들 중 하나와 일대일 대응되도록 지정되며, 상기 파일 저장 영역의 시스템 저장 영역은 상기 분할 저장 영역들에 대한 정보를 기록한다. The divided storage areas of the file storage area correspond to one-to-one correspondence with image data streams that can be simultaneously stored in the file storage device, and each of the divided storage areas is designated to correspond one-to-one with one of the simultaneously stored image data streams , The system storage area of the file storage area records information on the divided storage areas.

전술한 제2 특징에 따른 파일 저장 방법에 있어서, 상기 파일 저장 영역의 시스템 저장 영역에 기록된 상기 분할 저장 영역들에 대한 정보는 분할 저장 영역들의 개수, 각 분할 저장 영역들의 위치 정보, 각 분할 저장 영역들의 크기 정보 및 각 분할 저장 영역들에 일대일 대응되도록 설정된 영상 데이터 스트림 타입에 대한 정보들을 포함하는 것이 바람직하다. In the file storage method according to the second aspect, the information on the divided storage areas recorded in the system storage area of the file storage area may include the number of divided storage areas, the location information of each divided storage areas, Size information of the regions, and information on a video data stream type set to be one-to-one correspondence to each divided storage areas.

전술한 제2 특징에 따른 파일 저장 방법에 있어서, 상기 파일 저장 영역에 포함된 각 분할 저장 영역에는 동시에 최대 1개의 파일만이 기록되도록 설정된 것이 바람직하다. In the file storage method according to the second aspect, it is preferable that at most one file is simultaneously recorded in each divided storage area included in the file storage area.

본 발명에 따른 파일 시스템 및 파일 저장 방법은 종래의 FAT32 파일시스템 또는 exFAT 파일시스템과 완전히 호환됨으로써, 파일 저장 장치인 메모리 카드를 PC 또는 스마트폰에 삽입하여 별도의 영상 재생용 소프트웨어 설치없이 바로 영상 파일을 재생할 수 있게 된다. The file system and the file storing method according to the present invention are fully compatible with the conventional FAT32 file system or the exFAT file system so that a memory card as a file storage device can be inserted into a PC or a smart phone, . ≪ / RTI >

또한, 본 발명에 따른 파일 시스템 및 파일 저장 방법은 기존의 파일 시스템들의 낮은 신뢰성을 보완함에 따라 신뢰성을 개선시킬 수 있다. 즉, 기존의 FAT32 파일시스템 또는 exFAT 파일시스템은 FAT 테이블과 같은 메타 데이터를 갱신하는 도중에 전원 공급이 중단되거나 메모리 카드가 제거되면 일부는 저장되고 일부는 저장되지 못함으로써 파일시스템이 손상을 입게 되는 문제점이 발생했다. 하지만, 본 발명에 따른 파일 저장 방법은 연속된 클러스터들을 하나의 파일에 할당함으로써, FAT 테이블 갱신 방식이 개선되고, 그 결과 파일시스템의 손상 가능성을 크게 낮출 수 있게 된다.Also, the file system and file storage method according to the present invention can improve the reliability by complementing low reliability of existing file systems. In other words, the existing FAT32 file system or exFAT file system may be damaged when the power supply is interrupted while updating the metadata such as the FAT table, or when the memory card is removed, some are stored and some are not stored Has occurred. However, the file storage method according to the present invention improves the FAT table update method by allocating successive clusters to one file, and as a result, the possibility of damaging the file system can be greatly reduced.

또한, 본 발명에 따른 파일 시스템 및 파일 저장 방법은 파일시스템의 메타 데이터(즉, FAT 테이블) 갱신 성능을 개선함으로써, 파일 시스템에 대한 기록 성능을 개선할 수 있게 된다.In addition, the file system and the file storage method according to the present invention can improve the recording performance of the file system by improving the metadata (i.e., FAT table) update performance of the file system.

또한, 본 발명에 따른 파일 시스템 및 파일 저장 방법은 종래의 파일 시스템에 비하여, 파일시스템 공간을 낭비 없이 효율적으로 사용할 수 있게 한다. 종래의 FAT32 파일시스템을 개선한 방법들은 일부 파일시스템 공간이 사용되지 못하고 낭비되는 문제점이 있었다. 하지만, 본 발명을 통해, FAT32 파일시스템 또는 exFAT 파일시스템의 신뢰성을 보완하면서도 낭비되는 파일시스템 공간이 최소화시킬 수 있게 된다.In addition, the file system and the file storage method according to the present invention enable the file system space to be efficiently used without waste, compared with the conventional file system. The conventional methods of improving the FAT32 file system have a problem that some file system space is not used and is wasted. However, through the present invention, the reliability of the FAT32 file system or the exFAT file system can be compensated for, but the wasted file system space can be minimized.

따라서, 전술한 효과를 갖는 본 발명에 따른 파일 시스템 및 파일 저장 방법을 차량용 블랙박스 시스템의 파일 저장 장치에 적용하는 경우, 신뢰성, 기록 성능, 저장 공간의 효율적 사용 측면에서 모두 개선 효과를 기대할 수 있다. 특히, 이러한 개선 효과는 시판되는 메모리 카드에 기본적으로 적용되어 있는 FAT32 또는 exFAT 파일시스템 포맷과 100% 호환성을 유지하는 상태에서 제공되기 때문에 그 가치가 더 크다고 할 수 있다.Therefore, when the file system and the file storage method according to the present invention having the above-described effects are applied to a file storage device of a vehicle black box system, an improvement effect can be expected in terms of reliability, recording performance, and efficient use of storage space . Particularly, the improvement effect is more significant because it is provided in a state of maintaining 100% compatibility with the FAT32 or exFAT file system format which is basically applied to a commercially available memory card.

도 1은 마이크로소프트사의 FAT32 파일 시스템의 기본 구조를 도시한 구조도이다.
도 2는 본 발명의 바람직한 실시예에 따른 파일 시스템의 구조를 예시적으로 도시한 구조도이다.
도 3은 본 발명의 바람직한 실시예에 따른 파일 저장 방법을 순차적으로 도시한 흐름도이다.
도 4는 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 새로운 파일의 기록 요청에 따라 공간을 미리 할당하는 과정을 도시한 예시도이다.
도 5는 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 미리 할당된 파일 공간에 데이터를 기록하는 과정을 도시한 예시도이다.
도 6은 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 파일 기록을 완료한 후 미사용 할당 공간을 반환하는 과정을 도시한 예시도이다.
도 7은 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 하나의 저장 영역에 5개의 파일이 기록된 이후의 파일 배치 모습을 도시한 예시도이다.
도 8은 종래의 기술에 따라, 파일 저장 영역을 사전 설정된 일정 크기로 분할한 후 분할 영역에 각각 하나의 파일을 기록한 상태를 도시한 예시도이다.
도 9는 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 저장 영역내에 파일을 저장하기 위한 미사용 공간이 부족한 상태에서 새로운 파일 기록 요청이 발생한 경우에 공간 할당 과정을 도시한 예시도이다.
1 is a structural view showing the basic structure of a FAT32 file system of Microsoft Corporation.
2 is a structural view illustrating a structure of a file system according to a preferred embodiment of the present invention.
FIG. 3 is a flowchart sequentially illustrating a file storing method according to a preferred embodiment of the present invention.
4 is a diagram illustrating a process of allocating a space in advance according to a request for recording a new file in a file storage method according to a preferred embodiment of the present invention.
5 is a diagram illustrating a process of recording data in a file space allocated in advance in a file storage method according to a preferred embodiment of the present invention.
FIG. 6 is an exemplary diagram illustrating a process of returning an unused allocated space after completing file recording in the file storing method according to the preferred embodiment of the present invention.
FIG. 7 is an exemplary diagram illustrating a file arrangement state after five files are recorded in one storage area in a file storage method according to a preferred embodiment of the present invention. FIG.
8 is an exemplary diagram illustrating a state in which a file storage area is divided into a predetermined size and then one file is recorded in each divided area according to a conventional technique.
FIG. 9 is an exemplary diagram illustrating a space allocation process when a new file recording request is generated in a state in which an unused space for storing a file in a storage area is insufficient, according to a preferred embodiment of the present invention.

본 발명에 따른 파일 시스템은 동시에 저장 가능한 영상 데이터 스트림들에 대해 일대일 대응되도록 파일 저장 영역을 분할시킨 것을 특징으로 하며, 상기 파일 시스템을 기반으로 한 파일 저장 방법은 파일 저장 영역의 각 분할 저장 영역에는 동시에 최대 1개의 파일만이 기록되도록 하여 각 파일이 분할 저장 영역의 연속된 클러스터들에 저장될 수 있도록 한 것을 특징으로 한다. 이러한 특징에 의해, FAT 갱신 오버 헤드를 최소화시켜 갱신 비용을 감소시키고 신뢰성을 향상시킬 수 있을 뿐만 아니라 낭비되는 파일 시스템 공간을 최소화시킬 수 있게 된다. The file system according to the present invention is characterized in that a file storage area is divided so that one-to-one correspondence can be made to image data streams that can be simultaneously stored. The file storage method based on the file system includes Only one file is recorded at the same time so that each file can be stored in successive clusters of the divided storage area. With this feature, it is possible to minimize the FAT update overhead, thereby reducing the update cost and reliability, as well as minimizing the wasted file system space.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 따른 파일 저장 장치의 파일 시스템 및 파일 저장 장치의 파일 저장 방법에 대하여 구체적으로 설명한다. Hereinafter, a file system of a file storage apparatus and a file storage method of the file storage apparatus according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명의 바람직한 실시예에 따른 파일 시스템의 구조를 예시적으로 도시한 구조도이다. 2 is a structural view illustrating a structure of a file system according to a preferred embodiment of the present invention.

도 2를 참조하면, 본 발명에 따른 파일 시스템(10)은, 하나 또는 둘 이상의 영상 데이터 스트림들을 저장할 수 있는 파일 저장 장치에 사용할 수 있으며, PBR(Partition Boot Record) 영역(100); 제1 FAT 영역(110); 제2 FAT 영역(120); 루트 디렉토리 영역(130); 및 파일 저장 영역(140)을 포함하며, 상기 파일 저장 영역은 시스템 저장 영역(142) 및 사전 설정된 개수의 분할 저장 영역들(144,145,146,147)을 포함한다. 상기 파일 저장 영역의 각 분할 저장 영역들(144,145,146,147)은 상기 파일 저장 장치에 동시에 저장 가능한 영상 데이터 스트림들에 대해 일대일 대응되도록 설정된다. Referring to FIG. 2, the file system 10 according to the present invention can be used in a file storage device capable of storing one or two image data streams, and includes a PBR (Partition Boot Record) area 100; A first FAT area 110; A second FAT area 120; A root directory area 130; And a file storage area 140. The file storage area includes a system storage area 142 and a predetermined number of divided storage areas 144, 145, 146, Each of the divided storage areas 144, 145, 146 and 147 of the file storage area is set to correspond one-to-one to the image data streams that can be simultaneously stored in the file storage device.

상기 PBR 영역(100)에는 파일 시스템의 전체 크기, 클러스터 사이즈 등과 같은 파일 시스템의 주요 정보가 저장된다. In the PBR area 100, important information of the file system such as the total size of the file system, the cluster size, and the like is stored.

클러스터 할당 정보를 포함하는 파일 할당 테이블(File Allocation Table; 이하 'FAT'라 한다)은 원본과 복사본이 각각 제1 FAT 영역(110)과 제2 FAT 영역(120)에 저장된다. 상기 루트 디렉토리 영역(130)에는 파일 또는 서브 디렉토리(Sub-Directory) 정보들을 저장한다. The original and the copy are stored in the first FAT area 110 and the second FAT area 120, respectively, in the file allocation table (FAT) including the cluster allocation information. The root directory area 130 stores file or sub-directory information.

상기 파일 저장 영역(140)은 사전 설정된 개수로 분할된 복수 개의 분할 저장 영역(144,145,146,147)을 구비하여, 상기 분할 저장 영역들(144,145,146,147)은 상기 파일 저장 장치에 동시 저장 가능한 영상 데이터 스트림들의 각각에 일대일 대응되도록 사전에 설정된다. The file storage area 140 includes a plurality of divided storage areas 144, 145, 146, 147 divided into a predetermined number of pieces, and the divided storage areas 144, 145, 146, Are set in advance so as to correspond to each other.

상기 파일 저장 영역(140)의 시스템 저장 영역(142)은 파일 저장 장치가 적용되는 장치나 시스템의 설정 정보 등을 저장하는 영역으로서, 상기 분할 저장 영역들에 대한 정보들은 상기 시스템 저장 영역에 저장된다. 상기 파일 저장 영역의 시스템 저장 영역에 기록된 상기 분할 저장 영역들에 대한 정보는 상기 분할 저장 영역들의 개수, 각 분할 저장 영역들의 위치 정보, 각 분할 저장 영역들의 크기 정보 및 각 분할 저장 영역들에 대응되도록 설정된 영상 데이터 스트림 타입에 대한 정보들을 포함한다. The system storage area 142 of the file storage area 140 is an area for storing setting information of a device or a system to which the file storage device is applied and information about the divided storage areas is stored in the system storage area . The information on the divided storage areas recorded in the system storage area of the file storage area includes information on the number of the divided storage areas, the location information of each divided storage areas, size information of each divided storage areas, And information on the image data stream type set as it is.

이와 같이, 본 발명에 따른 파일 시스템이 파일 저장 영역을 복수 개의 분할 저장 영역으로 분할하는 것은 어느 하나의 분할 저장 영역내에서 동시에 기록되는 파일 개수를 최대 1개로 제한하기 위함이다. 따라서, 본 발명에 따른 파일 시스템에서는, 상기 파일 저장 영역에 포함된 각 분할 저장 영역에는 동시에 최대 1개의 파일만이 기록되도록 설정된 것을 특징으로 한다. In this way, the file system according to the present invention divides the file storage area into a plurality of divided storage areas to limit the number of files simultaneously recorded in any one divided storage area to one. Therefore, in the file system according to the present invention, at least one file is simultaneously recorded in each divided storage area included in the file storage area.

도 2에 도시된 파일 시스템은 전방 카메라와 후방 카메라를 구비하는 차량용 블랙박스 시스템의 파일 저장 장치의 파일 시스템이다. 차량용 블랙박스 시스템이나 멀티 채널을 갖는 폐쇄회로 TV와 같은 영상 저장 장치에서 채널은 영상 데이터 소스인 카메라와 연결된 영상 데이터 스트림의 입력 통로이다. 따라서, 전방 카메라와 후방 카메라를 구비하는 경우, 2개의 채널을 구비하는 것으로 볼 수 있다. 한편, 각 채널로부터 입력된 영상 데이터는 녹화 유형에 따라 하나 또는 둘 이상의 영상 데이터 스트림으로 복제된다. 따라서, 각 채널로부터 하나 또는 둘 이상의 영상 데이터 스트림이 동시에 생성된다. The file system shown in Fig. 2 is a file system of a file storage device of a vehicle black box system having a front camera and a rear camera. In an image storage device such as a vehicle black box system or a multi-channel closed circuit TV, a channel is an input path of a video data stream connected to a camera, which is an image data source. Therefore, in the case where the front camera and the rear camera are provided, it can be seen that the camera has two channels. On the other hand, the image data input from each channel is copied into one or more image data streams according to the recording type. Thus, one or more video data streams are generated simultaneously from each channel.

예를 들면, 전방 카메라와 후방 카메라를 구비하는 차량용 블랙박스 시스템에 있어서, 각 카메라에 대하여 주행중 상시 녹화 모드와 주행중 충격 감지 녹화 모드를 제공하는 경우, 이 블랙박스 시스템의 채널의 수는 2이고, 각 채널로부터 2가지의 영상 데이터 스트림이 동시에 생성될 수 있다. 따라서, 이 블랙박스 시스템에서 동시에 생성가능한 영상 데이터 스트림의 개수는 (채널 수) × (각 채널에서의 동시 생성되는 영상 데이터 스트림의 수) = 2 × 2 = 4 개가 되고, 파일 저장 영역은 동시 생성가능한 4개의 영상 데이터 스트림들에 일대일 대응되는 4개의 분할 저장 영역으로 분할된다. For example, in a vehicle black box system having a front camera and a rear camera, when providing a normal recording mode during driving and an impact sensing recording mode during driving for each camera, the number of channels of the black box system is 2, Two video data streams can be simultaneously generated from each channel. Therefore, the number of image data streams that can be simultaneously generated in the black box system is (number of channels) x (number of simultaneously generated image data streams in each channel) = 2 x 2 = 4, And is divided into four divided storage areas corresponding one-to-one to the four possible video data streams.

따라서, 차량용 블랙 박스 시스템에 대하여 예시적으로 도시된 도 2의 파일 시스템의 파일 저장 영역은 4개의 분할 저장 영역을 구비하는데, 주행 녹화 전방 카메라 영상 저장 영역(144)은 전방 카메라의 주행 녹화 영상 데이터 스트림이 저장되는 분할 저장 영역이며, 주행 녹화 후방 카메라 영상 저장 영역(145)은 후방 카메라의 주행 녹화 영상 데이터 스트림이 저장되는 분할 저장 영역이며, 이벤트 녹화 전방 카메라 영상 저장 영역(146)은 전방 카메라의 이벤트 녹화 영상 데이터 스트림이 저장되는 분할 저장 영역이며, 이벤트 녹화 후방 카메라 영상 저장 영역(147)은 후방 카메라의 이벤트 녹화 영상 데이터 스트림이 저장되는 분할 저장 영역이다. Therefore, the file storage area of the file system of FIG. 2, which is illustratively shown for the vehicle black box system, has four divided storage areas, and the running-recording forward camera image storage area 144 stores the running- The moving image rearview camera image storage area 145 is a divided storage area for storing the moving image data stream of the rear camera, and the event recording front image image storage area 146 is a divided storage area for storing the moving image, The event recording rear camera image storage area 147 is a divided storage area for storing the event recording image data stream of the rear camera.

또한, 본 발명에 따른 파일 시스템은, 각 분할 저장 영역에 대해 동시에 기록될 수 있는 파일 개수를 최대 1 개로 제한함으로써, 파일 시스템의 단편화(fragmentation) 현상을 원천적으로 막을 수 있게 된다. 이는 하나의 분할 저장 영역내에서는 어떠한 순간에도 기록되는 파일이 최대 1개이므로, 항상 연속된 클러스터를 할당해 줄 수 있기 때문이다. 그리고, 분할 저장 영역에 파일을 저장할 때 항상 연속된 클러스터들을 할당하게 됨으로써, FAT 테이블을 갱신하기 위한 FAT 섹터 쓰기 횟수도 줄일 수 있게 되며 그 결과 FAT 테이블을 갱신하기 위한 오버헤드(overhead)를 줄일 수 있게 된다. In addition, the file system according to the present invention can limit the number of files that can be simultaneously recorded for each divided storage area to one at a maximum, thereby preventing fragmentation of the file system. This is because at most one file is recorded at any moment in one divided storage area, so that a continuous cluster can be allocated all the time. In addition, when the file is stored in the divided storage area, consecutive clusters are always allocated, thereby reducing the number of FAT sector writes for updating the FAT table. As a result, the overhead for updating the FAT table can be reduced .

본 발명에 따른 파일 시스템은 동시에 기록되는 파일의 개수가 제한이 없는 일반적인 파일 저장 장치에는 적용될 수 없으며, 동시에 기록되는 파일의 개수를 제한할 수 있는 파일 저장 장치에 적용될 수 있다. 예를 들면, 차량용 블랙박스 시스템이나 폐쇄회로 텔레비젼(CCTV) 시스템은 파일 저장 장치에 동시에 기록되는 파일의 개수가 일정하므로, 그 파일의 개수에 맞추어 저장 영역을 분할함으로써, 본 발명에 따른 파일 시스템의 장점을 구현할 수 있게 된다. The file system according to the present invention can not be applied to a general file storage device in which the number of simultaneously recorded files is unlimited and can be applied to a file storage device capable of limiting the number of recorded files at the same time. For example, in a vehicle black box system or a closed circuit television (CCTV) system, since the number of files simultaneously recorded in a file storage device is fixed, the storage area is divided according to the number of files, The advantages can be realized.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 따른 파일 저장 장치의 파일 저장 방법에 대하여 구체적으로 설명한다. 특히, 본 발명에 따른 파일 저장 방법은 전술한 파일 시스템을 이용하는 것으로서, 차량용 블랙박스 시스템 또는 폐쇄회로TV(CCTV)의 영상 및/또는 음성을 저장하는 파일 저장 장치에 사용될 수 있다. Hereinafter, a file storage method of a file storage apparatus according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings. In particular, the file storage method according to the present invention uses the above-described file system, and can be used for a black box system for a vehicle or a file storage device for storing video and / or audio of a closed circuit TV (CCTV).

도 3은 본 발명의 바람직한 실시예에 따른 파일 저장 방법을 순차적으로 도시한 흐름도이다. FIG. 3 is a flowchart sequentially illustrating a file storing method according to a preferred embodiment of the present invention.

도 3을 참조하면, 본 발명의 바람직한 실시예에 따른 파일 저장 방법은, 파일 저장 장치를 전술한 파일 시스템으로 포맷(format)하여 초기화하는 단계(단계 300), 파일 시스템 마운트 단계, 파일 시스템 준비 단계, 새로운 파일의 기록 요청에 따라 파일명에 대응되는 분할 저장 영역을 지정하는 단계(단계 310), 상기 지정된 분할 저장 영역에 사전 설정된 크기의 연속된 공간을 할당하는 단계(단계 320), 상기 할당된 공간에 실제 파일 데이터를 기록하는 단계(단계 330), 및 파일 데이터의 기록이 완료되면, 상기 할당된 공간 중 미사용 공간은 반환하는 단계(단계 340)를 구비한다. 이하, 전술한 각 단계들에 대하여 구체적으로 설명한다. Referring to FIG. 3, a file storage method according to a preferred embodiment of the present invention includes a step of formatting and initializing a file storage device to the above-described file system (step 300), a file system mounting step, A step 310 of designating a divided storage area corresponding to a file name in response to a request for recording a new file, a step of allocating a consecutive space of a predetermined size to the designated divided storage area (step 320) (Step 330), and when the recording of the file data is completed, returning the unused space among the allocated spaces (step 340). Hereinafter, each of the above-described steps will be described in detail.

먼저, 파일 저장 장치를 전술한 파일 시스템으로 포맷(format)하여 초기화하는 단계(단계 300)는, 파일 저장 장치에 대하여 PBR(Partition Boot Record) 영역, 제1 FAT(File Allocation Table) 영역, 제2 FAT 영역, 루트 디렉토리 영역, 및 파일 저장 영역으로 포맷하고, 상기 파일 저장 영역은 동시 기록가능한 영상 데이터 스트림들에 일대일 대응되도록 분할시켜 하나 또는 둘 이상의 분할 저장 영역들을 생성하고, 상기 분할 저장 영역들에 대한 정보는 시스템 저장 영역에 저장하여 초기화시키게 된다. 이러한 초기화 과정은 파일 시스템의 포맷 과정의 마지막 단계에서 1회 수행되며 그 이후부터는 파일 시스템 마운트 과정에서 시스템 저장 영역에 저장된 시스템 설정 파일을 읽어 들임으로써 파일 저장을 위한 준비를 마치게 된다. First, formatting and initializing the file storage device with the above-described file system (step 300) may include a PBR (Partition Boot Record) area, a first FAT (File Allocation Table) area, FAT area, a root directory area, and a file storage area, and the file storage area is divided into one-to-one correspondence with the simultaneously recordable image data streams to create one or more divided storage areas, The information about the system is stored in the system storage area and initialized. This initialization process is performed once at the final stage of the file system formatting process, and after that, the system configuration file stored in the system storage area is read in the process of mounting the file system, thereby completing preparation for file storage.

상기 파일 저장 영역의 상기 복수 개의 분할 저장 영역들은 상기 파일 저장 장치에 동시에 기록가능한 모든 영상 데이터 스트림 타입들에 대하여 일대일 대응되도록 설정되며, 상기 파일 저장 영역의 시스템 저장 영역은 상기 분할 저장 영역들에 대한 정보들이 기록된다. 상기 파일 저장 영역의 시스템 저장 영역에 기록된 상기 분할 저장 영역들에 대한 정보는 분할 저장 영역들의 개수, 각 분할 저장 영역들의 위치 정보, 각 분할 저장 영역들의 크기 정보 및 각 분할 저장 영역들에 저장되는 영상 데이터 스트림 타입에 대한 정보들을 포함하는 것이 바람직하다. Wherein the plurality of divided storage areas of the file storage area are set to correspond one-to-one to all the image data stream types simultaneously recordable in the file storage device, and the system storage area of the file storage area is set to correspond to one- Information is recorded. The information on the divided storage areas recorded in the system storage area of the file storage area is stored in the number of divided storage areas, the location information of each divided storage areas, the size information of each divided storage areas, It is preferable to include information on the video data stream type.

단계 300의 파일 시스템의 각 영역에 대한 전술한 파일 시스템에 대한 설명과 동일하므로, 반복되는 설명은 생략한다. The description of the file system for each area of the file system of step 300 is the same as that for the file system described above, so repeated description will be omitted.

상기 파일 시스템 마운트 단계는 사용자 응용 프로그램(Application Program)이 파일 저장 장치를 사용할 수 있도록 파일 저장 장치의 파일 시스템 구조를 운영체제(Operating System)에 인식시키는 단계이다. The file system mounting step is a step of recognizing a file system structure of a file storage device in an operating system so that a user application program can use the file storage device.

상기 파일 시스템 준비 단계는 이전 단계에서 마운트된 파일 시스템이 사용자 응용 프로그램으로부터 읽기, 쓰기 등과 같은 요청이 들어오기를 기다리는 상태, 즉 ready 상태이다. The file system preparation step is a state in which the file system mounted in the previous step waits for a request such as a read, write, or the like from the user application to come in, that is, ready state.

다음, 상기 파일 저장 장치를 구동하는 상위의 응용 프로그램으로부터 파일명과 함께 새로운 파일의 기록 요청이 발생하면, 상기 파일 저장 영역 중 상기 파일명에 대응되도록 사전 설정된 분할 저장 영역을 지정한다(단계 310). 다음, 상기 지정된 분할 저장 영역의 미사용 공간을 확인하고, 상기 확인된 미사용 공간에 사전 설정된 크기의 연속된 공간을 상기 기록 요청된 파일에 할당하고 FAT 테이블을 갱신한다(단계 320). 한편, 파일 기록 요청시 제공되는 파일명은 채널에 대한 정보 및 영상 데이터 스트림 타입에 대한 정보를 포함하는 것이 바람직하다. Next, when a new file recording request is issued together with a file name from an upper application program which drives the file storage device, a predetermined divided storage area corresponding to the file name of the file storage area is designated (step 310). Next, the unused space of the designated divided storage area is checked, and a contiguous space of a predetermined size is allocated to the identified unused space, and the FAT table is updated (step 320). Meanwhile, it is desirable that the file name provided in the file recording request includes information on the channel and information on the video data stream type.

이하, 도 4를 참조하여 새로운 파일의 기록 요청에 따라 공간을 미리 할당하는 과정을 설명한다. 도 4는 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 새로운 파일의 기록 요청에 따라 분할 저장 영역에 공간을 미리 할당하는 과정을 도시한 예시도이다. Hereinafter, a process of allocating a space in advance according to a request for recording a new file will be described with reference to FIG. 4 is a diagram illustrating a process of allocating space to a divided storage area in advance according to a request to record a new file in a file storage method according to a preferred embodiment of the present invention.

도 4를 참조하면, 파일명과 함께 새로운 파일에 대한 기록 요청이 발생하면, 해당 파일이 저장될 분할 저장 영역을 지정하고, 상기 지정된 분할 저장 영역에서 연속된 공간을 할당하게 된다. 이때, 파일 기록 요청에 대응하여 할당되는 연속된 공간의 크기는 기록 요청된 파일이 가질 수 있는 최대 크기로 설정되는 것이 바람직하다. 또한, 본 발명에 따른 상기 파일 저장 방법은, 새로운 파일 기록 요청이 발생하면, 하나의 분할 저장 영역에는 동시에 1개의 파일만을 기록하도록 제어하는 것이 바람직하다. Referring to FIG. 4, when a write request for a new file occurs together with a file name, a divided storage area for storing the file is designated, and consecutive spaces are allocated in the designated divided storage area. At this time, it is preferable that the size of the continuous space allocated in response to the file write request is set to the maximum size that the file requested to be recorded can have. In addition, in the file storing method according to the present invention, when a new file write request is generated, it is preferable that only one file is simultaneously recorded in one divided storage area.

다음, 상기 할당된 공간에 실제 파일 데이터를 기록한다(단계 330). 도 5를 참조하여 미리 할당된 파일 공간에 데이터를 기록하는 과정을 설명한다. Next, the actual file data is recorded in the allocated space (step 330). A process of recording data in a preallocated file space will be described with reference to FIG.

도 5는 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 미리 할당된 파일 공간에 데이터를 기록하는 과정을 도시한 예시도이다. 도 5를 참조하면, 한꺼번에 미리 연속된 공간을 할당하고, 할당된 공간에 데이터를 기록하게 된다. 상기 할당된 공간은 해당 파일이 가질 수 있는 최대 크기로 이미 할당되어 있는 상태이므로, 해당 공간에 데이터를 순차적으로 기록하기만 하면 되는 것이다. 만약, 미리 할당된 공간을 초과하여 데이터 기록 요청이 계속되는 경우, 해당 데이터는 저장되지 못하고 유실된다. 따라서, 이러한 데이터 유실을 방지하기 위하여, 사전에 파일이 가질 수 있는 최대 크기값이 적절하게 설정되어 있어야 한다. 파일이 가질 수 있는 최대 크기값은 녹화된 영상의 해상도와 인코딩 방법 등에 따라 결정되며, 주로 블랙박스 시스템의 제조업체가 결정하여 제공하게 된다. 5 is a diagram illustrating a process of recording data in a file space allocated in advance in a file storage method according to a preferred embodiment of the present invention. Referring to FIG. 5, consecutive spaces are allocated all at once, and data is recorded in the allocated space. Since the allocated space is already allocated with the maximum size that the file can have, it is only necessary to sequentially record the data in the space. If the data recording request continues beyond the pre-allocated space, the corresponding data can not be stored and is lost. Therefore, in order to prevent such data loss, the maximum size value that the file can have beforehand has to be set appropriately. The maximum size that a file can have is determined by the resolution and encoding method of the recorded image, and is determined mainly by the manufacturer of the black box system.

다음, 파일 데이터의 기록이 완료되면, 상기 할당된 공간 중 사용하지 않고 남은 공간인 미사용 공간은 반환한다(단계 340). 이하, 도 6을 참조하여 미사용 할당 공간을 반환하는 과정을 설명한다. Next, when the recording of the file data is completed, the unused space which is the unused space among the allocated space is returned (step 340). Hereinafter, the process of returning unused allocated space will be described with reference to FIG.

도 6은 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 파일 기록을 완료한 후 미사용 할당 공간을 반환하는 과정을 도시한 예시도이다. 도 6을 참조하면, 미리 할당된 연속된 공간에 데이터 기록을 완료하면, 미리 할당된 공간내에서 사용되지 않고 남아 있는 클러스터들을 반환하고 FAT 테이블을 갱신한다. 새로운 파일에 데이터를 기록하기 시작할 때 해당 파일이 가질 수 있는 최대 크기로 클러스터들을 미리 할당받았기 때문에, 일정한 시간(예: 1분)이 경과되어 해당 파일에 대한 기록이 종료되는 시점에서는 사용되지 않고 남아있는 클러스터들이 있을 수 있다. 따라서, 사용되지 않고 남아있는 클러스터들은 다시 반환하여 다음에 새로 생성될 파일이 사용할 수 있도록 하는 것이 바람직하다. 그 결과, 다음 기록될 파일은 반환된 공간들을 사용할 수 있게 되므로, 해당 저장 영역내에서 인접한 두 파일의 사이에는 사용되지 않은 채 남아있는 클러스터들이 없게 된다. 따라서, 본 발명에 따른 파일 저장 방법은 낭비되는 저장 공간이 전혀 없어지게 된다. FIG. 6 is an exemplary diagram illustrating a process of returning an unused allocated space after completing file recording in the file storing method according to the preferred embodiment of the present invention. Referring to FIG. 6, upon completion of data recording in a preallocated contiguous space, clusters remaining unused in the preallocated space are returned and the FAT table is updated. Since clusters are preallocated to the maximum size that a file can have when starting to write data to a new file, it remains unused at the point when the recording of that file ends after a certain period of time (for example, 1 minute) Lt; / RTI > Therefore, it is desirable to return unused clusters so that the newly created file can be used next. As a result, the next file to be written will be able to use the returned space, so there will be no unused clusters remaining between the two adjacent files in that storage area. Therefore, the file storage method according to the present invention eliminates wasted storage space at all.

도 7은 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 하나의 저장 영역에 5개의 파일이 기록된 이후의 파일 배치 모습을 도시한 예시도이다. 도 7을 참조하면, 모든 파일은 연속된 공간을 할당받게 되며, 그 결과 인접한 파일들과 할당 공간이 뒤섞이는 경우가 발생하지 않을 뿐만 아니라, 인접한 파일들의 사이에 낭비되는 미사용 공간이 없음을 알 수 있다. 본 발명에 따른 파일 저장 방법의 이러한 특성은, 파일 시스템이 손상되어 파일 데이터를 복구할 때에도 매우 유리하게 작용할 수 있게 된다. FIG. 7 is an exemplary diagram illustrating a file arrangement state after five files are recorded in one storage area in a file storage method according to a preferred embodiment of the present invention. FIG. Referring to FIG. 7, all the files are allocated consecutive spaces. As a result, not only the adjacent files and the allocated space are not mixed, but there is no wasted space between the adjacent files. . This characteristic of the file storage method according to the present invention can be very advantageous when the file system is damaged and the file data is restored.

한편, 본 발명에 따른 파일 저장 방법은 파일 저장을 위한 클러스터 할당이 저장 영역별로 이루어지기 때문에, 기록 요청된 파일이 속하는 저장 영역에 대하여 미사용 공간을 먼저 확인하여야 한다. 이때 미사용 공간의 크기가 해당 파일이 가질 수 있는 최대 크기 이상이 아니면 여유 공간이 부족한 상황으로 판단하고 여유 공간을 확보하기 위한 동작에 들어가게 된다. Meanwhile, since the cluster allocation for file storage is performed for each storage area, the file storage method according to the present invention must first check the unused space for the storage area to which the file requested to be recorded belongs. At this time, if the size of the unused space is not larger than the maximum size that the file can have, it is determined that the free space is insufficient and the operation for securing the free space is entered.

하지만, 도 8에 도시된 종래의 파일 저장 방법은 미리 각 파일을 저장할 영역들을 일정 크기로 분할하고 분할된 영역들에 하나의 파일들을 저장하는 것으로서, 이 경우 각 영역에 남는 공간들이 지속적으로 발생하게 되어 메모리 영역들이 낭비되는 현상이 발생하게 된다. However, in the conventional file storing method shown in FIG. 8, the areas for storing each file are divided into a predetermined size and one file is stored in the divided areas in advance. In this case, So that memory areas are wasted.

이하, 도 9를 참조하여, 파일을 저장하기 위한 미사용 공간이 부족할 때의 미사용 공간 확보 과정에 대하여 설명한다. 도 8은 본 발명의 바람직한 실시예에 따른 파일 저장 방법에 있어서, 지정된 분할 저장 영역내에 파일을 저장하기 위한 미사용 공간이 부족한 상태에서 새로운 파일 기록 요청이 발생한 경우에 공간 할당 과정을 도시한 예시도이다. Hereinafter, with reference to FIG. 9, a description will be given of a process of securing unused space when there is not enough unused space for storing a file. 8 is a diagram illustrating an example of a space allocation process when a new file write request occurs in a state where there is not enough unused space for storing a file in a designated divided storage area in a file storage method according to a preferred embodiment of the present invention .

도 9를 참조하면, 상기 확인된 미사용 공간에 사전 설정된 크기의 연속된 공간을 할당함에 있어서, 상기 미사용 공간에 상기 사전 설정된 크기의 연속된 여유 공간이 존재하지 않는 경우, 상기 확인된 저장 영역에서 가장 오래된 파일('A')을 삭제하여 추가의 미사용 공간을 확보하고, 상기 미사용 공간 및 파일을 삭제시켜 확보된 상기 추가의 미사용 공간으로부터 순차적으로 사전 설정된 크기의 연속된 공간을 할당하는 것이 바람직하다. 다음, 미사용 공간에 새로운 파일에 대한 기록을 진행하고, 해당 분할 저장 영역의 마지막 클러스터에 도달하면, 상기 확보된 추가의 미사용 공간인 해당 분할 저장 영역의 첫번째 클러스터로 돌아가서(wrap-around) 기록을 계속 진행하게 된다. Referring to FIG. 9, in allocating a consecutive space of a predetermined size to the identified unused space, if there is no consecutive free space of the predetermined size in the unused space, It is desirable to delete an old file ('A') to secure additional unused space, and to allocate consecutive space of a predetermined size sequentially from the additional unused space obtained by deleting the unused space and file. Then, when a new file is recorded in the unused space and reaches the last cluster of the divided storage area, the data is wrapped around to the first cluster of the divided unallocated space, .

한편, 전술한 본 발명에 따른 파일 저장 방법은 하나 또는 둘 이상의 카메라를 구비하는 차량용 블랙박스 시스템(car black-box system)의 파일 저장 장치에 적용되거나, 하나 또는 둘 이상의 카메라를 구비하는 폐쇄 회로 텔레비젼(Closed Circuit Television;'CCTV') 시스템의 파일 저장 장치에 적용됨으로써, 신뢰성, 기록 성능, 저장 공간의 효율적 사용의 모든 측면에서 개선 효과를 얻을 수 있게 된다. On the other hand, the file storage method according to the present invention described above can be applied to a file storage device of a car black-box system having one or two cameras, or a closed circuit television having one or two or more cameras Is applied to a file storage device of a closed circuit television ('CCTV') system, an improvement effect can be obtained in all aspects of reliability, recording performance, and efficient use of storage space.

특히, 이러한 개선 효과는 현재 시판되고 있는 메모리 카드에 기본적으로 적용되고 있는 FAT32 또는 exFAT의 파일 시스템 포맷과 완전히 호환되므로, 그 가치가 더욱 증대될 수 있다. Particularly, the improvement is fully compatible with the file system format of FAT32 or exFAT, which is basically applied to memory cards currently on the market, so that the value can be further increased.

이상에서 본 발명에 대하여 그 바람직한 실시예를 중심으로 설명하였으나, 이는 단지 예시일 뿐 본 발명을 한정하는 것이 아니며, 본 발명이 속하는 분야의 통상의 지식을 가진 자라면 본 발명의 본질적인 특성을 벗어나지 않는 범위에서 이상에 예시되지 않은 여러 가지의 변형과 응용이 가능함을 알 수 있을 것이다. 그리고, 이러한 변형과 응용에 관계된 차이점들은 첨부된 청구 범위에서 규정하는 본 발명의 범위에 포함되는 것으로 해석되어야 할 것이다. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, It will be understood that various changes and modifications may be made without departing from the spirit and scope of the invention. It is to be understood that the present invention may be embodied in many other specific forms without departing from the spirit or essential characteristics thereof.

100 : PBR(Partition Boot Record) 영역
110 : 제1 FAT 영역
120 : 제2 FAT 영역
130 : 루트 디렉토리 영역
140 : 파일 저장 영역
142 : 시스템 저장 영역
144, 145, 146, 147 : 분할 저장 영역
100: PBR (Partition Boot Record) area
110: first FAT area
120: second FAT area
130: root directory area
140: file storage area
142: System Storage Area
144, 145, 146, 147: divided storage area

Claims (11)

하나 또는 둘 이상의 영상 데이터 스트림들을 저장가능한 파일 저장 장치로의 파일 저장 방법에 있어서,
(a) 파일 저장 장치에 대하여, PBR(Partition Boot Record) 영역, 제1 FAT(File Allocation Table) 영역, 제2 FAT 영역, 루트 디렉토리 영역, 및 파일 저장 영역을 포함하고, 상기 파일 저장 영역은 시스템 저장 영역 및 사전 설정된 개수의 분할 저장 영역들을 포함하는 것을 특징으로 하는 파일 시스템으로 포맷(format)하여 초기화시키는 단계;
(b) 파일명과 함께 새로운 파일의 기록 요청이 발생하면, 파일 저장 영역 중 상기 파일명에 대응하여 사전 설정된 분할 저장 영역을 지정하고, 상기 지정된 분할 저장 영역의 미사용 공간을 확인하고, 상기 확인된 미사용 공간에 사전 설정된 크기의 연속된 공간을 할당하고 FAT 테이블을 갱신하는 단계;
(c) 상기 할당된 공간에 실제 파일 데이터를 기록하는 단계;
(d) 파일 데이터의 기록이 완료되면, 상기 할당된 공간 중 미사용 공간은 반환하고 FAT 테이블을 갱신하는 단계;
를 구비하고, 상기 파일 저장 영역의 분할 저장 영역들은 상기 파일 저장 장치에 동시에 저장가능한 영상 데이터 스트림들에 일대일 대응되도록 구비되고, 상기 분할 저장 영역들의 각각은 동시에 저장가능한 영상 데이터 스트림들 중 하나와 일대일 대응되도록 지정된 것을 특징으로 하며,
상기 파일 저장 영역의 시스템 저장 영역은 상기 분할 저장 영역들에 대한 정보를 기록한 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.
A method of storing a file in a file storage device capable of storing one or more video data streams,
(a) a file storage device, comprising: a PART (Partition Boot Record) area, a first FAT (File Allocation Table) area, a second FAT area, a root directory area and a file storage area, Formatting and initializing the file system into a file system characterized by comprising a storage area and a predetermined number of divided storage areas;
(b) designating a predetermined divided storage area corresponding to the file name in the file storage area when a new file recording request is made with the file name, checking the unused space of the designated divided storage area, Allocating a contiguous space of a predetermined size to the FAT table and updating the FAT table;
(c) recording actual file data in the allocated space;
(d) when recording the file data is completed, returning the unused space among the allocated spaces and updating the FAT table;
Wherein the divided storage areas of the file storage area correspond to one-to-one correspondence with image data streams that can be simultaneously stored in the file storage device, and each of the divided storage areas corresponds to one of the simultaneously- And are designated to correspond to each other,
Wherein the system storage area of the file storage area records information on the divided storage areas.
제1항에 있어서, 상기 (b) 단계에서 파일 기록 요청시 제공되는 파일명은 채널에 대한 정보 및 영상 데이터 스트림 타입에 대한 정보를 포함하는 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.The method of claim 1, wherein the file name provided in the file write request in step (b) includes information on a channel and information on a video data stream type. 제1항에 있어서, 상기 (b) 단계에서 파일 기록 요청에 대응하여 할당되는 연속된 공간의 크기는 기록 요청된 파일의 가능한 최대 크기인 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.The method of claim 1, wherein the size of the contiguous space allocated in response to the file write request in step (b) is a maximum possible size of the file requested to be recorded. 제1항에 있어서, 상기 파일 저장 방법은, 상기 (b) 단계에서 새로운 파일 기록 요청이 발생하면, 하나의 분할 저장 영역에는 동시에 1개의 파일만을 기록하도록 제어하는 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.The file storage method according to claim 1, wherein, in the step (b), when a new file write request is generated, only one file is simultaneously recorded in one divided storage area How to save a file. 제1항에 있어서, 상기 (b) 단계에서 상기 확인된 미사용 공간에 사전 설정된 크기의 연속된 공간을 할당함에 있어서, 상기 미사용 공간에 상기 사전 설정된 크기의 연속된 여유 공간이 존재하지 않는 경우,
상기 지정된 분할 저장 영역에서 가장 오래된 파일을 삭제하여 추가의 미사용 공간을 획득하고,
상기 미사용 공간 및 파일이 삭제된 상기 추가의 미사용 공간으로부터 순차적으로 사전 설정된 크기의 연속된 공간을 할당하는 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.
2. The method as claimed in claim 1, wherein, in the step (b), when allocating consecutive spaces of a predetermined size to the identified unused space, if there is no consecutive free space of the predetermined size in the unused space,
An old unused space is obtained by deleting the oldest file in the designated divided storage area,
And sequentially allocating consecutive spaces of a predetermined size from the unused space and the additional unused space from which the file is deleted.
제1항에 있어서, 상기 파일 저장 영역의 시스템 저장 영역에 기록된 상기 분할 저장 영역들에 대한 정보는 분할 저장 영역들의 개수, 각 분할 저장 영역들의 위치 정보, 각 분할 저장 영역들의 크기 정보 및 각 분할 저장 영역들에 일대일 대응되도록 설정된 영상 데이터 스트림 타입에 대한 정보들을 포함하는 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.The method of claim 1, wherein the information about the divided storage areas recorded in the system storage area of the file storage area includes a number of divided storage areas, position information of each divided storage areas, Storing information on a video data stream type set to be one-to-one correspondence with storage areas. 제1항에 있어서, 상기 파일 저장 방법은 하나 또는 둘 이상의 카메라를 구비하는 차량용 블랙박스 시스템(car black-box system)의 파일 저장 장치에 적용되고,
각 카메라에 대하여 하나 또는 둘 이상의 영상 데이터 스트림 타입이 제공되는 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.
The method of claim 1, wherein the file storage method is applied to a file storage device of a car black-box system having one or more cameras,
Wherein one or more image data stream types are provided for each camera.
제1항에 있어서, 상기 파일 저장 방법은 하나 또는 둘 이상의 카메라를 구비하는 폐쇄 회로 텔레비젼(Closed Circuit Television;'CCTV') 시스템의 파일 저장 장치에 적용된 것을 특징으로 하는 파일 저장 장치로의 파일 저장 방법.The file storage method of claim 1, wherein the file storage method is applied to a file storage device of a closed circuit television (CCTV) system having one or two cameras . 하나 또는 둘 이상의 영상 데이터 스트림들을 저장가능한 파일 저장 장치의 파일 시스템에 있어서,
파일 시스템에 대한 정보가 저장된 PBR(Partition Boot Record) 영역;
클러스터 할당 정보를 포함하는 파일 할당 테이블(File Allocation Table; 이하 'FAT'라 한다)이 저장된 제1 FAT 영역;
상기 파일 할당 테이블에 대한 복구용 FAT가 저장되는 상기 제2 FAT 영역;
디렉토리 엔트리들이 저장된 루트 디렉토리 영역; 및
사전 설정된 개수의 분할 저장 영역들 및 시스템 저장 영역을 포함하는 파일 저장 영역;
을 구비하고,
상기 파일 저장 영역의 분할 저장 영역들은 상기 파일 저장 장치에 동시에 저장가능한 영상 데이터 스트림들에 일대일 대응되도록 구비되고, 상기 분할 저장 영역들의 각각은 동시에 저장가능한 영상 데이터 스트림들 중 하나와 일대일 대응되도록 지정된 것을 특징으로 하며,
상기 파일 저장 영역의 시스템 저장 영역은 상기 분할 저장 영역들에 대한 정보를 기록한 것을 특징으로 하는 파일 시스템.
A file system of a file storage device capable of storing one or more video data streams,
A Partition Boot Record (PBR) area in which information about the file system is stored;
A first FAT area storing a file allocation table (FAT) including cluster allocation information;
The second FAT area in which a restoration FAT for the file allocation table is stored;
A root directory area in which directory entries are stored; And
A file storage area including a predetermined number of divided storage areas and a system storage area;
And,
The divided storage areas of the file storage area correspond to one-to-one correspondence with image data streams that can be simultaneously stored in the file storage device, and each of the divided storage areas is designated to correspond one-to- In addition,
Wherein the system storage area of the file storage area records information on the divided storage areas.
제9항에 있어서,
상기 파일 저장 영역의 시스템 저장 영역에 기록된 상기 분할 저장 영역들에 대한 정보는 분할 저장 영역들의 개수, 각 분할 저장 영역들의 위치 정보, 각 분할 저장 영역들의 크기 정보 및 각 분할 저장 영역들에 일대일 대응되도록 설정된 영상 데이터 스트림 타입에 대한 정보들을 포함하는 것을 특징으로 하는 파일 시스템.
10. The method of claim 9,
The information on the divided storage areas recorded in the system storage area of the file storage area includes information on the number of divided storage areas, position information of each divided storage areas, size information of each divided storage areas, and one-to- Wherein the information about the video data stream type is stored in the file system.
제9항에 있어서, 상기 파일 저장 영역에 포함된 각 분할 저장 영역에는 동시에 최대 1개의 파일만이 기록되도록 설정된 것을 특징으로 하는 파일 시스템.


The file system according to claim 9, wherein at least one file is simultaneously recorded in each divided storage area included in the file storage area.


KR1020170160048A 2017-11-28 2017-11-28 File system and method of storing files based on the file system KR102094786B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170160048A KR102094786B1 (en) 2017-11-28 2017-11-28 File system and method of storing files based on the file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170160048A KR102094786B1 (en) 2017-11-28 2017-11-28 File system and method of storing files based on the file system

Publications (2)

Publication Number Publication Date
KR20190061549A true KR20190061549A (en) 2019-06-05
KR102094786B1 KR102094786B1 (en) 2020-03-31

Family

ID=66845044

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170160048A KR102094786B1 (en) 2017-11-28 2017-11-28 File system and method of storing files based on the file system

Country Status (1)

Country Link
KR (1) KR102094786B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210150859A (en) * 2020-06-04 2021-12-13 주식회사 엠티오메가 A System for Storing Multimedia Data and a method therefore
KR20220086986A (en) * 2020-12-17 2022-06-24 주식회사 앤씨앤 Method and apparatus for managing data of storage device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000200207A (en) * 1998-10-30 2000-07-18 Sony Corp Hierarchical management file device and electronic equipment equipped with the same
JP2010079593A (en) * 2008-09-26 2010-04-08 Nec Personal Products Co Ltd File storage device and file storage method
JP2012174033A (en) * 2011-02-22 2012-09-10 Toshiba Tec Corp Electronic apparatus and program
KR20130071850A (en) 2011-12-21 2013-07-01 삼성전자주식회사 File system and method for storing the file
JP5335215B2 (en) * 2007-10-02 2013-11-06 キヤノン株式会社 Data storage device, data storage method and program
KR101370503B1 (en) 2013-04-08 2014-03-07 (주)솔레컨스 System and method for saving multimedia data and computer readable saving medium recording program for process of saving method thereof
JP5481493B2 (en) * 2009-11-11 2014-04-23 パナソニック株式会社 ACCESS DEVICE, INFORMATION RECORDING DEVICE, CONTROLLER, REAL TIME INFORMATION RECORDING SYSTEM, ACCESS METHOD, AND PROGRAM
JP5515218B2 (en) * 2008-01-16 2014-06-11 ティアック株式会社 Data access method and data access apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000200207A (en) * 1998-10-30 2000-07-18 Sony Corp Hierarchical management file device and electronic equipment equipped with the same
JP5335215B2 (en) * 2007-10-02 2013-11-06 キヤノン株式会社 Data storage device, data storage method and program
JP5515218B2 (en) * 2008-01-16 2014-06-11 ティアック株式会社 Data access method and data access apparatus
JP2010079593A (en) * 2008-09-26 2010-04-08 Nec Personal Products Co Ltd File storage device and file storage method
JP5481493B2 (en) * 2009-11-11 2014-04-23 パナソニック株式会社 ACCESS DEVICE, INFORMATION RECORDING DEVICE, CONTROLLER, REAL TIME INFORMATION RECORDING SYSTEM, ACCESS METHOD, AND PROGRAM
JP2012174033A (en) * 2011-02-22 2012-09-10 Toshiba Tec Corp Electronic apparatus and program
KR20130071850A (en) 2011-12-21 2013-07-01 삼성전자주식회사 File system and method for storing the file
KR101370503B1 (en) 2013-04-08 2014-03-07 (주)솔레컨스 System and method for saving multimedia data and computer readable saving medium recording program for process of saving method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210150859A (en) * 2020-06-04 2021-12-13 주식회사 엠티오메가 A System for Storing Multimedia Data and a method therefore
KR20220086986A (en) * 2020-12-17 2022-06-24 주식회사 앤씨앤 Method and apparatus for managing data of storage device

Also Published As

Publication number Publication date
KR102094786B1 (en) 2020-03-31

Similar Documents

Publication Publication Date Title
US11385840B2 (en) Multi-tiered data storage with archival blockchains
US8223600B2 (en) Network-attachable, file-accessible storage drive
US8549051B2 (en) Unlimited file system snapshots and clones
US7761284B2 (en) Tape emulating disk based storage system and method with automatically resized emulated tape capacity
KR100546524B1 (en) File managing method
US8977802B2 (en) Access device, information recording device, controller, real time information recording system, access method, and program
WO2021109590A1 (en) Data storage method and apparatus, electronic device, and storage medium
US8914579B2 (en) Access device, information recording device, controller, and information recording system
GB2383859A (en) Memory controller managing a file allocation table for a memory card
WO2001063419A1 (en) File control method
KR20070089603A (en) Apparatus, method, and computer program for processing information
JP4487954B2 (en) Data recording apparatus, data recording method, and program
CN102224489A (en) Flash based memory comprising a flash translation layer and method for storing a file therein
CN102541969B (en) File protection method and system based on file allocation table (FAT) file system, and memory
JP2004013276A (en) Filesystem and recording medium
KR102094786B1 (en) File system and method of storing files based on the file system
JP4221959B2 (en) Bridge file system, computer system, data management method and recording medium using bridge file system
WO2005055064A1 (en) Information recording medium data processing apparatus and data recording method
JP4130808B2 (en) Formatting method
US8825723B2 (en) Methods and devices for managing and editing files in a file system
JP2008269520A (en) Recorder and recording method
CN114265562B (en) File storage method and system based on flash memory
JP2006164017A (en) Information processor, information processing method, and program
JP2009205590A (en) Access module, information recording module, controller, and information recording system
JP4561323B2 (en) Information processing apparatus, information processing method, and program

Legal Events

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