From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 6911760427 for ; Wed, 7 Oct 2020 13:53:16 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 39B802E2AA for ; Wed, 7 Oct 2020 13:53:16 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 2A6972E259 for ; Wed, 7 Oct 2020 13:53:14 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id EA09045C2D for ; Wed, 7 Oct 2020 13:53:13 +0200 (CEST) From: Stefan Reiter To: pbs-devel@lists.proxmox.com Date: Wed, 7 Oct 2020 13:53:01 +0200 Message-Id: <20201007115308.6275-1-s.reiter@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.041 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [loopdev.rs, proxmox-backup-client.rs, format.rs, mount.rs] Subject: [pbs-devel] [PATCH 0/7] fuse_loop cleanups and named mappings X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2020 11:53:16 -0000 First three patches are independent cleanups/documentation. Patch 4 is the meat of the matter, switching over to using names generated from the mapped image to identify mappings. This allows easier unmap by having a specific tab-completion handler. Also allows listing all current mappings and where they are mapped to with the 'unmap' command without parameters. The last 3 patches are for better cleanup handling. With all three in place I could not come up with a realistic situation in which a user would have to rely on external tools to cancel a connection or clean up. proxmox-backup: Stefan Reiter (7): format: fix typo in function name fuse_loop: add documentation loopdev: add module doc mount/map: use names for map/unmap for easier use fuse_loop: add automatic cleanup of run files and dangling instances fuse_loop: wait for instance to close after killing fuse_loop: handle unmap on crashed instance src/bin/proxmox-backup-client.rs | 6 +- src/bin/proxmox_backup_client/mount.rs | 58 +++++- src/client/backup_writer.rs | 2 +- src/tools/format.rs | 4 +- src/tools/fuse_loop.rs | 257 ++++++++++++++++++++----- src/tools/loopdev.rs | 2 + 6 files changed, 268 insertions(+), 61 deletions(-) -- 2.20.1