发明名称 Initializing file data blocks
摘要 A method and system is provided for initializing files such as, for example and without limitation, pre-allocated files or raw device mapping (RDM) files, by delaying initializing file blocks. In accordance with one or more embodiments of the present invention, file blocks are associated with corresponding indicators to track un-initialized blocks.
申请公布号 US8745351(B2) 申请公布日期 2014.06.03
申请号 US201313797335 申请日期 2013.03.12
申请人 VMware, Inc. 发明人 Scales Daniel J.;Vaghani Satyam B.
分类号 G06F12/00 主分类号 G06F12/00
代理机构 代理人
主权项 1. A method of postponing initialization of blocks of a virtual disk for a virtual machine that is running in a host system, the virtual disk being stored as a virtual disk file in a storage system connected to the host system, the method comprising: creating a file descriptor for the virtual disk file, wherein the file descriptor comprises entries for data blocks that have been allocated to the virtual disk file, each entry including an indicator as to whether a corresponding data block has been previously initialized; receiving a virtual write operation for the virtual disk from the virtual machine; upon receiving the virtual write operation for the virtual disk, consulting indicators in the file descriptor for the virtual disk file for a data block corresponding to the virtual write operation to assess whether the data block should be initialized prior to executing the virtual write operation; writing data into portions of the data block that are specified by the write operation; initializing any uninitialized portions of the data block that precede the portions of the data block that are specified by the write operation; and upon completion of the write operation, maintaining a reference that indicates a position in the data block after which portions of the data block have not been initialized or written to.
地址 Palo Alto CA US