#NEWLINE# def _extend_volume( self , pack , volume , volume_prop ) : #NEWLINE# #INDENT# volume_extents = self . _get_volume_extents_to_resize ( pack , volume_extent . id ) #NEWLINE# input_disks = [ ] #NEWLINE# for ( volume_extent , volume_extend_size ) in volume_extents : #NEWLINE# #INDENT# input_disk = vds . VDS_INPUT_DISK ( ) #NEWLINE# input_disks . append ( input_disk ) #NEWLINE# input_disk . diskId = volume_extent . diskId #NEWLINE# input_disk . memberIdx = volume_extent . memberIdx #NEWLINE# input_disk . plexId = volume_extent . plexId #NEWLINE# input_disk . ullSize = volume_extend_size #NEWLINE# #UNINDENT# if input_disks : #NEWLINE# #INDENT# extend_size = sum ( [ i . ullSize for i in input_disks ] ) #NEWLINE# volume_name = ctypes . wstring_at ( volume_prop . pwszName ) #NEWLINE# LOG . info ( ( 'Extending volume "%s" with %s bytes' % ( volume_name , extend_size ) ) ) #NEWLINE# input_disks_ar = ( vds . VDS_INPUT_DISK * len ( input_disks ) ) ( * input_disks ) #NEWLINE# async = volume . Extend ( input_disks_ar , len ( input_disks ) ) #NEWLINE# async . Wait ( )