]> git.proxmox.com Git - proxmox-backup.git/commit
datastore: cleanup open and load config only once
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 19 Oct 2020 14:45:22 +0000 (16:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 20 Oct 2020 05:51:05 +0000 (07:51 +0200)
commitdf729017b461a394b4bba055764f7d0a2fe4fe6f
tree3cb461a72e89825c5e7309015dfef6106b3debdc
parent455f2ad22887186ae20b2807495ee99e8d0c1653
datastore: cleanup open and load config only once

Force consumers to use the lookup_datastore method instead of
potentially opening a datastore twice, and pass the config we have
already loaded into open_with_path, removing the need for open(1).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/backup/datastore.rs