]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
4 years agostart ACL api
Dietmar Maurer [Mon, 13 Apr 2020 09:09:44 +0000 (11:09 +0200)]
start ACL api

4 years agoacl: use BTreeMap and BTreeSet to avoid sort()
Dietmar Maurer [Sun, 12 Apr 2020 15:13:53 +0000 (17:13 +0200)]
acl: use BTreeMap and BTreeSet to avoid sort()

4 years agoacl: implement roles(), add regression tests.
Dietmar Maurer [Sun, 12 Apr 2020 11:06:50 +0000 (13:06 +0200)]
acl: implement roles(), add regression tests.

4 years agoadd acl config
Dietmar Maurer [Sat, 11 Apr 2020 10:24:26 +0000 (12:24 +0200)]
add acl config

4 years agogui: improve login view (use realms)
Dietmar Maurer [Thu, 9 Apr 2020 11:37:14 +0000 (13:37 +0200)]
gui: improve login view (use realms)

4 years agoPASSWORD_SCHEMA: set max_length to 1024 (for tickets)
Dietmar Maurer [Thu, 9 Apr 2020 11:35:58 +0000 (13:35 +0200)]
PASSWORD_SCHEMA: set max_length to 1024 (for tickets)

4 years agoapi: add default property to domain list
Dietmar Maurer [Thu, 9 Apr 2020 11:35:08 +0000 (13:35 +0200)]
api: add default property to domain list

4 years agoapi: correctly sort access subdirmap
Dietmar Maurer [Thu, 9 Apr 2020 11:34:07 +0000 (13:34 +0200)]
api: correctly sort access subdirmap

4 years agoapi: add list_domains
Dietmar Maurer [Thu, 9 Apr 2020 09:36:45 +0000 (11:36 +0200)]
api: add list_domains

4 years agoapi: move config/user to access/users, implement change_password
Dietmar Maurer [Thu, 9 Apr 2020 08:19:38 +0000 (10:19 +0200)]
api: move config/user to access/users, implement change_password

To make it similar to the pve api

4 years agoimplement auth framework
Dietmar Maurer [Wed, 8 Apr 2020 09:57:14 +0000 (11:57 +0200)]
implement auth framework

4 years agoadd user configiguration
Dietmar Maurer [Mon, 6 Apr 2020 10:09:27 +0000 (12:09 +0200)]
add user configiguration

4 years agogc: log pending removals
Dietmar Maurer [Mon, 6 Apr 2020 07:50:40 +0000 (09:50 +0200)]
gc: log pending removals

4 years agogui: preview prune selection
Dietmar Maurer [Wed, 1 Apr 2020 12:14:44 +0000 (14:14 +0200)]
gui: preview prune selection

4 years agoprune api: return a usable result (we run synchronous anyways)
Dietmar Maurer [Wed, 1 Apr 2020 10:24:28 +0000 (12:24 +0200)]
prune api: return a usable result (we run synchronous anyways)

4 years agofix 'keep-monthly' field name
Dominik Csapak [Tue, 31 Mar 2020 06:42:05 +0000 (08:42 +0200)]
fix 'keep-monthly' field name

else the backend complains about a non-existant parameter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agogui - DataStoreContent: avoid useless icons, display file path
Dietmar Maurer [Thu, 26 Mar 2020 17:01:04 +0000 (18:01 +0100)]
gui - DataStoreContent: avoid useless icons, display file path

4 years agogui - DataStoreContent: move control code into controller (cleanup)
Dietmar Maurer [Thu, 26 Mar 2020 16:23:51 +0000 (17:23 +0100)]
gui - DataStoreContent: move control code into controller (cleanup)

4 years agogui: add prune dialog
Dietmar Maurer [Thu, 26 Mar 2020 12:23:28 +0000 (13:23 +0100)]
gui: add prune dialog

4 years agosrc/server/rest.rs: use correct formatter
Dietmar Maurer [Thu, 26 Mar 2020 11:54:20 +0000 (12:54 +0100)]
src/server/rest.rs: use correct formatter

4 years agogui: cleanup DataStoreContent.js
Dietmar Maurer [Thu, 26 Mar 2020 10:17:15 +0000 (11:17 +0100)]
gui: cleanup DataStoreContent.js

4 years agogui: display DataStoreConfig above DataStoreContent
Dietmar Maurer [Thu, 26 Mar 2020 07:38:35 +0000 (08:38 +0100)]
gui: display DataStoreConfig above DataStoreContent

4 years agogui: use a tree panel for DataStoreContent
Dietmar Maurer [Wed, 25 Mar 2020 14:17:28 +0000 (15:17 +0100)]
gui: use a tree panel for DataStoreContent

4 years agodepend on proxmox 0.1.20
Dietmar Maurer [Wed, 25 Mar 2020 14:17:16 +0000 (15:17 +0100)]
depend on proxmox 0.1.20

4 years agobump proxmox dependency to 0.1.19
Wolfgang Bumiller [Thu, 19 Mar 2020 09:05:08 +0000 (10:05 +0100)]
bump proxmox dependency to 0.1.19

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadd 'rsync' to build_depends
Dominik Csapak [Wed, 18 Mar 2020 15:23:12 +0000 (16:23 +0100)]
add 'rsync' to build_depends

a 'make deb' fails without rsync installed (a pxar test needs it)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agorewrite future select in upgrade_to_backup_protocol using select macro
Dominik Csapak [Wed, 18 Mar 2020 10:32:51 +0000 (11:32 +0100)]
rewrite future select in upgrade_to_backup_protocol using select macro

and handle all ok/err cases with at least logging

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agofix typo
Dominik Csapak [Tue, 17 Mar 2020 14:54:02 +0000 (15:54 +0100)]
fix typo

s/Nuber/Number/
s/backups/Backups/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
4 years agobuildsys: add missing dependency
Wolfgang Bumiller [Mon, 16 Mar 2020 13:54:23 +0000 (14:54 +0100)]
buildsys: add missing dependency

required for the docs built when building the deb packages

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoMakefile - upload: upload to correct product repos
Dietmar Maurer [Tue, 3 Mar 2020 09:56:07 +0000 (10:56 +0100)]
Makefile - upload: upload to correct product repos

4 years agobump version to 0.1.3-1 v0.1.3
Dietmar Maurer [Tue, 3 Mar 2020 06:25:57 +0000 (07:25 +0100)]
bump version to 0.1.3-1

4 years agoTODO.rst: add Chores section
Dietmar Maurer [Mon, 2 Mar 2020 12:40:18 +0000 (13:40 +0100)]
TODO.rst: add Chores section

4 years agodelete unused src/storage/config.rs
Dietmar Maurer [Mon, 2 Mar 2020 12:31:38 +0000 (13:31 +0100)]
delete unused src/storage/config.rs

4 years agouse SectionConfig from proxmox 0.1.18-1
Dietmar Maurer [Mon, 2 Mar 2020 11:52:11 +0000 (12:52 +0100)]
use SectionConfig from proxmox 0.1.18-1

4 years agodocs/administration-guide.rst: add small section to explain output-format
Dietmar Maurer [Fri, 28 Feb 2020 11:25:09 +0000 (12:25 +0100)]
docs/administration-guide.rst: add small section to explain output-format

4 years agodocs/epilig.rst: remove fuse to avoid RST warnings
Dietmar Maurer [Fri, 28 Feb 2020 10:55:25 +0000 (11:55 +0100)]
docs/epilig.rst: remove fuse to avoid RST warnings

4 years agoTODO.rst: update
Dietmar Maurer [Fri, 28 Feb 2020 10:35:27 +0000 (11:35 +0100)]
TODO.rst: update

4 years agoremove unused qemu-io code
Dietmar Maurer [Fri, 28 Feb 2020 10:30:56 +0000 (11:30 +0100)]
remove unused qemu-io code

4 years agodepend on proxmox 0.1.17
Dietmar Maurer [Fri, 28 Feb 2020 09:16:19 +0000 (10:16 +0100)]
depend on proxmox 0.1.17

4 years agosrc/bin/proxmox-backup-client.rs - list_groups: render full snapshot path for last...
Dietmar Maurer [Fri, 28 Feb 2020 08:09:22 +0000 (09:09 +0100)]
src/bin/proxmox-backup-client.rs - list_groups: render full snapshot path for last-backup column

4 years agosrc/bin/proxmox-backup-manager.rs: avoid compiler warning
Dietmar Maurer [Fri, 28 Feb 2020 07:52:12 +0000 (08:52 +0100)]
src/bin/proxmox-backup-manager.rs: avoid compiler warning

4 years agocatalog: shell: Use the new logic including resolving symlinks for catalog
Christian Ebner [Thu, 27 Feb 2020 16:12:59 +0000 (17:12 +0100)]
catalog: shell: Use the new logic including resolving symlinks for catalog

and remove the old unused code.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agocatalog: shell: introduce new CatalogPathStack to navigate in catalog shell.
Christian Ebner [Thu, 27 Feb 2020 16:12:58 +0000 (17:12 +0100)]
catalog: shell: introduce new CatalogPathStack to navigate in catalog shell.

This is basically a rewrite of the current logic for navigating the catalog,
but in addition allows to follow symlinks.
Following symlinks introduces the issue that generation of canonical paths
(needed in the actual pxar archive) is more complex, as symlinks have to be
resolved and loops avoided.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agocatalog: add missing function documentation.
Christian Ebner [Thu, 27 Feb 2020 16:12:57 +0000 (17:12 +0100)]
catalog: add missing function documentation.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agocatalog: introduce is_symlink() to check if DirEntry is a symlink.
Christian Ebner [Thu, 27 Feb 2020 16:12:56 +0000 (17:12 +0100)]
catalog: introduce is_symlink() to check if DirEntry is a symlink.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agocatalog: derive PartEq for equality checks of two DirEntry's.
Christian Ebner [Thu, 27 Feb 2020 16:12:55 +0000 (17:12 +0100)]
catalog: derive PartEq for equality checks of two DirEntry's.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agosrc/backup/dynamic_index.rs: Add LruCache for chunks.
Christian Ebner [Thu, 27 Feb 2020 14:56:28 +0000 (15:56 +0100)]
src/backup/dynamic_index.rs: Add LruCache for chunks.

In order to improve non-sequential reads of chunks as e.g. in FUSE.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agocatalog: shell: Introduce clear-selected command.
Christian Ebner [Thu, 27 Feb 2020 13:33:33 +0000 (14:33 +0100)]
catalog: shell: Introduce clear-selected command.

'clear-selected' allows to clear all the match patterns from the list of
patterns for a subsequent restore.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agocatalog: shell: Improve list-selected command.
Christian Ebner [Thu, 27 Feb 2020 13:22:04 +0000 (14:22 +0100)]
catalog: shell: Improve list-selected command.

'list-selected' now shows the filenames matching the patterns for a restore
instead of the patterns themselfs.
The patterns can be displayed by passing the '--pattern' flag.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agopxar::decoder: Return the correct symlink target size.
Christian Ebner [Thu, 27 Feb 2020 13:09:56 +0000 (14:09 +0100)]
pxar::decoder: Return the correct symlink target size.

This eliminates also repeated calls to readlink in fuse, which occur when the
preallocated buffer to store the symlink target path is to small.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agoproxmox-backup-client: expose exclude match patterns to cli.
Christian Ebner [Thu, 27 Feb 2020 12:13:12 +0000 (13:13 +0100)]
proxmox-backup-client: expose exclude match patterns to cli.

Allows to pass exclude match patterns to the 'backup' command.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agosrc/bin/proxmox-backup-manager.rs: cleanup output handling
Dietmar Maurer [Fri, 28 Feb 2020 06:42:36 +0000 (07:42 +0100)]
src/bin/proxmox-backup-manager.rs: cleanup output handling

4 years agosrc/tools/format.rs: move output rendering code to this new file
Dietmar Maurer [Fri, 28 Feb 2020 06:30:35 +0000 (07:30 +0100)]
src/tools/format.rs: move output rendering code to this new file

4 years agosrc/bin/proxmox-backup-client.rs - list_groups: use format_and_print_result_full()
Dietmar Maurer [Thu, 27 Feb 2020 12:31:23 +0000 (13:31 +0100)]
src/bin/proxmox-backup-client.rs - list_groups: use format_and_print_result_full()

Depend on proxmox 0.1.16-1

4 years agosrc/bin/proxmox-backup-client.rs: use new output formath helpers from proxmox 0.15.1-1
Dietmar Maurer [Thu, 27 Feb 2020 11:41:15 +0000 (12:41 +0100)]
src/bin/proxmox-backup-client.rs: use new output formath helpers from proxmox 0.15.1-1

4 years agosrc/bin/proxmox-backup-client.rs - status: improve alignment
Dietmar Maurer [Thu, 27 Feb 2020 10:38:09 +0000 (11:38 +0100)]
src/bin/proxmox-backup-client.rs - status: improve alignment

4 years agosrc/bin/proxmox-backup-client.rs - status: do not print header
Dietmar Maurer [Thu, 27 Feb 2020 10:31:05 +0000 (11:31 +0100)]
src/bin/proxmox-backup-client.rs - status: do not print header

4 years agosrc/bin/proxmox-backup-client.rs - list_snapshots: use format_and_print_result_full()
Dietmar Maurer [Thu, 27 Feb 2020 10:27:44 +0000 (11:27 +0100)]
src/bin/proxmox-backup-client.rs - list_snapshots: use format_and_print_result_full()

Depend on proxmox v0.1.14.

4 years agotools::lru_cache: Improve access() and insert() by using HashMap::entry().
Christian Ebner [Tue, 25 Feb 2020 17:45:28 +0000 (18:45 +0100)]
tools::lru_cache: Improve access() and insert() by using HashMap::entry().

entry() allows to lookup the position where and entry belongs and update/insert
it in the HashMap more efficiently than get_mut() and insert().
Details: https://gankra.github.io/blah/hashbrown-insert/

In addition, use the struct LinkedList and remove the outdated code.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agotools::lru_cache: Separate LinkedList part of LruCache into own struct.
Christian Ebner [Tue, 25 Feb 2020 17:45:27 +0000 (18:45 +0100)]
tools::lru_cache: Separate LinkedList part of LruCache into own struct.

In order to keep the separation more aparent and avoid mut borrow conflics.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agotools::lru_cache: Make key generic.
Christian Ebner [Tue, 25 Feb 2020 17:45:26 +0000 (18:45 +0100)]
tools::lru_cache: Make key generic.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agocatalog: shell: Improve output of stat command.
Christian Ebner [Wed, 26 Feb 2020 16:14:19 +0000 (17:14 +0100)]
catalog: shell: Improve output of stat command.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agoAdd zsh completion scripts
Christian Ebner [Tue, 25 Feb 2020 12:56:39 +0000 (13:56 +0100)]
Add zsh completion scripts

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agosrc/bin/proxmox-backup-client.rs - list_snapshot_files: use format_and_print_result_f...
Dietmar Maurer [Wed, 26 Feb 2020 12:49:47 +0000 (13:49 +0100)]
src/bin/proxmox-backup-client.rs - list_snapshot_files: use format_and_print_result_full()

4 years agosrc/bin/proxmox-backup-client.rs - status: use format_and_print_result_full
Dietmar Maurer [Wed, 26 Feb 2020 12:29:00 +0000 (13:29 +0100)]
src/bin/proxmox-backup-client.rs - status: use format_and_print_result_full

4 years agosrc/bin/proxmox-backup-manager.rs: use crate::tools::runtime::block_on()
Dietmar Maurer [Wed, 26 Feb 2020 10:37:38 +0000 (11:37 +0100)]
src/bin/proxmox-backup-manager.rs: use crate::tools::runtime::block_on()

4 years agosrc/tools/runtime.rs: call OPENSSL_thread_stop to avoid race with openssl cleanup...
Dietmar Maurer [Wed, 26 Feb 2020 09:38:55 +0000 (10:38 +0100)]
src/tools/runtime.rs: call OPENSSL_thread_stop to avoid race with openssl cleanup handlers

4 years agosrc/client/backup_writer.rs: also print archive size
Dietmar Maurer [Tue, 25 Feb 2020 13:11:36 +0000 (14:11 +0100)]
src/client/backup_writer.rs: also print archive size

4 years agocleanup unused module
Wolfgang Bumiller [Tue, 25 Feb 2020 10:35:35 +0000 (11:35 +0100)]
cleanup unused module

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agodocs: add documentation for pxar
Christian Ebner [Thu, 20 Feb 2020 17:55:29 +0000 (18:55 +0100)]
docs: add documentation for pxar

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agopxar: Change text of warning for files matched by exclude patterns.
Christian Ebner [Thu, 20 Feb 2020 13:29:13 +0000 (14:29 +0100)]
pxar: Change text of warning for files matched by exclude patterns.

In addition to the .pxarexclude files, glob match patterns can be passed to pxar
also via cli parameters.
Therefore the warning is rephrased to be more ambiguous.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agosrc/client/backup_writer.rs: prefix upload stats with archive name
Dietmar Maurer [Mon, 24 Feb 2020 12:24:46 +0000 (13:24 +0100)]
src/client/backup_writer.rs: prefix upload stats with archive name

4 years agosrc/client/backup_writer.rs: implement verbose options
Dietmar Maurer [Mon, 24 Feb 2020 11:48:40 +0000 (12:48 +0100)]
src/client/backup_writer.rs: implement verbose options

4 years agosrc/client/backup_writer.rs: reduce verbosity
Dietmar Maurer [Mon, 24 Feb 2020 10:33:00 +0000 (11:33 +0100)]
src/client/backup_writer.rs: reduce verbosity

4 years agodocs: fix typo
Christian Ebner [Wed, 19 Feb 2020 15:36:59 +0000 (16:36 +0100)]
docs: fix typo

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agodocs: Add documentation for .pxarexclude files
Christian Ebner [Wed, 19 Feb 2020 15:32:39 +0000 (16:32 +0100)]
docs: Add documentation for .pxarexclude files

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agosrc/backup/backup_info.rs: fix SNAPSHOT_PATH_REGEX and GROUP_PATH_REGEX
Dietmar Maurer [Tue, 18 Feb 2020 12:16:35 +0000 (13:16 +0100)]
src/backup/backup_info.rs: fix SNAPSHOT_PATH_REGEX and GROUP_PATH_REGEX

4 years agoruntime: fix blocking strategy:
Wolfgang Bumiller [Mon, 17 Feb 2020 08:48:22 +0000 (09:48 +0100)]
runtime: fix blocking strategy:

- do not "double"-block_in_place() (it may not be nested)
- do not call block_in_place() in non-worker threads

is_in_tokio() isn't sufficient, we need to actually know
that we're in a worker-thread, so we do this by remembering
that we're blocking.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoruntime: remove IN_TOKIO thread local variable
Wolfgang Bumiller [Thu, 13 Feb 2020 07:56:37 +0000 (08:56 +0100)]
runtime: remove IN_TOKIO thread local variable

tokio now has Handle::try_current() allowing us to
generally check for a tokio runtime even if spawned by
someone else

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agoadministration-guide.rst: documnet new PBS_FINGERPRINT env var
Dietmar Maurer [Tue, 11 Feb 2020 11:06:02 +0000 (12:06 +0100)]
administration-guide.rst: documnet new PBS_FINGERPRINT env var

4 years agosrc/client/http_client.rs: do not store fingerprints passed via options in cache
Dietmar Maurer [Tue, 11 Feb 2020 10:54:43 +0000 (11:54 +0100)]
src/client/http_client.rs: do not store fingerprints passed via options in cache

4 years agosrc/client/http_client.rs: always convert fingerprint to lowercase
Dietmar Maurer [Tue, 11 Feb 2020 10:37:24 +0000 (11:37 +0100)]
src/client/http_client.rs: always convert fingerprint to lowercase

4 years agosrc/client/http_client.rs: remove useless password_env
Dietmar Maurer [Tue, 11 Feb 2020 10:10:13 +0000 (11:10 +0100)]
src/client/http_client.rs: remove useless password_env

4 years agosrc/bin/proxmox-backup-client.rs: allows to pass fingerprint via env vars
Dietmar Maurer [Tue, 11 Feb 2020 10:01:57 +0000 (11:01 +0100)]
src/bin/proxmox-backup-client.rs: allows to pass fingerprint via env vars

4 years agos/pbsbanner/proxmox-backup-banner/ + move to /usr/lib
Thomas Lamprecht [Mon, 10 Feb 2020 13:43:26 +0000 (14:43 +0100)]
s/pbsbanner/proxmox-backup-banner/ + move to /usr/lib

We want to avoid pbs if possible and also avoid placing internal
binaries, not intended for human direct use, in /bin or /sbin paths.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agopbsbanner: use match and also return error
Thomas Lamprecht [Fri, 7 Feb 2020 17:30:41 +0000 (18:30 +0100)]
pbsbanner: use match and also return error

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd login banner service
Thomas Lamprecht [Thu, 6 Feb 2020 21:08:07 +0000 (22:08 +0100)]
add login banner service

Modeled after the one from PVE, but using rust instead of perl for
resolving the nodename and writing to /etc/issue

Behavior differs a bit. We write all non-loopback addresses to this
file, as the gui accepts connections from them all, so limiting it to
the first one is not really sensible.
Further an error to resolve, or only getting loopback addresses won't
write out an empty /etc/issue file, but a note about the error at the
place where the address would be displayed.

Named it "pbsbanner", not "proxmox-backup-banner" as it's rather an
internal tool anyway and mirrors pvebanner, pmgbanner

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocatalog: shell: Allow two or more successive slashes in path.
Christian Ebner [Tue, 4 Feb 2020 12:37:03 +0000 (13:37 +0100)]
catalog: shell: Allow two or more successive slashes in path.

Two or more successive slashes should be allowed and treated as a single slash.
We also do not treat two successive slashes at the beginning of a path any
different.

Details are found here:
https://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap04.html#tag_04_11

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agopxar::fuse: cleanup: Remove unused code.
Christian Ebner [Mon, 3 Feb 2020 12:34:50 +0000 (13:34 +0100)]
pxar::fuse: cleanup: Remove unused code.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agopxar::fuse: Refactor lookup in order to cache accessed entries.
Christian Ebner [Mon, 3 Feb 2020 12:34:49 +0000 (13:34 +0100)]
pxar::fuse: Refactor lookup in order to cache accessed entries.

Context::find_goodbye_entry() is removed and incorporated into the lookup
callback in order to take advantage of the entry_cache and since it is only used
inside this callback.
All entries read on lookup are cached.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agopxar: Improve read performance for fuse.
Christian Ebner [Mon, 3 Feb 2020 10:21:28 +0000 (11:21 +0100)]
pxar: Improve read performance for fuse.

By storing the payload start offset in the `DirectoryEntry` and passing this
information to `Decoder::read()`, the payload can be read directly and a repeated
re-reading of the entry information is avoided.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
4 years agosrc/bin/proxmox-backup-client.rs: do not use api macro for prune
Dietmar Maurer [Fri, 31 Jan 2020 09:31:00 +0000 (10:31 +0100)]
src/bin/proxmox-backup-client.rs: do not use api macro for prune

So that we can use add_common_prune_prameters!() macro again.

4 years agosrc/config/remote.rs: do not serialize empty option
Dietmar Maurer [Fri, 31 Jan 2020 08:09:24 +0000 (09:09 +0100)]
src/config/remote.rs: do not serialize empty option

4 years agosrc/section_config.rs - write: improve error message
Dietmar Maurer [Fri, 31 Jan 2020 08:08:42 +0000 (09:08 +0100)]
src/section_config.rs - write: improve error message

4 years agodepend on proxmox 0.1.13, use new tty helpers from there
Dietmar Maurer [Fri, 31 Jan 2020 07:16:00 +0000 (08:16 +0100)]
depend on proxmox 0.1.13, use new tty helpers from there

4 years agodocs: fix typos
Christian Ebner [Thu, 30 Jan 2020 13:19:09 +0000 (14:19 +0100)]
docs: fix typos

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agodocs: Add documentation for mounting pxar archives via FUSE.
Christian Ebner [Thu, 30 Jan 2020 13:19:08 +0000 (14:19 +0100)]
docs: Add documentation for mounting pxar archives via FUSE.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agoproxmox-backup-client: add missing prune options to api definition.
Christian Ebner [Wed, 29 Jan 2020 15:34:07 +0000 (16:34 +0100)]
proxmox-backup-client: add missing prune options to api definition.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
4 years agoupdate proxmox dependency to 0.1.12
Dietmar Maurer [Fri, 31 Jan 2020 05:59:17 +0000 (06:59 +0100)]
update proxmox dependency to 0.1.12

4 years agosrc/bin/proxmox-backup-manager.rs: remove stale debug comment
Dietmar Maurer [Thu, 30 Jan 2020 16:59:13 +0000 (17:59 +0100)]
src/bin/proxmox-backup-manager.rs: remove stale debug comment