发明名称 Guest file system introspection and defragmentable virtual disk format for space efficiency
摘要 A virtualized computer system employs a virtual disk with a space efficient (SE) format to store data for virtual machines running therein. The SE format allows for defragmentation at a fine-grained level, where unused, stale, and zero blocks are moved to the end of the virtual disk so that the virtual disk may be truncated and space reclaimed by the underlying storage system as part of a special defragmentation process.
申请公布号 US8874859(B2) 申请公布日期 2014.10.28
申请号 US201012976123 申请日期 2010.12.22
申请人 VMware, Inc. 发明人 Vilayannur Murali;Yadappanavar Krishna;Shaikh Faraz;Rajashekhar Manjunath;Vaghani Satyam B.
分类号 G06F13/00 主分类号 G06F13/00
代理机构 代理人
主权项 1. A method for truncating a file stored in a virtual machine file system supporting execution of virtual machines, wherein the file represents a virtual disk of a virtual machine and the virtual machine includes a guest file system that stores data on the virtual disk, the method comprising: identifying a first data block of the virtual disk that is located closer to an end of the virtual disk than a second data block of the virtual disk; copying the data of the first data block into a location of the virtual disk that stores the data of the second data block; updating an entry in a first data structure so that the entry, which was previously mapped to the first data block, is now mapped to the second data block; updating an entry in a second data structure that maintains usage indicators for data blocks in the virtual disk so that a usage indicator for the second data block is changed from unused to used; and removing a reference to a virtual machine file system data block in a file descriptor for the file representing the virtual disk that is maintained by the virtual machine file system, thereby decreasing a size of the virtual disk, when none of multiple data blocks of the virtual disk corresponding to and smaller in size than the virtual machine file system data block are indicated as being used by the second data structure.
地址 Palo Alto CA US