code: def mount(self, volume):
          
          os.environ['LVM_SUPPRESS_FD_WARNINGS'] = '1'
  
          # find free loopback device
          volume._find_loopback()
          time.sleep(0.2)
  
          try:
              # Scan for new lvm volumes
              result = _util.check_output_(["lvm", "pvscan"])
              for l in result.splitlines():
                  if volume.loopback in l or (volume.offset == 0 and volume.get_raw_path() in l):
                      for vg in re.findall(r'VG (\S+)', l):
                          volume.info['volume_group'] = vg
  
              if not volume.info.get('volume_group'):
                  logger.warning("Volume is not a volume group. (Searching for %s)", volume.loopback)
                  raise IncorrectFilesystemError()
  
              # Enable lvm volumes
              _util.check_call_(["lvm", "vgchange", "-a", "y", volume.info['volume_group']], stdout=subprocess.PIPE)
          except Exception:
              volume._free_loopback()
              raise
  
          volume.volumes.vstype = 'lvm'
          # fills it up.
          for _ in volume.volumes.detect_volumes('lvm'):
              pass
docs: Performs mount actions on a LVM. Scans for active volume groups from the loopback device, activates it
          and fills :attr:`volumes` with the logical volumes.
  
          :raises NoLoopbackAvailableError: when no loopback was available
          :raises IncorrectFilesystemError: when the volume is not a volume group