KR20000003374A - Method for preventing files of the identical name from being generated - Google Patents

Method for preventing files of the identical name from being generated Download PDF

Info

Publication number
KR20000003374A
KR20000003374A KR1019980024604A KR19980024604A KR20000003374A KR 20000003374 A KR20000003374 A KR 20000003374A KR 1019980024604 A KR1019980024604 A KR 1019980024604A KR 19980024604 A KR19980024604 A KR 19980024604A KR 20000003374 A KR20000003374 A KR 20000003374A
Authority
KR
South Korea
Prior art keywords
file
information
generated
name
generation
Prior art date
Application number
KR1019980024604A
Other languages
Korean (ko)
Other versions
KR100539891B1 (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 KR1019980024604A priority Critical patent/KR100539891B1/en
Publication of KR20000003374A publication Critical patent/KR20000003374A/en
Application granted granted Critical
Publication of KR100539891B1 publication Critical patent/KR100539891B1/en

Links

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/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1748De-duplication implemented within the file system, e.g. based on file segments

Landscapes

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

Abstract

PURPOSE: An identical name file generation suppressing method is provided to prevent file damage and a conflict between processes. CONSTITUTION: The identical name file generation suppressing method comprises the steps of: checking whether a file of an identical name exists when generating a new file; if not, generating the new file after file system information is added to the new file; checking whether the new file is generated; deleting information indicating a file to being generated among a file attribution; and if the identical name file exists, checking whether information that the file is being generated exists in the attribution information.

Description

동명파일 생성억제방법How to suppress same name file creation

본 발명은 파일 시스템을 구비하는 장치에 관한 것으로, 특히 비계층구조를 가지는 파일 시스템에서의 파일생성방법에 관한 것이다.The present invention relates to a device having a file system, and more particularly, to a file generation method in a file system having a non-hierarchical structure.

유닉스(UNIX) 등에 채용되는 트리(Tree)구조의 계층구조 파일시스템은 디렉토리만 다르면 동명파일의 생성이 가능하지만, SDX, TDX의 교환기 등에 채용되는 비계층구조 파일시스템에서는 동명파일의 생성이 불가능하다. 더 상세히 설명하면, 우선 계층구조 파일시스템은 디스크 등의 저장장치에 인덱스 노드(Index Node)를 구비하여, 각 파일마다 그 파일의 트리 구조에서의 위치를 알 수 있도록 하는 정보를 포함하는 INODE를 가지도록 한다. 따라서 계층구조 파일시스템에서는 동명파일이더라도 디렉토리에 의해 구별되어 저장장치 내에 공존할 수 있게 된다. 그런데, 상기 비계층구조 파일시스템은 저장장치에 동등위치의 파일들만 존재하므로 동명파일일 경우에 그 구별이 불가능하였다. 이에따라 비계층구조 파일시스템에서는 동명파일의 생성이 불가능하다.The tree structure hierarchical file system employed in UNIX and the like can generate the same name file only if the directory is different, but the same name file cannot be generated in the non-hierarchical file system employed in the SDX and TDX exchangers. . More specifically, first, a hierarchical file system includes an index node in a storage device such as a disk, so that each file has an INODE including information for identifying a location in the tree structure of the file. To do that. Therefore, in the hierarchical file system, even if the same-name file is distinguished by the directory, it can coexist in the storage device. However, the non-hierarchical file system cannot distinguish a file of the same name because only files having equivalent positions exist in the storage device. As a result, it is not possible to create a same-name file in a non-hierarchical file system.

이에따라 비계층구조의 파일시스템을 구비하는 장치에서 기존에 존재하는 파일에 대한 동명파일이 생성되면 기존의 파일이 손상되었다. 또한 어느 한 프로세스에 의해 파일이 생성되는 중에 다른 프로세스에 의하여 동명파일이 생성되면 두 프로세스간 충돌이 발생하였다.Accordingly, if the same-name file for the existing file is created in the device having the non-hierarchical file system, the existing file is damaged. Also, if the same-name file is created by another process while the file is being created by one process, a conflict occurs between the two processes.

상술한 바와 같이 종래에는 비계층구조의 파일시스템을 구비하는 장치에서 기존에 존재하는 파일에 대한 동명파일이 생성되면 기존의 파일이 손상되는 곤란한 점이 있었다. 또한 어느 한 프로세스에 의해 파일이 생성되는 중에 다른 프로세스에 의하여 동명파일이 생성되면 두 프로세스간 충돌이 발생하는 곤란한 점이 있었다.As described above, when the same-name file for the existing file is generated in a device having a non-hierarchical file system, the existing file may be damaged. In addition, if a same-name file is generated by another process while a file is generated by one process, there is a difficulty in that a collision occurs between the two processes.

따라서 본 발명의 목적은 비계층구조의 파일시스템을 구비하는 장치에서 동명파일의 생성을 억제하여 기존의 파일이 손상되거나 프로세스간 충돌을 방지하는 동명파일 생성억제방법을 제공함에 있다.Accordingly, it is an object of the present invention to provide a method for suppressing the creation of a same name file, which prevents an existing file from being damaged or conflicts between processes by suppressing generation of a same name file in a device having a non-hierarchical file system.

도 1은 본 발명이 적용가능한 교환기의 개략적인 구성도,1 is a schematic configuration diagram of an exchanger to which the present invention is applicable;

도 2는 도 1의 프로세서의 소프트웨어 구성도,2 is a software configuration diagram of the processor of FIG. 1;

도 3은 본 발명이 바람직한 실시예에 따른 동명파일 생성억제방법의 흐름도.Figure 3 is a flow chart of the same name file generation suppression method according to an embodiment of the present invention.

상술한 목적을 달성하기 위한 본 발명은 파일생성요구가 있을 때마다 파일 시스템 정보에서 그 파일과 동명인 파일에 대한 정보가 존재하는지를 검색하는 단계와, 상기 생성요구한 파일과 동명인 파일에 대한 정보가 상기 파일 시스템 정보에 존재하지 않으면 상기 파일 시스템 정보에 파일속성을 생성중인 파일로 하여 상기 생성요구한 파일에 대한 정보를 추가한 후에 상기 생성요구한 파일을 생성하는 단계와, 상기 파일생성중에 상기 생성요구한 파일의 생성이 완료되었는지를 검색하는 단계와, 상기 파일의 생성이 완료되었으면 상기 파일 시스템 정보에서 상기 생성완료된 파일의 속성에서 생성중인 파일임을 나타내는 정보를 삭제하는 단계와, 상기 생성요구한 파일과 동명인 파일에 대한 정보가 상기 파일 시스템 정보에 존재하며, 그 파일정보의 속성 정보에 그 파일이 생성중인 파일임을 나타내는 정보가 있는지를 검색하는 단계와, 상기 파일정보의 속성정보에 그 파일이 생성중인 파일임을 나타내는 정보가 있으면, 상기 파일생성요구한 프로세스에 생성중인 동명파일이 존재함에 따라 상기 생성요구한 파일의 생성을 금지함을 나타내는 정보를 제공하는 단계와, 상기 파일정보의 속성정보에 그 파일이 생성중인 파일임을 나타내는 정보가 없으면, 상기 파일생성을 요구한 프로세서에 동명파일이 존재함에 따라 상기 생성요구한 파일의 생성을 금지함을 나타내는 정보를 제공하는 단계를 구비하는 것을 특징으로 한다.The present invention for achieving the above object is a step of searching whether there is information about a file of the same name as the file in the file system information whenever there is a file creation request, and the information about the file of the same name as the generated file If it is not present in the file system information, adding the information on the generated file as a file in which the file attribute is being generated, generating the requested file, and generating the requested file during the file generation. Retrieving whether the creation of a file has been completed; deleting information indicating that the file is being generated in an attribute of the generated file from the file system information if the file generation is completed; Information about a file of the same name exists in the file system information, and the file information Searching whether the attribute information includes information indicating that the file is being created, and if the attribute information of the file information includes information indicating that the file is being generated, a file of the same name being created in the file creation request. Providing information indicating that the creation of the requested file is prohibited due to the presence of the file; and if there is no information indicating that the file is a file in the attribute information of the file information, the processor requesting the file generation is provided. And providing information indicating that the creation of the requested file is prohibited as the same name file exists.

이하 본 발명의 바람직한 실시예를 첨부한 도면을 참조하여 상세히 설명한다. 하기 설명 및 첨부도면에서 많은 특정 상세들이 본 발명의 보다 전반적인 이해를 제공하기 위해 나타나 있다. 이들 특정 상세들 없이 본 발명이 실시될 수 있다는 것은 이 기술분야에서 통상의 지식을 가진자에게 자명할 것이다. 그리고 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능 및 구성에 대한 상세한 설명은 생략한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description and the annexed drawings, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. It will be apparent to those skilled in the art that the present invention may be practiced without these specific details. And a detailed description of known functions and configurations that may unnecessarily obscure the subject matter of the present invention will be omitted.

도 1은 본 발명이 적용가능한 교환기의 개략적인 구성도로서, 프로세서(100)는 도 2에 도시한 바와 같이 파일 매니지먼트 시스템(File Management System)(104)을 구비하는 오퍼레이팅 시스템(102)과 제1 내지 제N프로세스(1061,…,106N)의 소프트웨어 구성을 구비한다. 상기 프로세서(100)의 파일 매니지먼트 시스템(104)은 비계층구조를 가지는 파일시스템을 운용한다. 저장부(200)는 상기 프로세서(100)의 파일 매니지먼트 시스템(104)의 제어를 받으며, 하드 디스크 드라이브(Hard Disc Drive) 등이 될 수 있다. 여기서, 상기 파일 매니지먼트 시스템은 상기 저장부(200)의 파일을 관리하기 위하여 저장부(200)에 기록된 파일의 정보로 구성되는 파일 시스템 정보를 상기 저장부(200)에 기록한다.1 is a schematic configuration diagram of an exchange to which the present invention is applicable, in which the processor 100 includes an operating system 102 and a first having a file management system 104 as shown in FIG. To N-th process 106 1, ..., 106 N. The file management system 104 of the processor 100 operates a file system having a non-hierarchical structure. The storage unit 200 is controlled by the file management system 104 of the processor 100 and may be a hard disk drive. In this case, the file management system records file system information including file information recorded in the storage unit 200 in the storage unit 200 in order to manage the file of the storage unit 200.

본 발명의 바람직한 실시예에 따른 동명파일 생성 억제방법의 흐름도를 도시한 것이 도 3이며, 도 3의 흐름도에 따른 처리 프로그램은 상기 오퍼레이팅 시스템(102)의 파일 매니지먼트 시스템(104)에 포함되며, 프로세서(100)에 의해 수행된다. 도 3의 (300)단계에서 프로세서(100)는 제1 내지 제N프로세스(1061…106N)중 어느 한 프로세스가 파일생성요구를 하는지를 검색한다. 이때 프로세서(100)는 상기 어느 한 프로세스가 파일생성을 요구하면 (304)단계로 진행하고, 그렇지 않으면 (302)단계로 진행하여 해당동작을 수행한다. 상기 (304)단계에서 프로세서(100)는 저장부(200)로부터 파일 시스템 정보를 리드하여 생성요구한 파일과 동명인 파일에 대한 정보가 있는지를 검색한다. 이때 프로세서(100)는 파일 시스템 정보에 생성요구한 파일과 동명인 파일에 대한 정보가 있으면 (314)단계로 진행하고, 그렇지 않으면 (306)단계로 진행한다.3 is a flowchart illustrating a method for suppressing generation of a same name file according to a preferred embodiment of the present invention, and the processing program according to the flowchart of FIG. 3 is included in the file management system 104 of the operating system 102 and the processor. Performed by 100. In step 300 of FIG. 3, the processor 100 searches for any one of the first to Nth processes 106 1 to 106 N to request a file generation. At this time, if any one of the processes requests the file generation, the processor 100 proceeds to step 304, otherwise proceeds to step 302 to perform a corresponding operation. In step 304, the processor 100 reads the file system information from the storage unit 200 and searches whether there is information on a file having the same name as the generated file. In this case, the processor 100 proceeds to step 314 if there is information on a file having the same name as the file requested to be created in the file system information, and proceeds to step 306 otherwise.

상기 (306)단계에서 프로세서(100)는 파일 시스템 정보에 파일 속성을 생성중인 파일로 하여 생성요구한 파일에 대한 정보를 추가한다. 그후에 프로세서(100)는 (308)단계로 진행하여 상기 프로세스의 요구에 따라 파일을 저장부(200)에 생성한다. (310)단계에서 프로세서(100)는 파일생성이 완료되었는지를 검색하여, 파일생성이 완료되었으면 (312)단계로 진행한다. (312)단계에서 프로세서(100)는 파일 시스템 정보에서 상기 생성완료된 파일의 속성에서 생성중인 파일임을 나타내는 정보를 삭제한다.In step 306, the processor 100 adds the information on the file requested to be created as a file in which file attributes are being generated in the file system information. Thereafter, the processor 100 proceeds to step 308 to generate a file in the storage unit 200 according to the request of the process. In step 310, the processor 100 searches whether the file generation is completed, and proceeds to step 312 when the file generation is completed. In operation 312, the processor 100 deletes information indicating that the file is being generated from the attribute of the generated file in the file system information.

이와같이 상기 파일 매니지먼트 시스템은 파일생성중에 그 파일이 생성중인 파일임을 나타내는 정보를 파일 시스템 정보에 기록해두는데, 이는 그 파일의 생성중에 다른 프로세스로부터 동명파일의 생성이 요구될 때에 그 생성을 억제하기 위한 것이다.As such, the file management system records in the file system information that indicates that the file is being created during file creation, which is used to suppress the creation of the same-name file from another process during creation of the file. will be.

상기 (314)단계에서 프로세서(100)는 상기 파일 시스템 정보에서 그 동명파일에 대한 속성을 검색하여, 그 동명파일이 생성중인 파일인지를 검색한다. 이때 프로세서(100)는 그 동명파일이 생성중인 파일이면 (316)단계로 진행하여 파일생성을 요구한 프로세스에 생성중인 동명파일이 존재하여 생성요구한 파일의 생성이 금지됨을 나타내는 정보를 제공한다. 이에따라 상기 파일생성을 요구한 프로세스는 다른 이름의 파일을 생성을 요구하거나 그 동명파일을 열어 사용할 수 있다.In step 314, the processor 100 searches for an attribute for the same name file in the file system information, and searches whether the same name file is a generated file. In this case, if the same-name file is being generated, the processor 100 proceeds to step 316 and provides information indicating that generation of the requested file is prohibited because the same-name file being generated exists in the process requesting file generation. Accordingly, the process requesting the file creation may request to create a file with a different name or open a file of the same name.

그리고 상기 (314)단계에서 상기 파일 시스템 정보에서 그 동명파일에 대한 속성이 생성중인 파일을 나타내지 않으면 프로세서(100)는 (318)단계로 진행하여 파일생성을 요구한 프로세스에 동명파일이 이미 존재하여 생성요구한 파일의 생성이 금지됨을 나타내는 정보를 해당 프로세스에 제공한다. 이에따라 상기 프로세스는 다른 이름의 파일생성을 요구하거나 그 동명파일을 열어 사용할 수 있다.If the attribute of the same name file does not indicate a file being generated in the file system information in step 314, the processor 100 proceeds to step 318 and the same name file already exists in the process for requesting file generation. Provides the process with information indicating that creation of the requested file is prohibited. Accordingly, the process may require the creation of a file with a different name or open the same name file.

상술한 바와 같이 본 발명은 비계층구조 파일 시스템을 구비하는 장치에서 파일생성요구시에 동명화일이 기존에 존재하거나 생성하는 중이면 그 파일의 생성을 금지시킨다.As described above, the present invention prohibits the creation of a file if a same-name file exists or is being generated at the time of file creation in a device having a non-hierarchical file system.

상술한 바와 같이 본 발명은 비계층구조의 파일시스템을 구비하는 장치에서 동명파일의 생성을 억제하여 기존의 파일이 손상되거나 프로세스간 충돌을 방지하는 이점이 있다.As described above, the present invention has the advantage of preventing generation of a same-name file in a device having a file system of a non-hierarchical structure to prevent an existing file from being damaged or an inter-process conflict.

Claims (1)

비계층구조 파일시스템을 구비하는 장치에서 동명파일 생성억제방법에 있어서,In the device having a non-hierarchical file system, 파일생성요구가 있을 때마다 파일 시스템 정보에서 그 파일과 동명인 파일에 대한 정보가 존재하는지를 검색하는 단계와,Each time a file creation request is made, searching for information on a file having the same name as the file in the file system information; 상기 생성요구한 파일과 동명인 파일에 대한 정보가 상기 파일 시스템 정보에 존재하지 않으면 상기 파일 시스템 정보에 파일속성을 생성중인 파일로 하여 상기 생성요구한 파일에 대한 정보를 추가한 후에 상기 생성요구한 파일을 생성하는 단계와,If the information on the file having the same name as the file to be created does not exist in the file system information, the file requested to be created after adding the information on the file to be created by adding the information on the file as the file attribute being created to the file system information. Generating a; 상기 파일생성중에 상기 생성요구한 파일의 생성이 완료되었는지를 검색하는 단계와,Retrieving whether the generation of the requested file is completed during the file generation; 상기 파일의 생성이 완료되었으면 상기 파일 시스템 정보에서 상기 생성완료된 파일의 속성에서 생성중인 파일임을 나타내는 정보를 삭제하는 단계와,Deleting the information indicating that the file is being generated in the attribute of the generated file from the file system information when the file generation is completed; 상기 생성요구한 파일과 동명인 파일에 대한 정보가 상기 파일 시스템 정보에 존재하며, 그 파일정보의 속성 정보에 그 파일이 생성중인 파일임을 나타내는 정보가 있는지를 검색하는 단계와,Retrieving whether information on a file having the same name as the generated file exists in the file system information, and whether the attribute information of the file information includes information indicating that the file is being generated; 상기 파일정보의 속성정보에 그 파일이 생성중인 파일임을 나타내는 정보가 있으면, 상기 파일생성요구한 프로세스에 생성중인 동명파일이 존재함에 따라 상기 생성요구한 파일의 생성을 금지함을 나타내는 정보를 제공하는 단계와,If the attribute information of the file information includes information indicating that the file is being created, providing information indicating that the creation of the requested file is prohibited due to the existence of the same-name file being generated in the file creation request. Steps, 상기 파일정보의 속성정보에 그 파일이 생성중인 파일임을 나타내는 정보가 없으면, 상기 파일생성을 요구한 프로세서에 동명파일이 존재함에 따라 상기 생성요구한 파일의 생성을 금지함을 나타내는 정보를 제공하는 단계를 구비하는 것을 특징으로 하는 동명파일 생성억제방법.If there is no information indicating that the file is being generated in the attribute information of the file information, providing information indicating that the generation of the requested file is prohibited due to the presence of the same-name file in the processor requesting the file creation. The same name file generation suppression method comprising the.
KR1019980024604A 1998-06-27 1998-06-27 How to suppress same name file creation KR100539891B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980024604A KR100539891B1 (en) 1998-06-27 1998-06-27 How to suppress same name file creation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980024604A KR100539891B1 (en) 1998-06-27 1998-06-27 How to suppress same name file creation

Publications (2)

Publication Number Publication Date
KR20000003374A true KR20000003374A (en) 2000-01-15
KR100539891B1 KR100539891B1 (en) 2006-03-03

Family

ID=19541138

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980024604A KR100539891B1 (en) 1998-06-27 1998-06-27 How to suppress same name file creation

Country Status (1)

Country Link
KR (1) KR100539891B1 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745902A (en) * 1992-07-06 1998-04-28 Microsoft Corporation Method and system for accessing a file using file names having different file name formats

Also Published As

Publication number Publication date
KR100539891B1 (en) 2006-03-03

Similar Documents

Publication Publication Date Title
US10453076B2 (en) Cold storage for legal hold data
US7293097B2 (en) Enforcing uniform file-locking for diverse file-locking protocols
US4961224A (en) Controlling access to network resources
US5437029A (en) Path name resolution method providing fixed speed of file accessing in computer network
US6449607B1 (en) Disk storage with modifiable data management function
KR100330576B1 (en) System and method for locating pages on the world wide web and locating documents from a network of computers
RU96120166A (en) SYSTEM AND METHOD FOR EFFECTIVE USE OF CACHE MEMORY IN A DISTRIBUTED FILE SYSTEM
JP5241298B2 (en) System and method for supporting file search and file operations by indexing historical file names and locations
CN116663042A (en) Access control method, device, equipment and storage medium of multi-user-level directory
KR100539891B1 (en) How to suppress same name file creation
KR100570428B1 (en) Data storage method in file system using grouping
JP2007293433A (en) Document management system
CN116719482B (en) Data migration method and device, storage medium and electronic equipment
JPH1055300A (en) File access method
JP2581145B2 (en) Security processing method
JP2885625B2 (en) File system with index table
JP2787107B2 (en) Buffer control system and device
JP5276391B2 (en) Intelligent content indexing technology
JPH05342075A (en) File managing system
CA1311850C (en) Controlling access to network resources
JP2817911B2 (en) Access control method for keyed files
Alvarez et al. Active server for the management of structured documents link integrity
JPH02158851A (en) File access control system
JPH04142667A (en) Table access processing method
JPH08190501A (en) Data storing method for data base

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
LAPS Lapse due to unpaid annual fee