def export_disks(<EOL>self,<EOL>standalone,<EOL>dst_dir,<EOL>compress,<EOL>collect_only=False,<EOL>with_threads=True,<EOL>*args,<EOL>**kwargs<EOL>):
vm_export_mgr = export.VMExportManager(<EOL>disks=self.vm.disks,<EOL>dst=dst_dir,<EOL>compress=compress,<EOL>with_threads=with_threads,<EOL>standalone=standalone,<EOL>*args,<EOL>**kwargs<EOL>)<EOL>if collect_only:<EOL><INDENT>return {self.vm.name(): vm_export_mgr.collect_paths()}<EOL><DEDENT>else:<EOL><INDENT>return {self.vm.name(): vm_export_mgr.export()}<EOL><DEDENT>
Export all the disks of self.

Args:
    standalone (bool): if true, merge the base images and the layered
        image into a new file (Supported only in qcow2 format)
    dst_dir (str): dir to place the exported disks
    compress(bool): if true, compress each disk.
    collect_only(bool): If true, return only a dict which maps between
        the name of the vm to the paths of the disks that will be
        exported (don't export anything).
    with_threads(bool): If True, export disks in parallel

Returns:
    (dict): which maps between the name of the vm to the paths of
    the disks that will be exported