]> git.proxmox.com Git - proxmox-backup.git/commit
fuse_loop: add automatic cleanup of run files and dangling instances
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 7 Oct 2020 11:53:06 +0000 (13:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 8 Oct 2020 06:37:05 +0000 (08:37 +0200)
commit2deee0e01f426fabe91efbf712ffe533aff4382e
tree66376bea62415de44e38f01b2f4bd90432eb3df5
parent2d7d6e61be112fd1922734a9fde64c37c81df955
fuse_loop: add automatic cleanup of run files and dangling instances

A 'map' call will only clean up what it needs, that is only leftover
files or dangling instances of it's own name.

For a full cleanup the user can call 'unmap' without any arguments.

The 'cleanup on error' behaviour of map_loop is removed. It is no longer
needed (since the next call will clean up anyway), and in fact fixes a
bug where trying to map an image twice would result in an error, but
also cleanup the .pid file of the running instance, causing 'unmap' to
fail afterwards.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/bin/proxmox_backup_client/mount.rs
src/tools/fuse_loop.rs