'Remove partitions of the device from the file system namespace.'

def unmap_dev(self):

    if (not self.mapped):
        return
    LOG.debug('Unmap    dev    %s', self.device)
    if (self.partition and (not self.automapped)):
        utils.execute('kpartx', '-d', self.device, run_as_root=True)
    self.mapped = False
    self.automapped = False
