def logical_volume_size(path):
 (out, _err) = execute('lvs', '-o', 'lv_size', '--noheadings', '--units', 'b', '--nosuffix', path, run_as_root=True)
 return int(out)

def logical_volume_size ( path ) : ( out , _err ) = execute ( 'lvs' , '-o' , 'lv_size' , '--noheadings' , '--units' , 'b' , '--nosuffix' , path , run_as_root = True ) return int ( out )
get logical volume size in bytes .