def logical_volume_info(path):
 (out, err) = execute('lvs', '-o', 'vg_all,lv_all', '--separator', '|', path, run_as_root=True)
 info = [line.split('|') for line in out.splitlines()]
 if (len(info) != 2):
  raise RuntimeError((_('Path %s must be LVM logical volume') % path))
 return dict(zip(*info))

def logical_volume_info ( path ) : ( out , err ) = execute ( 'lvs' , '-o' , 'vg_all,lv_all' , '--separator' , '|' , path , run_as_root = True ) info = [ line . split ( '|' ) for line in out . splitlines ( ) ] if ( len ( info ) != 2 ) : raise RuntimeError ( ( _ ( 'Path %s must be LVM logical volume' ) % path ) ) return dict ( zip ( * info ) )
get logical volume info .