parameters: (image_path)
docstring: Check to see if the qemu-img info command reports a backing file
      :param image_path: full path to an image to check
      :return: boolean
docstring_summary: Check to see if the qemu-img info command reports a backing file
      :param image_path: full path to an image to check
      :return: boolean
docstring_tokens: Check to see if the qemu - img info command reports a backing file : param image_path : full path to an image to check : return : boolean
function: def is_image_thin_provisioned(image_path):
      """
      Check to see if the qemu-img info command reports a backing file
      :param image_path: full path to an image to check
      :return: boolean
      """
      if configuration.deployment_backend == "kvm":
          rv = os.system("qemu-img info " + image_path + " | grep backing")
          if rv == 0:
              logger.debug("Found a backing file!")
              return True
          else:
              return False
      else:
          # non kvm based deployments (i.e. virtualbox) will never have a backing file
          return False
function_tokens: def is_image_thin_provisioned ( image_path ) : if configuration . deployment_backend == "kvm" : rv = os . system ( "qemu-img info " + image_path + " | grep backing" ) if rv == 0 : logger . debug ( "Found a backing file!" ) return True else : return False else : # non kvm based deployments (i.e. virtualbox) will never have a backing file return False