Method and device for reclaiming disk image space
A technology of disk mirroring and recycling device, which is applied in the computer field and can solve the problems of extra space, interruption and time consumption of target disk mirroring
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] Embodiments of the present invention provide a method for reclaiming disk image space, which is applied to the Windows standard file system NTFS file system, such as figure 2 As shown, the method includes:
[0064] S101. The device for recovering disk image space searches for a deleted file and a first sector corresponding to the deleted file in a preset master file table MFT.
[0065] Wherein, the first sector is the sector occupied by the deleted file in the disk image and does not save valid data.
[0066] NTFS contains a file called Master File Table (MFT, Master File Table). The MFT is an index file that maps all objects stored on disk. In MFT, each file (including MFT itself) on the NTFS disk has at least one mapping entry. Items in the MFT include size, time and timestamp, security attributes, and data location.
[0067] Each side of the disk is divided into many tracks, and each track is divided into equal parts in units of 512 bytes, which are sectors.
...
Embodiment 2
[0084] Embodiments of the present invention provide a method for reclaiming disk image space, which is applied to the Windows standard file system NTFS file system, such as image 3 As shown, the method includes:
[0085] S201. If the virtual machine is online, the device for recovering disk image space takes an online snapshot of the disk image, so that subsequent write requests are written into the snapshot.
[0086] When the virtual machine is online and the space occupied by deleted files in the disk image is marked and no valid data is saved, the virtual machine is still working and data will still be written. In order to ensure the correctness of the written data when marking the disk image sector content, the disk image space recovery device takes an online snapshot of the disk image, and the snapshot takes over the write I / O of the virtual machine, and then the written data is written into the disk image snapshot In this way, the virtual machine service is guaranteed ...
Embodiment 3
[0151] The present invention provides a disk image space recovery device, which is applied to the Windows standard file system NTFS file system, such as Figure 4 shown, including:
[0152] The search unit 10 is configured to search the deleted file and the first sector corresponding to the deleted file in the preset master file table MFT, the first sector is occupied by the deleted file in the disk image sectors that have no valid data stored;
[0153] A marking unit 11, configured to set the content of the first sector as the first identifier;
[0154] The processing unit 12 is configured to release the sector whose content is the first identifier according to a preset rule.
[0155] Further, the processing unit 12 is specifically configured to acquire the content of the disk image and the number of sectors of the disk image, set the file offset of the disk image, and set the file offset of the disk image to Find the sector where the content is the first identification, a...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com