def __init__(self):
self._fstypeDict = {}<EOL>self._fs2devDict = {}<EOL>try:<EOL><INDENT>fp = open(mountsFile, '<STR_LIT:r>')<EOL>data = fp.read()<EOL>fp.close()<EOL><DEDENT>except:<EOL><INDENT>raise IOError('<STR_LIT>' % mountsFile)<EOL><DEDENT>for line in data.splitlines():<EOL><INDENT>cols = line.split()<EOL>self._fstypeDict[cols[<NUM_LIT:1>]] = cols[<NUM_LIT:2>]<EOL>self._fs2devDict[cols[<NUM_LIT:1>]] = cols[<NUM_LIT:0>]<EOL><DEDENT>
Read /proc/mounts to get filesystem types.