Christoph Heiss
f8f36b89fd
simpletest: Fix build after API change
...
This was broken long ago, first with 3edf5d1
AFAICT.
Also fixes the make dependency of `simpletest` on `build`, so that `make
simpletest` works on a fresh checkout.
Fixes: 3edf5d1
("add compress and encrypt paramaters")
Fixes: d8aa155
("api: add master key support")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-01-12 13:34:18 +01:00
Wolfgang Bumiller
06e919aba5
bump pbs deps to current git
...
for the nix 0.26 bump so we can actually build & test again
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-01-12 13:33:56 +01:00
Wolfgang Bumiller
a635046beb
cleanup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-01-12 13:29:58 +01:00
Fabian Grünbichler
baa3211ec1
bump version to 1.3.2-1 and update symbols file
...
this optional symbol having disappeared doesn't stop the library from being loaded by old Qemu.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-12 14:59:13 +01:00
Fabian Grünbichler
658d526595
update edition to 2021
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-12 14:59:13 +01:00
Fabian Grünbichler
afd4eff818
lint fix: explicitly drop Box
...
else this complains about a missing usage of the return value..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-12 14:59:13 +01:00
Fabian Grünbichler
fcfd5c3c50
clippy fix: shorten bool->i32 conversion
...
i32 implements From<bool> with the desired semantics, this still makes it
obvious that the conversion happens, although a plain `.into()` would also
work.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-12 14:59:13 +01:00
Fabian Grünbichler
dd65c43862
clippy fixes
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-12 14:59:13 +01:00
Fabian Grünbichler
4d90c957b5
update to current PBS head
...
to reduce transitive dependencies pulled in by pbs-config, like proxmox-metrics
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-12 14:59:03 +01:00
Thomas Lamprecht
4d450bb294
bump version to 1.3.1-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-05-13 13:59:50 +02:00
Thomas Lamprecht
e9fa6eb3db
bump pbs crates to current git
...
to ensure we poull in the s/backup-ns/ns/ switch.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-05-13 13:58:24 +02:00
Thomas Lamprecht
368c116236
update symbols
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-05-12 14:00:50 +02:00
Thomas Lamprecht
e5fba1d12f
bump version to 1.3.0-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-05-12 13:56:24 +02:00
Wolfgang Bumiller
e9f9c66684
update current-api.h
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-12 13:42:05 +02:00
Wolfgang Bumiller
50ed6b7ea3
support namespaces
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-12 13:42:05 +02:00
Wolfgang Bumiller
cb4dbc1748
bump pbs crates to current git
...
and align them for easier block-editing in vim ;-)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-12 13:42:05 +02:00
Wolfgang Bumiller
8556530b34
bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-12 13:41:27 +02:00
Wolfgang Bumiller
ccf29a83ee
bump proxmox-async to 0.4
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-12 13:41:27 +02:00
Wolfgang Bumiller
ee5c647436
bump cbindgen
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-05-12 13:41:27 +02:00
Wolfgang Bumiller
8fc821f8fd
rustfmt
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-04-26 13:48:44 +02:00
Wolfgang Bumiller
bf18160d8f
complete d/control
...
Since we have git dependencies on pbs-api-types,tools,... we
need to actually include all of *their* dependencies as well
in our d/control file...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-24 13:44:26 +01:00
Wolfgang Bumiller
5545f466c9
bump d/control
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-24 12:23:47 +01:00
Dietmar Maurer
8d5ddc9c8e
bump version to 1.2.1-1
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 11:47:36 +01:00
Fabian Grünbichler
d4425ee807
fix clippy warnings
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-11-24 11:41:49 +01:00
Dietmar Maurer
f0f38b8411
update dependencies to latest proxmox-backup git version
...
use commit 0ff214bedddce3c8773f742b66c455c4bad4083f, which uses
new proxmox-sys crate.
Also remove proxmox crate completely, and use hex crate.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-11-24 11:40:45 +01:00
Thomas Lamprecht
6e555bc73a
bump version to 1.2.0-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-05 20:55:59 +02:00
Thomas Lamprecht
2ddf3f7e8f
update ABI initially for build on bullseye
...
much moving around, no actual relevant changes FWICT
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-05 20:55:59 +02:00
Thomas Lamprecht
1c83461793
buildsys: switch to bullseye as upload dist target
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-05 20:54:47 +02:00
Thomas Lamprecht
0d8bac1cbc
d/copyright: fix dates
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-05 20:54:47 +02:00
Thomas Lamprecht
653e3bf798
d/compat: use comapt level 12
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-05 20:54:47 +02:00
Thomas Lamprecht
ba9cd32b05
cargo: update cbindgen to 0.17.0
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-05 19:57:30 +02:00
Thomas Lamprecht
5eaa3ecffd
bump version to 1.1.0-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-16 13:52:39 +02:00
Thomas Lamprecht
e273238b95
update proxmox and tokio dependencies
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-16 13:52:24 +02:00
Stefan Reiter
6eade0ebb7
access: use CachedChunkReader
...
Use the new CachedChunkReader with the shared_cache implementation to
provide a concurrency-safe async way of accessing data. This provides
two benefits:
* uses a shared LRU cache, which is very helpful for random-access like
during a live-restore
* does away with the global Mutex in read_image_at, providing real
concurrency without lock contention
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2021-06-08 09:46:01 +02:00
Stefan Reiter
ab3577e9d8
add shared_cache module
...
Provides a shared AsyncLruCache of 256MB (w/ 4MB chunks) that can be
used by multiple readers at the same time. It is dropped once no more
readers exist, so the memory gets freed if all QEMU block/pbs instances
disappear.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2021-06-08 09:45:59 +02:00
Thomas Lamprecht
8de935110e
bump version to 1.0.3-1
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-02-12 12:37:35 +01:00
Thomas Lamprecht
5403a71b2f
buildsys: patch out unused dependencies from library
...
mirrors the changes from proxmox-backup commit
198ebc6c86380351662b8b01537f449538ff1e6b [0]
[0]: https://git.proxmox.com/?p=proxmox-backup.git;a=commit;h=198ebc6c86380351662b8b01537f449538ff1e6b
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-02-12 12:37:35 +01:00
Thomas Lamprecht
67d03b6917
cargo: update once_cell and proxmox crates
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-02-12 11:50:51 +01:00
Thomas Lamprecht
af51823cc8
d/control: record breaks for older pve-qemu-kvm
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-02-12 11:50:45 +01:00
Thomas Lamprecht
99d016e4d8
d/symbols: reflect changes to proxmox_backup_new
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-02-12 11:50:45 +01:00
Fabian Grünbichler
d8aa155c6c
api: add master key support
...
this is a breaking change/API extension.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-02-12 10:54:41 +01:00
Fabian Grünbichler
58f4a111bd
build: track symbols
...
for easier auto-generation of versioned deps. when adding new symbols,
the build should display a warning + diff (in addition to our manual
tracking of the generated header file). changes in symbol signatures or
semantics are not caught automatically by the symbols file, but still
require bumping the minimum library version for that symbol accordingly.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-02-12 10:54:32 +01:00
Fabian Grünbichler
59971032ae
build: switch back to latest proxmox-backup tag
...
instead of path dependency
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-02-10 11:50:09 +01:00
Fabian Grünbichler
0723f448fd
use new HttpClientOptions constructors
...
and make password non-optional from the start.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-26 10:42:45 +01:00
Fabian Grünbichler
42b6fd5bee
use UploadOptions for uploading Blobs
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-26 10:42:41 +01:00
Fabian Grünbichler
bc71e4e465
update Cargo.toml
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-14 15:58:02 +01:00
Fabian Grünbichler
6b54f9f05e
update to tokio 1.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-11 15:10:41 +01:00
Fabian Grünbichler
bb9d46ae22
Cargo.toml: bump to tokio 1.0
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-01-11 15:02:12 +01:00
Fabian Grünbichler
447552da4a
d/control: add cbindgen to build-deps
...
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-11-30 13:41:45 +01:00
Dietmar Maurer
18d5b98ab1
bump version to 1.0.2-1
2020-11-25 08:32:46 +01:00