发明名称 Method, apparatus and computer for data operation
摘要 A method, an apparatus and a computer for data operation are provided. The method includes: determining, when writing data to a sector of a storage device, whether the sector belongs to an old block for a restore point of the storage device. If so, the method further includes: allocating a new block and writing the data into the new block; creating a table including an address of the old block, an address of the new block and a first identifier, wherein the first identifier has first identification elements corresponding to the sector in the old block and in the new block, respectively, and wherein each of the first identification elements has a first state indicating to read data from the old block during data restoration in the sector and a second state indicating to read data from the new block during data restoration in the sector; and pointing the address of the old block in an address index table for the restore point to the created table. Otherwise, the method further includes: allocating a new block and writing the data into the new block; and modifying the address of the old block in an address index table for the restore point into the address of the new block. With the present invention, the time required for operation on the sector for the restore point of the storage device can be saved, and the performance of the computer can be improved.
申请公布号 US9535796(B2) 申请公布日期 2017.01.03
申请号 US201113581397 申请日期 2011.03.30
申请人 BEIJING LENOVO SOFTWARE LTD.;LENOVO (BEIJING) LIMITED 发明人 Tang Liang;Guo Changsheng;Liu Chunmei;Guo Yizun
分类号 G06F12/16;G06F11/14;G06F12/10;G06F3/06 主分类号 G06F12/16
代理机构 Scully Scott Murphy & Presser 代理人 Scully Scott Murphy & Presser
主权项 1. A method for data operation, comprising: determining, when writing data to a sector of a storage device, whether the sector belongs to an old block for a restore point of the storage device; and when it is determined that the sector belongs to the old block, allocating a new block and writing the data into the new block;creating a table including an address of the old block, an address of the new block and a first identifier having a plurality of first identification elements corresponding to the sectors in the old block and in the new block;setting each of the first identification elements to a first state or a second state, the first state indicating that the sector corresponding to the first identification element belongs to the old block and that data is read from the old block during data restoration and the second state indicating that the sector corresponding to the first identification element belongs to the new block and that data is read from the new block during data restoration; andpointing the address of the old block in an address index table for the restore point to the created table; orwhen it is determined that the sector does not belong to the old block,allocating a new block and writing the data into the new block; andmodifying the address of the old block in an address index table for the restore point into the address of the new block,wherein each restore point corresponds to an address index table which includes an L1 table, an L2 table and a block offset, wherein the L1 table stores an address of an L2 page table, the L2 table stores an address of the block, and the block offset is an offset sector number of a virtual sector number within the block.
地址 Beijing CN