def get_mounted_filesystems():
 mounted = []
 lines = subprocess.check_output(['/sbin/mount']).splitlines()
 for line in lines:
  reg = RE_MOUNT.search(line)
  if (not reg):
   continue
  mounted.append(reg.groupdict())
 return mounted

def get_mounted_filesystems ( ) : mounted = [ ] lines = subprocess . check_output ( [ '/sbin/mount' ] ) . splitlines ( ) for line in lines : reg = RE_MOUNT . search ( line ) if ( not reg ) : continue mounted . append ( reg . groupdict ( ) ) return mounted
return a list of dict with info of mounted file systems each dict is composed of: - fs_spec - fs_file - fs_vfstype .