def _getUniqueDev(self, devpath):
realpath = os.path.realpath(devpath)<EOL>mobj = re.match('<STR_LIT>', realpath)<EOL>if mobj:<EOL><INDENT>dev = mobj.group(<NUM_LIT:1>)<EOL>if dev in self._diskStats:<EOL><INDENT>return dev<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>(major, minor) = self._getDevMajorMinor(realpath)<EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT>return self._mapMajorMinor2dev.get((major, minor))<EOL><DEDENT><DEDENT>return None<EOL>
Return unique device for any block device path.

        @param devpath: Full path for block device.
        @return:        Unique device string without the /dev prefix.