(self, block)
return block.split('\n')[0].split(' : ')[0]
Parse for a md device name.

        >>> block = 'md0 : active raid1 sdd2[0] sdb2[2](S) sdc2[1]\n'
        >>>         '      100171776 blocks super 1.2 [2/2] [UU]\n'
        >>>         '      bitmap: 1/1 pages [4KB], 65536KB chunk\n\n'
        >>> print _parse_device_name(block)
        md0

        :return: parsed device name
        :rtype: string
Parse for a md device name.
Parse for a md device name .
def _parse_device_name(self, block):
        """
        Parse for a md device name.

        >>> block = 'md0 : active raid1 sdd2[0] sdb2[2](S) sdc2[1]\n'
        >>>         '      100171776 blocks super 1.2 [2/2] [UU]\n'
        >>>         '      bitmap: 1/1 pages [4KB], 65536KB chunk\n\n'
        >>> print _parse_device_name(block)
        md0

        :return: parsed device name
        :rtype: string
        """
        return block.split('\n')[0].split(' : ')[0]
def _parse_device_name ( self , block ) : return block . split ( '\n' ) [ 0 ] . split ( ' : ' ) [ 0 ]