CN102693173A - File processing method based on snapshot and solid state disk with snapshot function - Google Patents

File processing method based on snapshot and solid state disk with snapshot function Download PDF

Info

Publication number
CN102693173A
CN102693173A CN2012101493149A CN201210149314A CN102693173A CN 102693173 A CN102693173 A CN 102693173A CN 2012101493149 A CN2012101493149 A CN 2012101493149A CN 201210149314 A CN201210149314 A CN 201210149314A CN 102693173 A CN102693173 A CN 102693173A
Authority
CN
China
Prior art keywords
file
backup
snapshot
physical address
logical address
Prior art date
Application number
CN2012101493149A
Other languages
Chinese (zh)
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 CN2012101493149A priority Critical patent/CN102693173A/en
Publication of CN102693173A publication Critical patent/CN102693173A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/84Using snapshots, i.e. a logical point-in-time copy of the data

Abstract

The invention is suitable for the technical field of computers, and provides a file processing method based on snapshot. The method comprises the following steps of receiving a file backup command; building a mapping table from a logic address to a physical address, which is used by the file at present; receiving a file backup recovery command; and storing the mapping table from the logic address to the physical address, which is used by an appointed backup of the file, to the mapping table from the logic address to the physical address, which is used at present. Preferentially, if the file has constant data before and after being operated, a corresponding first snapshot produced before the file is operated and a corresponding second snapshot produced after the file is operated share the physical address of the data. Therefore, according to the method, the file can be conveniently backed up and restored, and all backups of the file can share a large quantity of constant data to save disk space.

Description

基于快照的文件处理方法及具有快照功能的固态硬盘 Snapshot-based file processing method and solid-state drive with snapshot capability

技术领域 FIELD

[0001] 本发明涉及计算机技术领域,尤其涉及一种基于快照的文件处理方法及具有快照功能的固态硬盘。 [0001] The present invention relates to computer technology, and in particular relates to a method for processing a file based on a snapshot of the snapshot function and have SSD.

背景技术 Background technique

[0002] 文件的备份及还原是在计算机使用过程中极为重要的操作。 Backup and Restore [0002] document is extremely important in the process of using computer operations. 计算机病毒、误操作等都可能使文件受损,能够恢复文件到之前的指定状态是非常必要的。 Computer viruses, misuse and so may damage the file, the file can be restored to a specific state before it is necessary. 传统的文件备份方法通常是主动的将文件拷贝到指定位置保存起来,待需要恢复文件备份时,将文件备份从这个特殊的位置拷贝出来,从而使文件的内容恢复到备份时刻的状态。 Traditional file backup method is generally active to copy the file to the specified location saved, restoring files need to be backed up, the backup copy of the file from this particular location, so that the contents of the file to restore the status of the backup time. 用这种拷贝的方式来实现文件的备份及还原比较大的问题是,每个文件备份都独立占据硬盘空间,而且备份及还原的过程都是在硬盘上拷贝全部数据的过程,而这个过程往往需要较长的时间。 In this way copies for backup and restore files larger problem is that each file backed up independently occupy hard drive space, and the backup and restore process is the process copy all the data on the hard disk, and this process often It takes a long time. [0003] 现有技术中ー固态硬盘备份的实施例如图I所示,该实现方法是将文件全部拷贝到指定位置进行保存,逻辑地址L0、L1和L2为ー个文件,对应物理地址P0、P1和P2。 [0003] In the prior art embodiment ー backed SSD e.g. as shown in FIG. I, this implementation method is to copy all files to a specified storage location, a logical address L0, L1 and L2 are ー files, the corresponding physical address P0, P1 and P2. 备份该文件时,将逻辑地址L0、LI和L2的内容拷贝到逻辑地址L3、L4和L5中,对应物理地址P3、P4和P5,这样需要和原来文件同样大小的硬盘空间来保存文件备份,当需要恢复备份时,将逻辑地址L3、L4和L5存放的内容拷贝到逻辑地址L0、LI和L2中,实现文件的恢复,这种实现方法明显的会占用大量的物理空间。 When backing up the file, the logical address L0, LI and L2 copy the contents of logical address L3, L4 and L5 of, the corresponding physical address P3, P4 and P5, this requires the original files of the same size of disk space to store the file backup, when the need to restore the backup, the logical address L3, L4 and L5 stored content copied to the logical address L0, LI and L2, file recovery achieved, this implementation would obviously take up a lot of physical space.

[0004] 综上可知,现有的硬盘文件的备份及恢复方法,在实际使用上显然存在不便与缺陷,所以有必要加以改迸。 [0004] To sum up, the conventional hard disk file backup and recovery methods, there are problems and disadvantages apparent in practical use, it is necessary to be changed Beng.

发明内容 SUMMARY

[0005] 针对上述的缺陷,本发明的目的在于提供一种基于快照的文件处理方法及具有快照功能的固态硬盘,可以方便的实现文件的备份与恢复。 [0005] In view of the above drawbacks, an object of the present invention is to provide a document processing method based on the snapshot and SSD with snapshot capability, you can easily realize backup and restore files.

[0006] 为了实现上述目的,本发明提供一种基于快照的文件处理方法,所述方法包括: [0006] To achieve the above object, the present invention provides a file processing method based on the snapshot, the method comprising:

[0007] 接收文件备份命令; [0007] received command file backup;

[0008] 建立所述文件当前使用的逻辑地址到物理地址的映射表; [0008] establishing logical address in the file currently being used to map a physical address;

[0009] 接收文件备份恢复命令; [0009] receiving a resume command file backup;

[0010] 将所述文件的指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表。 [0010] The logical address specifies the mapping table using the backup file to the physical address to the logical address stored in the mapping table currently used physical address.

[0011] 根据本发明的基于快照的文件处理方法,所述文件备份通过储存快照实现。 [0011] The snapshot-based file processing method of the present invention, is achieved by storing the snapshot file backup.

[0012] 根据本发明的基于快照的文件处理方法,所述指定备份使用的逻辑地址到物理地址的映射表与所述当前使用的逻辑地址到物理地址的映射表共用部分相同的物理地址。 [0012] The snapshot-based file processing method of the present invention, the use of the designated backup logical address to the logical address physical address mapping table with the mapping table currently used to share the same physical address of the physical address portion.

[0013] 根据本发明的基于快照的文件处理方法,所述文件被操作前的备份对应第一快照,所述文件被操作后的备份对应第二快照,若所述文件被操作前后具有不变的数据,则所述第一快照和第二快照共用所述数据的物理地址。 [0013] Based on the snapshot file processing method, corresponding to the second backup snapshot corresponding to the backup file is operated before the first snapshot, the file to be operated, if the file before and after being operated in accordance with the present invention having a constant data, then the first snapshot and the second snapshot share the physical address data.

[0014] 根据本发明的基于快照的文件处理方法,所述方法还包括:[0015] 接收所述文件备份的删除指令,删除所述文件的逻辑地址到物理地址映射表的指定备份。 [0014] The snapshot-based file processing method of the present invention, the method further comprises: [0015] receiving the deletion instruction file backup, deleting the logical address of the backup file to the specified physical address mapping table.

[0016] 根据本发明的基于快照的文件处理方法,所述方法还包括: [0016] The snapshot-based file processing method of the present invention, the method further comprising:

[0017] 接收所述文件备份的查询指令,返回当前所述文件的所有备份信息。 [0017] receiving the query instruction file backup, the backup information returns all current file.

[0018] 本发明还提供ー种具有快照功能的固态硬盘,所述固态硬盘包括: [0018] The present invention also provides a solid-state hard drive ー with snapshot capability, the SSD comprising:

[0019] 文件备份模块,用于接收文件备份命令,建立所述文件当前使用的逻辑地址到物理地址的映射表; [0019] file backup module, for receiving a file backup command to establish the logical address of the file currently being used to map a physical address;

[0020] 文件恢复模块,用于接收文件备份恢复命令,将所述文件的指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表。 [0020] The file recovery module for receiving a resume command file backup, the backup of the specified logical address of the file using the mapping table to save the physical address to the logical address of the currently used to map the physical address. [0021] 本发明还提供ー种具有快照功能的固态硬盘,所述固态硬盘具有快照空间,用于通过储存快照实现所述文件备份。 [0021] The present invention also provides a solid-state hard drive ー with snapshot capability, the SSD has snapshots space for the backup file is achieved by storing the snapshot.

[0022] 本发明还提供ー种具有快照功能的固态硬盘,所述固态硬盘还包括备份删除模块,用于接收所述文件备份的删除指令,删除所述文件的逻辑地址到物理地址映射表的指定备份。 [0022] The present invention also provides a solid-state hard drive ー with snapshot capability, the SSD further comprises a backup deleting module configured to delete the backup file receiving command, the logical address of the deleted file to physical address mapping table specify the backup.

[0023] 本发明还提供ー种具有快照功能的固态硬盘,所述固态硬盘还包括备份查询模块,用于接收所述文件备份的查询指令,返回当前所述文件的所有备份信息。 [0023] The present invention also provides a solid-state hard drive ー with snapshot capability, the backup SSD further comprises a query module for receiving a query instruction to the backup file, backup information returns all of the current file.

[0024] 本发明通过固态硬盘的快照功能实现文件的快速备份与恢复,具体的,当固态硬盘接收某文件的备份创建命令,则直接建立对应该文件的当前快照,即文件当前使用的逻辑地址到物理地址的映射表并保存,文件被操作后,若需要恢复到被操作前状态,则接收恢复指令,将指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表,使文件恢复到指定备份的状态。 [0024] The present invention enables rapid backup files and restore by Snapshot feature solid-state drive, specific when creating command backup SSDs to receive a file, it is built directly current snapshot should file the logical address, document currently in use mapping table and save the physical address, the file is operated, if desired, before being returned to the operating state, the recovery command received, the logical address of the specified backup to use the mapping table to save the physical address to the currently used logic address to physical address mapping table, so that the specified file recovery to the state of the backup. 更好的,若文件被操作前后具有不变的数据,则该文件被操作前对应的第一快照和被操作后对应的第二快照共用所述数据的物理地址,借此可节省大量物理空间。 Better, if the file before and after being operated with a constant data, the file corresponding to the operated before the first snapshot and the corresponding physical address after operation of said second snapshot share data, whereby can save a lot of physical space .

附图说明 BRIEF DESCRIPTION

[0025] 图I是现有技术ー实施例的文件备份的映射表示意图; [0025] Figure I is a prior art embodiment of a file backup map represents ー intention;

[0026] 图2是本发明一实施例提供的固态硬盘的结构示意图; [0026] FIG. 2 is a schematic structural diagram of an embodiment of the SSD of the present invention;

[0027] 图3A是本发明一实施例的第一快照结构示意图; [0027] FIG 3A is a schematic view of a first snapshot of the embodiment of the present invention;

[0028] 图3B是图3A所示实施例的第二快照结构示意图; [0028] FIG. 3B is a second snapshot shown in Figure 3A a schematic view of the structure of the embodiment;

[0029] 图3C是图3A所示实施例第一快照恢复后的结构示意图; [0029] FIG 3C is a schematic view of the structure shown in Figure 3A after recovery embodiment according to the first snapshot;

[0030] 图4A是本发明另ー实施例的第一快照结构示意图; [0030] FIG. 4A is a diagram showing the structure of a first snapshot of another embodiment of the present invention ー;

[0031] 图4B是图4A所示实施例的第二快照结构示意图; [0031] FIG. 4B is a schematic view of FIG. 4A second snapshot of the structure of the embodiment;

[0032] 图4C是图4A所示实施例的被操作后的第一快照的结构示意图; [0032] FIG 4C is a schematic view of the structure shown in FIG. 4A is operated after the first snapshot embodiment;

[0033] 图5是本发明一实施例提供的基于快照的文件处理方法流程图。 [0033] FIG. 5 is based on a snapshot of the file processing method according to the present invention provides a flow chart of FIG.

具体实施方式 Detailed ways

[0034] 为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进ー步详细说明。 [0034] To make the objectives, technical solutions and advantages of the present invention will become more apparent, described in further detail in conjunction with the drawings and the intake ー embodiments of the present invention. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention. [0035] 參见图2,本发明提供了ー种具有快照功能的固态硬盘,该固态硬盘100具有存储空间,用于通过存储快照实现对文件的备份。 [0035] Referring to Figure 2, the present invention provides a solid-state hard drive ー with snapshot capability, the SSD 100 having a storage space for backup files by storing the snapshot. 具体应用中,固态硬盘100包括: In particular applications, solid state disk 100 comprising:

[0036] 文件备份模块10,用于接收文件备份命令,建立文件当前使用的逻辑地址到物理地址的映射表。 [0036] File backup module 10, for receiving a file backup command to establish the logical address of the file currently being used to map a physical address. 本发明的实施例中,若文件被操作前的数据有变化,则其对应的被操作前后的备份也不相同。 Embodiments of the present invention, if the pre-change data file is operated, the corresponding backup before and after the operation is not the same. 比如,若某文件被操作前的备份对应第一快照,经过一段时间的写操作后对应的备份为第二快照,由于该文件的数据内容经过了写操作,所以该文件的数据有部分的变化,对应的备份也有相应的变化。 For example, if a backup file before first snapshot corresponding to the operation, the write operation after a period of time corresponding to the second snapshot backup, since the data content of the file after the write operation, it changes the portion of the data file , the corresponding backup is also a corresponding change. 优选的是,某文件可以有多个备份,对应不同时刻的数据状态。 Preferably, a backup file can have multiple, data state corresponding to different times.

[0037] 文件恢复模块20,用于接收文件备份恢复命令,将文件的指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表。 [0037] File recovery module 20, configured to receive a file backup restore command, the logical address designated using the backup file to physical address mapping table to save the logical address of the currently used to map the physical address. 前述已经说明,对于某一文件,其可以有多个备份对应不同的数据状态,若用户想将该文件的数据状态恢复到某ー时刻的状态,则只需通过系统发送恢复命令,调用指定备份使用的逻辑地址到物理地址的映射表,使其保存到当前使用的逻辑地址到物理地址的映射表。 The foregoing has described, for a file, which may have different data states corresponding to the plurality of backup, if the user wants to restore the data file to a status of a state ー time, simply by sending a command to restore the system, call the specified backup logical addresses to physical address mapping table, so it saves the currently used logical address to physical address mapping table. [0038] 參见图3A〜图3C所示文件备份恢复的实施例,图3A是固态硬盘100的某文件当前使用的第一快照,图3B是对应同一文件初始备份对应的第二快照,当固态硬盘100接收恢复文件备份的命令时,文件恢复模块20将图3B所示第二快照的逻辑地址到物理地址映射表恢复到图3A所示的第一快照备份上,图3A所示备份的逻辑地址L0、L1和L2分别对应物理地址PO、Pl和P2,如图3C所示,图3A备份的文件内容恢复成图3B所示备份的内容。 [0038] Referring to FIG. 3C 3A~ backup and recovery file shown in FIG embodiment, FIG. 3A is a first snapshot of a file SSD 100 currently in use, FIG. 3B is corresponding to the same initial backup files corresponding to the second snapshot, when when the SSD 100 receives the resume command file backup, file recovery module 20 shown in FIG second snapshot of the logical address to physical address mapping table to return to the first snapshot backup 3A shown in Figure 3B, the backup 3A shown in FIG. logical addresses L0, L1 and L2 correspond to the physical address of PO, Pl and P2, as shown in FIG. 3C, FIG. 3A backup file contents restore the contents of the backup 3B as shown in FIG.

[0039] 本发明的固态硬盘还包括备份删除模块30和备份查询模块40。 [0039] The solid state drive of the present invention further includes a backup module 30 and a backup delete query module 40. 基中,备份删除模块30用于接收文件备份的删除指令,删除文件的逻辑地址到物理地址映射表的指定备份,备份查询模块40用于接收文件备份的查询指令,返回当前所述文件的所有备份信息。 Group, delete the backup module 30 receives an instruction for deleting the backup files, the file to delete the logical address to physical address mapping table in the backup, the backup query module 40 for receiving a query instruction file backup, the current return all of the file backup information.

[0040] 实际应用中,文件被操作前后,通常只有部分数据作了变化,而大部分数据没有改变。 [0040] In practice, before and after the file operation, usually only a part of the data changes made, but most of the data has not changed. 有鉴于此,本发明的各个备份对应的快照之间共用其中部分相同的物理地址,可大大节省占用空间。 In view of this, which share the same physical address corresponding to the portion between the respective backup snapshot of the present invention can greatly save space. 參见图4A〜图4C,假设某文件当前使用图4A所示的第一快照,为便于说明,在此图4B为此时保存备份的第二快照,当该文件被操作之后再进行备份,则图4A所示的第一快照接收写操作,对逻辑地址LO的写操作使图4A所示快照的逻辑地址LO对应新的物理地址L3,对逻辑地址L2的写操作使图4A所示快照的逻辑地址L2对应新的物理地址L4,第一快照变化为如图4C所示的结构,如此经过一段时间对文件的操作后,由于文件的部分数据没有变化,所以第一快照和第二快照仍具有不变的物理地址P1。 Referring to FIG. 4A~ to Figure 4C, assume that a snapshot of the file using the first current as shown in FIGS. 4A, for convenience of explanation, in the second snapshot 4B is to save the backup at this time to this figure, when the backup file is then operated, first snapshot is shown in FIG. 4A receive write operation, write logical address of the LO LO makes FIG logical addresses corresponding to the new snapshot FIG 4A L3 physical address, write operations snapshot shown in FIG. 4A logical address L2 structure shown in Figure 4C correspond to the new logical address physical address L2 L4, as shown in the first snapshot changes, so over time the operation of the document, since there is no change of the data file, the first snapshot and the second snapshot still has the same physical address P1. 借此,本发明的固态硬盘100在文件的多个快照间能够共享部分的物理地址,从而节省部分硬盘空间。 Accordingly, the present invention SSD physical address portion 100 can be shared among a plurality of snapshot files, to save disk space portion.

[0041] 參见图5本发明提供一种基于快照的文件处理方法,其可以通过如图2所示的固态硬盘实现,该方法包括: [0041] Referring to Figure 5 of the present invention provides a file processing method based on a snapshot, which may be implemented as shown in FIG SSD by 2, the method comprising:

[0042] 步骤S501,文件备份模块10接收文件备份命令,建立所述文件当前使用的逻辑地址到物理地址的映射表。 [0042] In step S501, the file backup file backup module 10 receives the command to establish the logical address of the file currently being used to map a physical address.

[0043] 本发明中的文件备份均通过固态硬盘100的储存快照实现,某一文件某时刻的一个备份对应ー个快照,快照中保存文件当前使用的逻辑地址到物理地址的映射表。 [0043] In the present invention, the backup files are stored by the snapshot SSD 100 implemented, a backup file corresponds to a certain time ー snapshots, the snapshot of the logical address used for saving the current physical address mapping table.

[0044] 步骤S502,文件恢复模块20接收文件备份恢复命令,将文件的指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表。 [0044] step S502, the file recovery module 20 receives the file backup restore command, the logical address designated using the backup file to physical address mapping table to save the logical address of the currently used to map the physical address.

[0045] 具体应用中,文件被操作的前后或是某ー操作时刻,该文件具有不同的数据,但相比被操作前的文件数据,被操作后的文件数据只有部分改变,而大量的数据不会有变化。 [0045] In particular applications, or before and after an operation timing ー file is operated, the document having different data, but the file data is compared with pre-operation, the data file is operated only partially changed, and the large amount of data there will be no change. 因此,当恢复文件的指定备份时,指定备份使用的逻辑地址到物理地址的映射表可以与当前使用的逻辑地址到物理地址的映射表共用部分相同的物理地址,借此节省硬盘空间。 Thus, when restoring the specified backup file, backup using the specified logical address to physical address mapping table may be used with the current logical address to physical address mapping table share the same physical address portion, thereby saving disk space.

[0046] 需要说明的是,当文件备份好后,固态硬盘100可以接收文件备份的删除指令,删除文件的逻辑地址到物理地址映射表的指定备份,也可以接收文件备份的查询指令,返回当前所述文件的所有备份信息。 [0046] Incidentally, when a good file backup SSD 100 may receive a delete instruction file backup, the logical address of the deleted file to a specified backup physical address mapping table may also receive query instruction file backup, returns the current All information of the backup file.

[0047] 更好的,若某文件具有多处备份(快照),比如,某文件被操作前对应第一快照,被操作后对应第二快照,若操作前后具有不变的数据,则第一快照和第二快照共用所述不变数据的物理地址。 [0047] better, if a file has multiple backups (snapshots), for example, corresponding to a first snapshot of a file before it is operated, a corresponding second snapshot after being operated, if the operator has a constant data before and after, the first snapshot and second snapshot share the same physical address of the data. 借此,本发明不仅可以快速的建立与恢复备份,还可以节省大量空间。 Thus, the present invention not only can quickly create and restore backups, you can also save a lot of space.

[0048] 综上所述,本发明通过固态硬盘的快照功能实现文件的快速备份与恢复,具体的,当固态硬盘接收某文件的备份创建命令,则直接建立对应该文件的当前快照,即文件当前使用的逻辑地址到物理地址的映射表并保存,文件被操作后,若需要恢复到被操作前状态, 则接收恢复指令,将指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表,使文件恢复到指定备份的状态。 [0048] In summary, the present invention is fast file backup and recovery by snapshot feature solid-state drive, specific when creating a backup command SSDs to receive a file, it should direct the establishment of the current snapshot of the file, that file current logical address used to map the physical addresses and saved, the file is operated, if desired, returned to pre-operated state, the received recovery command to the specified logical address to be used to back up the map a physical address to be saved to the said logical addresses used by the current physical address mapping table to the backup files are restored to the state specified. 更好的,若文件被操作前后具有不变的数据,则该文件被操作前对应的第一快照和被操作后对应的第二快照共用所述数据的物理地址,借此可节省大量物理空间。 Better, if the file before and after being operated with a constant data, the file corresponding to the operated before the first snapshot and the corresponding physical address after operation of said second snapshot share data, whereby can save a lot of physical space .

[0049]当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 [0049] Of course, the present invention may have a variety of other embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding modifications and variations according to the present invention, but these corresponding changes and variations should fall within the scope of the appended claims.

Claims (10)

1. 一种基于快照的文件处理方法,其特征在于,所述方法包括: 接收文件备份命令; 建立所述文件当前使用的逻辑地址到物理地址的映射表; 接收文件备份恢复命令; 将所述文件的指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表。 1. A document processing method based on the snapshot, wherein the method comprises: receiving a command file backup; establishing a logical address of the file currently being used to map a physical address; receiving a resume command file backup; the the logical address specified using the backup file to physical address mapping table to save the logical address of the currently used to map the physical address.
2.根据权利要求I所述的基于快照的文件处理方法,其特征在于,所述文件备份通过储存快照实现。 The file processing method according to I based on a snapshot, wherein the snapshot file backup storage is achieved by the claims.
3.根据权利要求I所述的基于快照的文件处理方法,其特征在于,所述指定备份使用的逻辑地址到物理地址的映射表与所述当前使用的逻辑地址到物理地址的映射表共用部分相同的物理地址。 The file processing method of claim I snapshot-based, wherein said specified logical address to the logical address used by the backup map the physical address of the current used to map the physical address of the common part of claim the same physical address.
4.根据权利要求2所述的基于快照的文件处理方法,其特征在于,所述文件被操作前的备份对应第一快照,所述文件被操作后的备份对应第二快照,若所述文件被操作前后具有不变的数据,则所述第一快照和第二快照共用所述数据的物理地址。 4. The document processing method based on the snapshot, wherein the claim 2, corresponding to the second snapshot backup before the backup file corresponding to the operated first snapshot, the file to be operated, if the file constant before and after the data has been operated, then the first snapshot and the second snapshot share the physical address data.
5.根据权利要求I所述的基于快照的文件处理方法,其特征在于,所述方法还包括: 接收所述文件备份的删除指令,删除所述文件的逻辑地址到物理地址映射表的指定备份。 The snapshot-based file processing method according to claim I, wherein said method further comprises: receiving the backup file deletion instruction, the logical address of the deleted file to the specified physical address mapping table backup .
6.根据权利要求I所述的基于快照的文件处理方法,其特征在于,所述方法还包括: 接收所述文件备份的查询指令,返回当前所述文件的所有备份信息。 The file processing method according to I based on a snapshot, wherein said method further comprises: receiving a query command the backup file, backup information for all of the return current file.
7. ー种具有快照功能的固态硬盘,其特征在于,所述固态硬盘包括: 文件备份模块,用于接收文件备份命令,建立所述文件当前使用的逻辑地址到物理地址的映射表; 文件恢复模块,用于接收文件备份恢复命令,将所述文件的指定备份使用的逻辑地址到物理地址的映射表到保存到所述当前使用的逻辑地址到物理地址的映射表。 7. ー solid-state hard drive with snapshot capability, wherein said solid state disk comprising: a file backup module, for receiving a file backup command to establish the logical address of the file currently being used to map a physical address; file recovery means for receiving a restore command file backup, the backup using the logical address of the specified file to physical address mapping table to save the logical address of the currently used to map the physical address.
8.根据权利要求7所述的固态硬盘,其特征在于,所述固态硬盘具有快照空间,用于通过储存快照实现所述文件备份。 SSD according to claim 7, wherein said solid state disk with snapshots space for the backup file is achieved by storing the snapshot.
9.根据权利要求7所述的固态硬盘,其特征在于,所述固态硬盘还包括备份删除模块,用于接收所述文件备份的删除指令,删除所述文件的逻辑地址到物理地址映射表的指定备份。 SSD according to claim 7, wherein said solid state disk further includes a backup deleting module, receiving the instruction for deleting the backup files, deleting the logical address of the file to physical address mapping table specify the backup.
10.根据权利要求7所述的固态硬盘,其特征在于,所述固态硬盘还包括备份查询模块,用于接收所述文件备份的查询指令,返回当前所述文件的所有备份信息。 10. The SSD of claim 7, wherein said solid state disk further includes a backup query module for receiving a query instruction to the backup file, backup information returns all of the current file.
CN2012101493149A 2012-05-15 2012-05-15 File processing method based on snapshot and solid state disk with snapshot function CN102693173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101493149A CN102693173A (en) 2012-05-15 2012-05-15 File processing method based on snapshot and solid state disk with snapshot function

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012101493149A CN102693173A (en) 2012-05-15 2012-05-15 File processing method based on snapshot and solid state disk with snapshot function
PCT/CN2013/074923 WO2013170702A1 (en) 2012-05-15 2013-04-28 File processing method based on snapshot and solid state disk with snapshot function

Publications (1)

Publication Number Publication Date
CN102693173A true CN102693173A (en) 2012-09-26

Family

ID=46858647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101493149A CN102693173A (en) 2012-05-15 2012-05-15 File processing method based on snapshot and solid state disk with snapshot function

Country Status (2)

Country Link
CN (1) CN102693173A (en)
WO (1) WO2013170702A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013170702A1 (en) * 2012-05-15 2013-11-21 记忆科技(深圳)有限公司 File processing method based on snapshot and solid state disk with snapshot function
CN103744718A (en) * 2013-12-17 2014-04-23 记忆科技(深圳)有限公司 Method and system for achieving virtual desktop
CN104252395A (en) * 2013-06-28 2014-12-31 联想(北京)有限公司 Information processing method and electronic equipment
CN104281505A (en) * 2013-07-03 2015-01-14 联想(北京)有限公司 Data backup method and device and electronic device
CN104915265A (en) * 2014-03-10 2015-09-16 联想(北京)有限公司 Data backup method and electronic equipment
CN106852174A (en) * 2014-10-22 2017-06-13 慧与发展有限责任合伙企业 The data recovery presented using block disk

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999013403A1 (en) * 1997-09-09 1999-03-18 Storage Technology Corporation Data file storage management system for snapshot copy operations
CN1755640A (en) * 2004-09-29 2006-04-05 日本电气株式会社 Switch device, system, backup method and computer program
US7085785B2 (en) * 2002-02-15 2006-08-01 International Business Machines Corporation Writable file system snapshot with ditto address feature
CN1331063C (en) * 2003-06-10 2007-08-08 联想(北京)有限公司 On-line data backup method based on data volume snapshot
CN101201774A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Method for snapshot of magnetic disc
CN101777014A (en) * 2010-02-03 2010-07-14 华为终端有限公司 Backup processing method and device
CN102033793A (en) * 2010-12-14 2011-04-27 成都市华为赛门铁克科技有限公司 Snapshot method and solid-state hard disk
CN102591790A (en) * 2011-12-30 2012-07-18 记忆科技(深圳)有限公司 Method for implementing data storage snapshot based on solid state disk, and solid state disk

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI321740B (en) * 2006-11-29 2010-03-11 Inventec Corp Method of performing disk snapshot by snapshot pointer
CN101295276B (en) * 2008-06-20 2010-06-09 中国科学院计算技术研究所 Magnetic disk data backup system and method
CN102693173A (en) * 2012-05-15 2012-09-26 记忆科技(深圳)有限公司 File processing method based on snapshot and solid state disk with snapshot function

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999013403A1 (en) * 1997-09-09 1999-03-18 Storage Technology Corporation Data file storage management system for snapshot copy operations
US7085785B2 (en) * 2002-02-15 2006-08-01 International Business Machines Corporation Writable file system snapshot with ditto address feature
CN1331063C (en) * 2003-06-10 2007-08-08 联想(北京)有限公司 On-line data backup method based on data volume snapshot
CN1755640A (en) * 2004-09-29 2006-04-05 日本电气株式会社 Switch device, system, backup method and computer program
CN101201774A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Method for snapshot of magnetic disc
CN101777014A (en) * 2010-02-03 2010-07-14 华为终端有限公司 Backup processing method and device
CN102033793A (en) * 2010-12-14 2011-04-27 成都市华为赛门铁克科技有限公司 Snapshot method and solid-state hard disk
CN102591790A (en) * 2011-12-30 2012-07-18 记忆科技(深圳)有限公司 Method for implementing data storage snapshot based on solid state disk, and solid state disk

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013170702A1 (en) * 2012-05-15 2013-11-21 记忆科技(深圳)有限公司 File processing method based on snapshot and solid state disk with snapshot function
CN104252395B (en) * 2013-06-28 2018-02-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104252395A (en) * 2013-06-28 2014-12-31 联想(北京)有限公司 Information processing method and electronic equipment
CN104281505A (en) * 2013-07-03 2015-01-14 联想(北京)有限公司 Data backup method and device and electronic device
CN104281505B (en) * 2013-07-03 2017-07-28 北京联想核芯科技有限公司 Data back up method, device and electronic equipment
CN103744718A (en) * 2013-12-17 2014-04-23 记忆科技(深圳)有限公司 Method and system for achieving virtual desktop
CN104915265A (en) * 2014-03-10 2015-09-16 联想(北京)有限公司 Data backup method and electronic equipment
CN104915265B (en) * 2014-03-10 2018-03-16 北京联想核芯科技有限公司 Data back up method and electronic equipment
CN106852174A (en) * 2014-10-22 2017-06-13 慧与发展有限责任合伙企业 The data recovery presented using block disk

Also Published As

Publication number Publication date
WO2013170702A1 (en) 2013-11-21

Similar Documents

Publication Publication Date Title
US7249150B1 (en) System and method for parallelized replay of an NVRAM log in a storage appliance
US9557929B2 (en) Data recovery operations, such as recovery from modified network data management protocol data
US8055864B2 (en) Efficient hierarchical storage management of a file system with snapshots
US8595191B2 (en) Systems and methods for performing data management operations using snapshots
US8959299B2 (en) Using a snapshot as a data source
EP2366151B1 (en) Method and system for managing replicated database data
US7373364B1 (en) System and method for creating a point-in-time restoration of a database file
US8510279B1 (en) Using read signature command in file system to backup data
US7953945B2 (en) System and method for providing a backup/restore interface for third party HSM clients
US8996460B1 (en) Accessing an image in a continuous data protection using deduplication-based storage
US7707184B1 (en) System and method for snapshot full backup and hard recovery of a database
JP5671615B2 (en) Map Reduce Instant Distributed File System
US7930275B2 (en) System and method for restoring and reconciling a single file from an active file system and a snapshot
US8725973B2 (en) Systems and methods for management of virtualization data
US8181065B2 (en) Systems and methods for providing nonlinear journaling
US7076622B2 (en) System and method for detecting and sharing common blocks in an object storage system
US9098514B2 (en) Efficient data management improvements, such as docking limited-feature data management modules to a full-featured data management system
US20140025637A1 (en) De-Duplication Based Backup Of File Systems
US7822932B2 (en) Systems and methods for providing nonlinear journaling
CN101814045B (en) Data organization method for backup services
US7899800B2 (en) Systems and methods for providing nonlinear journaling
US8250033B1 (en) Replication of a data set using differential snapshots
US8095756B1 (en) System and method for coordinating deduplication operations and backup operations of a storage volume
US8856080B2 (en) Backup using metadata virtual hard drive and differential virtual hard drive
US7752402B2 (en) Systems and methods for allowing incremental journaling

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C12 Rejection of a patent application after its publication