VMware {code} Community
flatino
Contributor
Contributor
Jump to solution

is there a fast way to detect emtpy sectors ?

Hello,

is there a fast and easy way to detect if a sector of a VMDK file is not used ?

I mean:

instead of calling VixDiskLib_Read and check if all the bytes of the sector are all zeros, is there a fast way to discover if a sector is not used ?

When reading big images, I would find a fast way to skip unsed sectors....

Thanks,

Francesco

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

We will have a way to do this. Watch this space for announcements.

Thanks

Sudarsan

View solution in original post

0 Kudos
4 Replies
admin
Immortal
Immortal
Jump to solution

There is no such direct way using current version of vixdisklib.

-Sudarsan

flatino
Contributor
Contributor
Jump to solution

Thanks a lot for your fast answer !

Two last questions:

1- Are there any plan to provide such a function ?

2- Or if is there an "indirect" way to check and fastly detect unused sectors ?

0 Kudos
admin
Immortal
Immortal
Jump to solution

We will have a way to do this. Watch this space for announcements.

Thanks

Sudarsan

0 Kudos
flatino
Contributor
Contributor
Jump to solution

That is great: thanks a lot !

Francesco

0 Kudos