/* Return logical sector number of a given Short Allocation Descriptor. */
UINT64 GetShortAdLsn(IN UDF_VOLUME_INFO *Volume, IN UDF_PARTITION_DESCRIPTOR *PartitionDesc, IN UDF_SHORT_ALLOCATION_DESCRIPTOR *ShortAd)
/* Return logical sector number of a given Short Allocation Descriptor. */
UINT64 GetShortAdLsn(IN UDF_VOLUME_INFO *Volume, IN UDF_PARTITION_DESCRIPTOR *PartitionDesc, IN UDF_SHORT_ALLOCATION_DESCRIPTOR *ShortAd)
{
  return (UINT64)PartitionDesc->PartitionStartingLocation -
         Volume->MainVdsStartLocation + ShortAd->ExtentPosition;
}