KR20090036396A - Method of defragmentation, and digital electronic apparatus adopting the method - Google Patents

Method of defragmentation, and digital electronic apparatus adopting the method Download PDF

Info

Publication number
KR20090036396A
KR20090036396A KR1020070101570A KR20070101570A KR20090036396A KR 20090036396 A KR20090036396 A KR 20090036396A KR 1020070101570 A KR1020070101570 A KR 1020070101570A KR 20070101570 A KR20070101570 A KR 20070101570A KR 20090036396 A KR20090036396 A KR 20090036396A
Authority
KR
South Korea
Prior art keywords
data
fragment
recording medium
pieces
file
Prior art date
Application number
KR1020070101570A
Other languages
Korean (ko)
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 KR1020070101570A priority Critical patent/KR20090036396A/en
Publication of KR20090036396A publication Critical patent/KR20090036396A/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/17Details of further file system functions
    • G06F16/1724Details of de-fragmentation performed by the file system
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/20Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits characterised by logic function, e.g. AND, OR, NOR, NOT circuits
    • H03K19/21EXCLUSIVE-OR circuits, i.e. giving output if input signal exists at only one input; COINCIDENCE circuits, i.e. giving output only if all input signals are identical

Abstract

A defragmentation method and a digital electronic apparatus adopting the same are provided to exchange data between two defragments by performing an exclusive logical sum operation three times. A defragmentation target file is set up(S1), and the location information of defragments of a defragmentation target file is read out(S2). Two defragments which are exchange targets are set up(S3). The data of two defragments are exchanged through an exclusive logical sum operation(S4), and the previous two steps are repeatedly performed until there is no movement target file fragment in the defragmentation target file(S6).

Description

조각-모음 방법 및 이 방법을 채용한 디지털 전자 장치{Method of defragmentation, and digital electronic apparatus adopting the method} Method of defragmentation, and digital electronic apparatus adopting the method}

본 발명은, 조각-모음 방법 및 이 방법을 채용한 디지털 전자 장치에 관한 것으로서, 보다 상세하게는, 디지털 전자 장치에서 제어기가 기록 매체에서의 파일 조각들을 모으는 조각-모음 방법, 및 이 방법을 채용한 디지털 전자 장치에 관한 것이다.The present invention relates to a defragmentation-collection method and a digital electronic device employing the method, and more particularly, to a defragmentation-collection method in which a controller collects file fragments on a recording medium in a digital electronic device, and this method. One relates to a digital electronic device.

제어기 및 기록 매체를 포함한 디지털 전자 장치의 예로서, 디지털 카메라, 피씨(PC: Personal Computer), 피디에이(PDA:personal digital assistant), 네비게이션, MP(Moving Picture experts group)-3 플레이어, 및 피엠피(PMP, Portable Multimedia Player) 등을 들 수 있다. 여기에서 기록 매체라 함은, 하드 디스크, 이이피롬(EEROM: electrical erasable programmable read only memoryRead Only Memory), 및 플래시 롬(Flash ROM) 등을 가리킨다.Examples of digital electronic devices including controllers and recording media include digital cameras, personal computers (PCs), personal digital assistants (PDAs), navigation, moving picture experts group (MP) -3 players, and PMPs. , Portable Multimedia Player). Here, the recording medium refers to a hard disk, an electrical erasable programmable read only memory (Read Only Memory), a flash ROM, and the like.

상기와 같은 디지털 전자 장치에 있어서, 제어기의 동작 과정에서 파일 조각들이 분산되어 저장되는 경우가 많다. 이에 따라, 제어기가 조각난 파일을 엑세스(access)하는 데에 시간이 많이 걸리므로, 사용자는 디지털 전자 장치에서 파일 조각-모음 기능을 수시로 사용한다. In such a digital electronic device, file fragments are often stored in a distributed manner during the operation of the controller. Accordingly, since the controller takes a long time to access the fragmented file, the user frequently uses the file defragmentation function in the digital electronic device.

도 1은 통상적인 디지털 전자 장치의 기록 매체에서 파일 조각들이 존재함을 보여준다. 도 2는 도 1의 파일 조각들이 모두 모여진 상태를 보여준다. 도 1에서 참조 부호 1은 조각-모음 전의 기록 매체를 가리킨다. 도 2에서 참조 부호 2는 조각-모음이 모두 완료된 기록 매체를 가리킨다. 1 shows that file fragments exist in a recording medium of a typical digital electronic device. FIG. 2 shows a state in which the pile pieces of FIG. 1 are collected. In FIG. 1, reference numeral 1 denotes a recording medium before defragmentation. In Fig. 2, reference numeral 2 denotes a recording medium in which all the pieces-collection are completed.

도 1 및 2를 참조하면, 파일 "A"의 조각들(AP1, AP2, AP3, 및 AP4)이 분산되었다가 모여짐을 알 수 있다. 또한, 파일 "B"의 조각들(BP1, BP2, 및 BP3)이 분산되었다가 모여짐을 알 수 있다. 그리고, 파일 "C"의 조각들(CP1, CP2, 및 CP3)이 분산되었다가 모여짐을 알 수 있다. 1 and 2, it can be seen that the pieces A P1 , A P2 , A P3 , and A P4 of the file “A” are dispersed and collected. It can also be seen that the pieces B P1 , B P2 , and B P3 of the file “B” are dispersed and collected. Then, it can be seen that the pieces C P1 , C P2 , and C P3 of the file “C” are dispersed and collected.

상기와 같은 파일 조각-모음 동작에 있어서, 두 파일 조각들의 데이터가 서로 교환되는 과정이 반복된다. 종래의 파일 조각-모음 방법에서 제1 조각 영역의 데이터 및 제2 조각 영역의 데이터가 서로 교환되는 과정을 요약하면 다음과 같다. In the file fragment-collection operation as described above, the process of exchanging data of two file fragments with each other is repeated. The process of exchanging data of the first fragment area and data of the second fragment area in the conventional file fragment-collection method is as follows.

먼저, 상기 제1 조각 영역의 데이터가 별도의 빈 영역으로 옮겨진다.First, the data of the first piece area is moved to a separate blank area.

다음에, 상기 제2 조각 영역의 데이터가 상기 제1 조각 영역으로 옮겨진다.Next, the data of the second piece area is transferred to the first piece area.

그리고, 상기 별도의 빈 영역의 데이터가 상기 제2 조각 영역으로 옮겨진다. Then, the data of the other empty area is transferred to the second piece area.

따라서, 종래의 디지털 전자 장치의 파일 조각-모음 방법에 의하면, 기록 매체에서 별도의 빈 영역이 필요하다. 따라서, 도 1에 도시된 바와 같이 기록 매체(1)에서 별도의 빈 영역이 없는 경우, 사용자가 파일을 삭제하지 않는 한 파일 조각-모음이 수행될 수 없다.Therefore, according to the file fragment-collection method of the conventional digital electronic device, a separate blank area is required in the recording medium. Therefore, when there is no separate blank area in the recording medium 1 as shown in Fig. 1, file defragmentation cannot be performed unless the user deletes the file.

본 발명의 목적은, 기록 매체에서 별도의 빈 영역을 사용하지 않고서 파일 조각들을 모을 수 있는 조각-모음 방법 및 디지털 전자 장치를 제공하는 것이다. It is an object of the present invention to provide a piece-collection method and a digital electronic device capable of collecting file pieces without using a separate blank area in the recording medium.

상기 목적을 이루기 위한 본 발명의 방법은, 제어기 및 기록 매체를 포함한 디지털 전자 장치에서 상기 제어기가 상기 기록 매체에서의 파일 조각들을 모으는 조각-모음 방법이다. 여기에서, 배타적 논리합(Exclusive-OR)에 의하여 두 조각들의 데이터가 교환된다.A method of the present invention for achieving the above object is a fragment-collection method in which the controller collects file fragments in the recording medium in a digital electronic device including a controller and a recording medium. Here, two pieces of data are exchanged by Exclusive-OR.

상기 본 발명의 장치는 제어기 및 기록 매체를 포함한 디지털 전자 장치이다. 여기에서, 상기 제어기가 상기 기록 매체에서의 파일 조각들을 모으는 과정에서 배타적 논리합에 의하여 두 조각들의 데이터가 교환된다.The device of the present invention is a digital electronic device including a controller and a recording medium. Here, the two pieces of data are exchanged by an exclusive logical OR in the process of the controller collecting the pieces of the file in the recording medium.

본 발명의 상기 조각-모음 방법 및 디지털 전자 장치에 의하면, 상기 두 조각들의 데이터를 사용하여 3 회의 배타적 논리합 연산을 수행함에 따라 상기 두 조각들의 데이터가 교환될 수 있다. 따라서, 기록 매체에서 별도의 빈 영역이 사용되지 않고서 파일 조각들이 모아질 수 있으므로, 사용자의 편의가 증진될 수 있다.According to the fragment-collection method and the digital electronic device of the present invention, data of the two pieces may be exchanged by performing three exclusive OR operations using the two pieces of data. Therefore, file fragments can be collected without using a separate blank area in the recording medium, so that user convenience can be enhanced.

이하, 첨부된 도면들과 함께 본 발명에 따른 바람직한 실시예가 상세히 설명된다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 3을 참조하여, 본 발명에 따른 디지털 전자 장치에서 제어기가 기록 매체에서의 파일 조각들을 모으는 알고리듬을 설명하면 다음과 같다.Referring to FIG. 3, an algorithm in which a controller collects file pieces of a recording medium in a digital electronic device according to the present invention will be described.

먼저, 제어기는 기록 매체 예를 들어, 하드 디스크 내에서의 조각-모음 대상 파일을 설정한다(단계 S1).First, the controller sets a defragmentation target file in a recording medium, for example, a hard disk (step S1).

다음에, 제어기는 기록 매체의 파일 할당(allocation) 테이블에서 조각-모음 대상 파일의 조각들의 위치 정보를 읽는다(단계 S2).Next, the controller reads the position information of the pieces of the fragment-collection target file from the file allocation table of the recording medium (step S2).

다음에, 제어기는 교환 대상의 두 조각들을 설정한다(단계 S3).Next, the controller sets two pieces of exchange object (step S3).

다음에, 제어기는 배타적 논리합(EX-OR)에 의하여 두 조각들의 데이터를 교환한다(단계 S4). 이와 관련된 설명은 도 4 내지 도 9를 참조하여 상세히 설명될 것이다.Next, the controller exchanges two pieces of data by an exclusive OR (EX-OR) (step S4). The related description will be described in detail with reference to FIGS. 4 to 9.

상기 단계들 S3 및 S4는 조각-모음 대상 파일에 대하여 이동 대상의 파일 조각이 남아있지 않을 때까지 반복 수행된다(단계 S5).Steps S3 and S4 are repeated for the fragment-collection object file until no file fragment of the movement object remains (step S5).

또한, 기록 매체에서 조각-모음 대상 파일이 남아있지 않을 때까지 상기 단계들 상기 단계들 S1 내지 S5가 반복 수행된다(단계 S6). Further, the above steps S1 to S5 are repeatedly performed until no fragment-collection object file remains in the recording medium (step S6).

도 4는 도 3의 알고리듬이 실행됨에 의하여 조각-모음 대상 파일들 각각의 조각들이 상호 교환에 의하여 모여짐을 보여준다. 도 4에서 참조 부호 1은 조각-모음 전의 기록 매체를 가리킨다. 참조 부호 2는 조각-모음이 모두 완료된 기록 매체를 가리킨다. 참조 부호 41은 파일 "A"의 조각-모음이 완료된 기록 매체를 가리킨다. 그리고 참조 부호 42는 파일 "A" 및 "B"의 조각-모음이 완료된 기록 매체를 가리킨다.FIG. 4 shows that the fragments of each of the fragment-collected files are gathered by interchange as the algorithm of FIG. 3 is executed. In Fig. 4, reference numeral 1 denotes a recording medium before defragmentation. Reference numeral 2 denotes a recording medium for which the defragmentation is completed. Reference numeral 41 denotes a recording medium on which the defragmentation of the file "A" is completed. Reference numeral 42 designates a recording medium on which pieces-collections of files "A" and "B" have been completed.

도 4에서 조각-모음 전의 기록 매체(1)와 파일 "A"의 조각-모음이 완료된 기록 매체(41)를 비교하면, 조각들 BP1과 AP2가 상호 교환되었음을 알 수 있다. 또한, 조각들 CP1과 AP3이 상호 교환되었음을 알 수 있다. In FIG. 4, when the recording medium 1 before the defragmentation-collection is compared with the recording medium 41 on which the defragmentation of the file "A" is completed, it can be seen that the pieces B P1 and A P2 are interchanged. It can also be seen that the pieces C P1 and A P3 are interchanged.

도 4에서 파일 "A"의 조각-모음이 완료된 기록 매체(41)와 파일 "A" 및 "B"의 조각-모음이 완료된 기록 매체(42)를 비교하면, 조각들 CP2와 BP1이 상호 교환되었음을 알 수 있다. 또한, 조각들 CP1과 BP3이 상호 교환되었음을 알 수 있다. In Fig. 4, when the recording medium 41 in which the fragment-collection of the files "A" is completed and the recording medium 42 in which the fragment-collections of the files "A" and "B" have been completed are compared, pieces C P2 and B P1 It can be seen that they were interchanged. It can also be seen that the pieces C P1 and B P3 are interchanged.

도 4에서 파일 "A" 및 "B"의 조각-모음이 완료된 기록 매체(42)와 조각-모음이 모두 완료된 기록 매체(2)를 비교하면, 조각들 CP1과 CP3이 상호 교환된 후에 조각들 CP2와 CP3이 상호 교환되었음을 알 수 있다. In FIG. 4, when the piece-collection complete recording medium 42 of files " A " and " B " and the piece-collection complete recording medium 2 are compared, the pieces C P1 and C P3 are interchanged. Notice that the pieces C P2 and C P3 are interchanged.

도 5는 도 4에서 파일 "A"의 조각-모음 과정을 보여준다. 도 5에서 도 4와 동일한 참조 부호는 동일한 대상을 가리킨다. 도 5에서 참조 부호 51은 조각들 "BP1"과 "AP2"의 교환이 완료된 기록 매체를 가리킨다.5 shows a fragment-collection process of file "A" in FIG. In FIG. 5, the same reference numerals as used in FIG. 4 indicate the same object. In Fig. 5, reference numeral 51 denotes a recording medium on which the pieces "B P1 " and "A P2 " have been completed.

도 5를 참조하면, 조각-모음 전의 기록 매체(1)에서 조각들 "BP1"과 "AP2"의 교환이 완료된 후, 조각들 "CP1"과 "AP3"의 교환이 완료되면, 파일 "A"의 조각-모음이 완료됨을 알 수 있다.Referring to Fig. 5, after the exchange of pieces "B P1 " and "A P2 " is completed in the recording medium 1 before the piece-collection, when the exchange of pieces "C P1 " and "A P3 " is completed, It can be seen that the defragmentation of the file "A" is completed.

도 6은 도 3의 단계 S4의 동작 원리를 보여주는 블록도이다.6 is a block diagram illustrating an operation principle of step S4 of FIG. 3.

도 6을 참조하면, 제1 파일 조각의 데이터 "A"와 제2 파일 조각의 데이터 "B"에 대하여 배타적 논리합(EX-OR) 연산이 수행되어 제1 결과(A EX-OR B)가 얻어진다.Referring to FIG. 6, an EX-OR operation is performed on data "A" of the first file fragment and data "B" of the second file fragment to obtain a first result (A EX-OR B). Lose.

다음에, 제1 결과(A EX-OR B)에 제2 파일 조각의 데이터 "B"에 대하여 배타적 논리합(EX-OR) 연산이 수행되면 제1 파일 조각의 데이터 "A"가 생성된다.Next, when an exclusive-OR operation is performed on the data "B" of the second file piece on the first result A EX-OR B, the data "A" of the first file piece is generated.

마찬가지로, 제1 결과(A EX-OR B)에 제1 파일 조각의 데이터 "A"에 대하여 배타적 논리합(EX-OR) 연산이 수행되면 제2 파일 조각의 데이터 "B"가 생성된다. Similarly, when an exclusive-OR operation is performed on the data "A" of the first file fragment A EX-OR B, the data "B" of the second file fragment is generated.

상기와 같은 동작 원리를 사용하여 두 파일 조각들을 교환할 경우, 별도의 임시 저장 공간을 사용하지 않고 직접 교환할 수 있는 방법에 대해서는 이하에서 설명될 것이다.When exchanging two file fragments using the above operating principle, a method of exchanging directly without using a separate temporary storage space will be described below.

도 7은 도 3의 단계 S4의 상세 알고리듬을 보여준다. 도 8 및 9는 도 7의 각 단계들을 예를 들어 설명하기 위한 도면들이다. 도 8에서 도 5와 동일한 참조 부호는 동일한 대상을 가리킨다.FIG. 7 shows the detailed algorithm of step S4 of FIG. 3. 8 and 9 are diagrams for describing each step of FIG. 7 by way of example. In FIG. 8, the same reference numerals as used in FIG. 5 indicate the same object.

도 7 내지 9를 참조하여 도 3의 단계 S4의 상세 알고리듬을 설명하면 다음과 같다.The detailed algorithm of step S4 of FIG. 3 will be described with reference to FIGS. 7 to 9.

먼저, 디지털 전자 장치 내의 제어기는, 기록 매체에서 제1 조각 영역의 데이터(BP1)과 제2 조각 영역의 데이터(AP2)의 배타적 논리합 결과(BAP12)를 제1 조각 영역에 덮어 기록한다(단계 S71).First, the controller in the digital electronic device overwrites the exclusive logical OR result BA P12 of the data B P1 of the first piece area and the data A P2 of the second piece area on the recording medium, overwriting the first piece area. (Step S71).

상기 단계 S71이 수행되면, 디지털 전자 장치 내의 제어기는, 기록 매체에서 제1 조각 영역의 데이터(BAP12)와 제2 조각 영역의 데이터(AP2)의 배타적 논리합 결 과(BP1)를 제2 조각 영역에 덮어 기록한다(단계 S72).When step S71 is performed, the controller in the digital electronic device performs a second logical OR result B P1 of the data BA P12 of the first piece area and the data A P2 of the second piece area on the recording medium. The piece is overwritten in the engraving area (step S72).

상기 단계 S72가 수행되면, 제1 조각 영역의 데이터(BAP12)와 제2 조각 영역의 데이터(BP1)의 배타적 논리합 결과(AP2)를 제1 조각 영역에 덮어 기록한다(단계 S73).When step S72 is performed, the exclusive OR result A P2 of the data BA P12 of the first piece area and the data B P1 of the second piece area is overwritten on the first piece area (step S73).

따라서, 디지털 전자 장치 내의 제어기는, 상기와 같이 배타적 논리합 연산을 3회 수행함에 따라, 별도의 임시 저장 공간을 사용하지 않고 두 파일 조각들을 직접 교환할 수 있다.Accordingly, the controller in the digital electronic device may directly exchange two file pieces without using a separate temporary storage space by performing the exclusive OR operation three times as described above.

본 발명은, 상기 실시예에 한정되지 않고, 청구범위에서 정의된 발명의 사상 및 범위 내에서 당업자에 의하여 변형 및 개량될 수 있다. The present invention is not limited to the above embodiments, but may be modified and improved by those skilled in the art within the spirit and scope of the invention as defined in the claims.

본 발명에 따른 조각-모음 방법 및 디지털 전자 장치에 의하면, 두 파일 조각들의 데이터를 사용하여 3 회의 배타적 논리합 연산을 수행함에 따라 두 파일 조각들의 데이터가 교환될 수 있다. 따라서, 기록 매체에서 별도의 빈 영역이 사용되지 않고서 파일 조각들이 모아질 수 있으므로, 사용자의 편의가 증진될 수 있다.According to the fragment-collection method and the digital electronic device according to the present invention, data of two file pieces may be exchanged by performing three exclusive OR operations using data of two file pieces. Therefore, file fragments can be collected without using a separate blank area in the recording medium, so that user convenience can be enhanced.

도 1은 통상적인 디지털 전자 장치의 기록 매체에서 파일 조각들이 존재함을 보여주는 블록도이다.1 is a block diagram showing file fragments in a recording medium of a typical digital electronic device.

도 2는 도 1의 파일 조각들이 모두 모여진 상태를 보여주는 블록도이다.FIG. 2 is a block diagram illustrating a state in which all the file pieces of FIG. 1 are collected.

도 3은 본 발명에 따른 디지털 전자 장치에서 제어기가 기록 매체에서의 파일 조각들을 모으는 알고리듬을 보여주는 흐름도이다.3 is a flowchart showing an algorithm in which a controller collects file fragments in a recording medium in the digital electronic device according to the present invention.

도 4는 도 3의 알고리듬이 실행됨에 의하여 조각-모음 대상 파일들 각각의 조각들이 상호 교환에 의하여 모여짐을 보여주는 블록도이다.FIG. 4 is a block diagram showing that pieces of each of the pieces-collection object files are gathered by interchange by performing the algorithm of FIG. 3.

도 5는 도 4에서 파일 "A"의 조각-모음 과정을 보여주는 블록도이다.FIG. 5 is a block diagram illustrating a fragment-collection process of file “A” in FIG. 4.

도 6은 도 3의 단계 S4의 동작 원리를 보여주는 블록도이다.6 is a block diagram illustrating an operation principle of step S4 of FIG. 3.

도 7은 도 3의 단계 S4의 상세 알고리듬을 보여주는 블록도이다. 7 is a block diagram showing the detailed algorithm of step S4 of FIG.

도 8 및 9는 도 7의 각 단계들을 예를 들어 설명하기 위한 도면들이다.8 and 9 are diagrams for describing each step of FIG. 7 by way of example.

<도면의 주요 부분에 대한 부호의 설명> <Explanation of symbols for the main parts of the drawings>

1...조각-모음 전의 기록 매체, 1 ... the recording medium before the piece

2...조각-모음이 모두 완료된 기록 매체, 2 ... recording media with all pieces

41...파일 "A"의 조각-모음이 완료된 기록 매체, 41.Fragment-collection complete of file "A",

42...파일 "A" 및 "B"의 조각-모음이 완료된 기록 매체, 42 ... Fragment-collection complete recording files "A" and "B",

51...조각들 "BP1"과 "AP2"의 교환이 완료된 기록 매체.51 ... Recording medium in which pieces of "B P1 " and "A P2 " are completed.

Claims (6)

제어기 및 기록 매체를 포함한 디지털 전자 장치에서 상기 제어기가 상기 기록 매체에서의 파일 조각들을 모으는 조각-모음 방법에 있어서,A fragment-collection method in which the controller collects file fragments in the recording medium in a digital electronic device including a controller and a recording medium. 배타적 논리합에 의하여 두 조각들의 데이터를 교환하는 조각-모음 방법.A fragment-collection method in which two pieces of data are exchanged by means of an exclusive OR. 제1항에 있어서, 상기 배타적 논리합에 의하여 두 조각들의 데이터를 교환함에 있어서,The method of claim 1, wherein in exchanging two pieces of data by the exclusive OR, (a) 제1 조각 영역의 데이터와 제2 조각 영역의 데이터의 배타적 논리합 결과를 상기 제1 조각 영역에 덮어 기록함;(a) overwriting the result of the exclusive OR of the data of the first piece area and the data of the second piece area over the first piece area; (b) 상기 단계 (a)가 수행되면, 상기 제1 조각 영역의 데이터와 상기 제2 조각 영역의 데이터의 배타적 논리합 결과를 상기 제2 조각 영역에 덮어 기록함; 및(b) when the step (a) is performed, overwriting the result of the exclusive OR of the data of the first piece area and the data of the second piece area over the second piece area; And (c) 상기 단계 (b)가 수행되면, 상기 제1 조각 영역의 데이터와 상기 제2 조각 영역의 데이터의 배타적 논리합 결과를 상기 제1 조각 영역에 덮어 기록함이 수행되는 조각-모음 방법.(c) When step (b) is performed, an exclusive OR result of the data of the first piece area and the data of the second piece area is overwritten on the first piece area and recorded. 제어기 및 기록 매체를 포함한 디지털 전자 장치에서 상기 제어기가 상기 기록 매체에서의 파일 조각들을 모으는 조각-모음 방법에 있어서,A fragment-collection method in which the controller collects file fragments in the recording medium in a digital electronic device including a controller and a recording medium. (a) 조각-모음 대상 파일을 설정함;(a) setting up a defragmentation target file; (b) 상기 조각-모음 대상 파일의 조각들의 위치 정보를 읽음;(b) reading location information of the pieces of the fragment-collection object file; (c) 교환 대상의 두 조각들을 설정함;(c) set up two pieces of exchange object; (d) 배타적 논리합에 의하여 상기 두 조각들의 데이터를 교환함;(d) exchanging the two pieces of data by an exclusive OR; (e) 상기 조각-모음 대상 파일에 대하여 이동 대상의 파일 조각이 남아있지 않을 때까지 상기 단계들 (c) 및 (d)를 반복 수행함을 포함한 조각-모음 방법. (e) a fragment-collection method comprising repeating the steps (c) and (d) until no file fragments of the moving object remain for the fragment-collection object file. 제3항에 있어서, 상기 단계 (d)가,The method of claim 3, wherein step (d) (d1) 제1 조각 영역의 데이터와 제2 조각 영역의 데이터의 배타적 논리합 결과를 상기 제1 조각 영역에 덮어 기록함;(d1) overwriting the result of the exclusive OR between the data of the first fragment area and the data of the second fragment area over the first fragment area; (d2) 상기 단계 (d1)이 수행되면, 상기 제1 조각 영역의 데이터와 상기 제2 조각 영역의 데이터의 배타적 논리합 결과를 상기 제2 조각 영역에 덮어 기록함; 및(d2) when the step (d1) is performed, overwriting the result of the exclusive OR of the data of the first piece area and the data of the second piece area over the second piece area; And (d3) 상기 단계 (d2)가 수행되면, 상기 제1 조각 영역의 데이터와 상기 제2 조각 영역의 데이터의 배타적 논리합 결과를 상기 제1 조각 영역에 덮어 기록함을 포함한 조각-모음 방법.and (d3) when the step (d2) is performed, overwriting the result of the exclusive OR of the data of the first piece area and the data of the second piece area over the first piece area. 제3항에 있어서, The method of claim 3, 상기 기록 매체에서 조각-모음 대상 파일이 남아있지 않을 때까지 상기 단계들 (a) 내지 (e)가 반복 수행되는 조각-모음 방법.And the steps (a) to (e) are repeatedly performed until no fragment-collection object file remains in the recording medium. 제어기 및 기록 매체를 포함한 디지털 전자 장치에 있어서,A digital electronic device including a controller and a recording medium, 상기 제어기가 상기 기록 매체에서의 파일 조각들을 모으는 과정에서 배타적 논리합에 의하여 두 조각들의 데이터를 교환하는 디지털 전자 장치. And digitally exchanging two pieces of data by means of an exclusive logical OR during the controller collecting the pieces of files on the recording medium.
KR1020070101570A 2007-10-09 2007-10-09 Method of defragmentation, and digital electronic apparatus adopting the method KR20090036396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070101570A KR20090036396A (en) 2007-10-09 2007-10-09 Method of defragmentation, and digital electronic apparatus adopting the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070101570A KR20090036396A (en) 2007-10-09 2007-10-09 Method of defragmentation, and digital electronic apparatus adopting the method

Publications (1)

Publication Number Publication Date
KR20090036396A true KR20090036396A (en) 2009-04-14

Family

ID=40761407

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070101570A KR20090036396A (en) 2007-10-09 2007-10-09 Method of defragmentation, and digital electronic apparatus adopting the method

Country Status (1)

Country Link
KR (1) KR20090036396A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11163638B2 (en) 2019-04-05 2021-11-02 Samsung Electronics Co., Ltd. Memory device for swapping data and operating method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11163638B2 (en) 2019-04-05 2021-11-02 Samsung Electronics Co., Ltd. Memory device for swapping data and operating method thereof
US11669393B2 (en) 2019-04-05 2023-06-06 Samsung Electronics Co., Ltd. Memory device for swapping data and operating method thereof

Similar Documents

Publication Publication Date Title
JP4832521B2 (en) Data management method in flash memory media
JP2006221636A (en) Run unit address mapping table and its composition method
JP2010186524A (en) Information storage device, and data recording and reproducing method
JP2008003932A (en) Data storage device, data storage method, and computer program
WO2019181949A1 (en) Recording device, reading device, recording method, recording program, reading method, reading program and magnetic tape
JP6391061B2 (en) How to write a file on tape
CN103092687A (en) Device and method of application program management
JP2008541283A (en) Circuits and methods that can improve the service life of memory
TWI553481B (en) Data management method, writing management system and method thereof for solid-state drive
JP2009205753A (en) Magnetic disk apparatus and data storage method
CN110504002B (en) Hard disk data consistency test method and device
RU2715288C1 (en) System and method of deleting files and counteracting recovery thereof
TW201447876A (en) Method and system for converting partition format
KR20090036396A (en) Method of defragmentation, and digital electronic apparatus adopting the method
JP4765967B2 (en) Information processing apparatus, information processing method, and program
TWI386825B (en) Electronic devices and operation methods of a file system
JP5002944B2 (en) Information processing apparatus, imaging apparatus, information processing method, and computer program
JP2007148965A (en) Error block management method and device for flash disk device
KR101111400B1 (en) Apparatus and method for recovering the data of embeded system
CN105528307B (en) A kind of method and electronic equipment of information processing
TW201032056A (en) Flash memory apparatus, data storage system, and method for sending special instructions to a flash memory apparatus
Reddy et al. Solid state device (SSD) forensics
CN103714007A (en) Data writing method and electronic equipment
Sansurooah A forensics overview and analysis of USB flash memory devices
JP2014115927A (en) Program update device, method, program, and recording medium

Legal Events

Date Code Title Description
N231 Notification of change of applicant
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application