We were trying to see if there an API equivalent to get the following information via VDDK or any other library
We are currently getting the mapping via vmkfstools using a hidden option "-t0" as shown below in the output, but we wanted to use this information in a reliable manner via an API so that later on if the output changes we do not get affected.. Or if the hidden option gets removed in future.
[root@esxr520:/vmfs/volumes/56ec1423-3f0545b4-6c5b-001b215fe901/vm1] vmkfstools -t0 /vmfs/volumes/raidds520/vm13/vm13.vmdk
Mapping for file /vmfs/volumes/raidds520/vm13/vm13.vmdk (64424509440 bytes in size):
[ 0: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2157708312576 --> 2158245183488)]
[ 536870912: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2158245183488 --> 2158782054400)]
[ 1073741824: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2158782054400 --> 2159318925312)]
[ 1610612736: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2159318925312 --> 2159855796224)]
[ 2147483648: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2159855796224 --> 2160392667136)]
[ 2684354560: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2160392667136 --> 2160929538048)]
[ 3221225472: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2160929538048 --> 2161466408960)]
[ 3758096384: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2161466408960 --> 2162003279872)]
[ 4294967296: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2162003279872 --> 2162540150784)]
[ 4831838208: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2162540150784 --> 2163077021696)]
[ 5368709120: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2163077021696 --> 2163613892608)]
[ 5905580032: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2163613892608 --> 2164150763520)]
[ 6442450944: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2164150763520 --> 2164687634432)]
[ 6979321856: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2164687634432 --> 2165224505344)]
[ 7516192768: 536870912] --> [VMFS -- LVID:56ec1422-ea84df18-745c-001b215fe901/56ec1422-e4af496d-7fc1-001b215fe901/1:( 2165224505344 --> 2165761376256)]