Re: [Qemu-devel] [PATCH v2 1/7] vmdk: Refactor and introduce new helper functions

2017-03-30 Thread Fam Zheng
On Sat, 03/25 16:48, Ashijeet Acharya wrote: > Move the existing vmdk_find_offset_in_cluster() function to the top of > the driver. Also, introduce a new helper function size_to_clusters() > which returns the number of clusters for a given size in bytes. Here, > we leave the last cluster as we need

[Qemu-devel] [PATCH v2 1/7] vmdk: Refactor and introduce new helper functions

2017-03-25 Thread Ashijeet Acharya
Move the existing vmdk_find_offset_in_cluster() function to the top of the driver. Also, introduce a new helper function size_to_clusters() which returns the number of clusters for a given size in bytes. Here, we leave the last cluster as we need to perform COW for that one. Signed-off-by: Ashijee