def get_cgroup_mountpoint(controller):
 if (controller not in get_all_controllers()):
  raise error.TestError(("Doesn't support controller <%s>" % controller))
 f_cgcon = open('/proc/mounts', 'rU')
 cgconf_txt = f_cgcon.read()
 f_cgcon.close()
 mntpt = re.findall(('\\s(\\S*cgroup/\\S*,*%s,*\\S*)' % controller), cgconf_txt)
 return mntpt[0]

def get_cgroup_mountpoint ( controller ) : if ( controller not in get_all_controllers ( ) ) : raise error . TestError ( ( "Doesn't support controller <%s>" % controller ) ) f_cgcon = open ( '/proc/mounts' , 'rU' ) cgconf_txt = f_cgcon . read ( ) f_cgcon . close ( ) mntpt = re . findall ( ( '\\s(\\S*cgroup/\\S*,*%s,*\\S*)' % controller ) , cgconf_txt ) return mntpt [ 0 ]
get desired controllers mountpoint @controller: desired controller :return: controllers mountpoint .