def list_logical_volumes(vg):
 (out, err) = execute('lvs', '--noheadings', '-o', 'lv_name', vg, run_as_root=True)
 return [line.strip() for line in out.splitlines()]

def list_logical_volumes ( vg ) : ( out , err ) = execute ( 'lvs' , '--noheadings' , '-o' , 'lv_name' , vg , run_as_root = True ) return [ line . strip ( ) for line in out . splitlines ( ) ]
list logical volumes paths for given volume group .