]>
git.proxmox.com Git - proxmox-backup-qemu.git/log
Thomas Lamprecht [Sat, 30 May 2020 16:42:17 +0000 (18:42 +0200)]
restore: reuse the clients download_fixed_index
it's the same code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 30 May 2020 15:02:37 +0000 (17:02 +0200)]
Cargo.toml: update versions
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 30 May 2020 15:01:36 +0000 (17:01 +0200)]
switch from failure to anyhow
Similarly to how we did in proxmox-backup in mid april
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Wed, 11 Mar 2020 11:07:02 +0000 (12:07 +0100)]
bump version to 0.1.3-1
Dietmar Maurer [Wed, 11 Mar 2020 10:11:14 +0000 (11:11 +0100)]
call C-callback if send command fail
And fix previous commit.
Dietmar Maurer [Wed, 11 Mar 2020 09:33:15 +0000 (10:33 +0100)]
cleanup: use macro raise_error_int
Dietmar Maurer [Wed, 11 Mar 2020 09:24:23 +0000 (10:24 +0100)]
correctly convert error messages to CString
Dietmar Maurer [Wed, 11 Mar 2020 08:35:26 +0000 (09:35 +0100)]
remove debug statements
And print unrecoverable errors to stderr.
Dietmar Maurer [Tue, 10 Mar 2020 10:22:58 +0000 (11:22 +0100)]
bump version to 0.1.2-1
Dietmar Maurer [Tue, 10 Mar 2020 10:21:16 +0000 (11:21 +0100)]
build.rs: .with_include_guard("PROXMOX_BACKUP_QEMU_H")
Dietmar Maurer [Tue, 3 Mar 2020 07:04:07 +0000 (08:04 +0100)]
Makefile: upload to pve instead of pbs product
Dietmar Maurer [Tue, 3 Mar 2020 06:55:59 +0000 (07:55 +0100)]
Makefile: add upload target
Dietmar Maurer [Tue, 3 Mar 2020 06:47:07 +0000 (07:47 +0100)]
depend on specific proxmox-backup git version
Dietmar Maurer [Wed, 19 Feb 2020 12:13:14 +0000 (13:13 +0100)]
fix compile errors
Dietmar Maurer [Wed, 19 Feb 2020 12:07:26 +0000 (13:07 +0100)]
set fingerprint and password on HttpClientOptions
Dietmar Maurer [Wed, 19 Feb 2020 11:47:01 +0000 (12:47 +0100)]
proxmox_restore_connect: use snapshot string (instead of backup_id and backup_time).
Dietmar Maurer [Wed, 19 Feb 2020 11:31:27 +0000 (12:31 +0100)]
use BackupSetup for ProxmoxRestore::new()
Dietmar Maurer [Thu, 13 Feb 2020 11:18:54 +0000 (12:18 +0100)]
simpletest.c: correctly handle write errors
Dietmar Maurer [Thu, 13 Feb 2020 11:10:04 +0000 (12:10 +0100)]
remove stale comment
Dietmar Maurer [Thu, 13 Feb 2020 11:06:53 +0000 (12:06 +0100)]
allow to set chunk_size, and define PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE
Dietmar Maurer [Thu, 13 Feb 2020 10:41:14 +0000 (11:41 +0100)]
also implement synchrounous c-api and fix simpletest.c
Dietmar Maurer [Thu, 13 Feb 2020 08:03:48 +0000 (09:03 +0100)]
src/worker_task.rs: fix tokio runtime parameters
Dietmar Maurer [Thu, 13 Feb 2020 07:24:58 +0000 (08:24 +0100)]
src/worker_task.rs: set thread name
Dietmar Maurer [Thu, 13 Feb 2020 07:15:05 +0000 (08:15 +0100)]
src/worker_task.rs: use runtime.block_on() inside backup_worker_task
Dietmar Maurer [Wed, 12 Feb 2020 12:01:20 +0000 (13:01 +0100)]
update all dependencies
Dietmar Maurer [Fri, 8 Nov 2019 10:55:25 +0000 (11:55 +0100)]
update rust toolchain to stable
Dietmar Maurer [Sat, 26 Oct 2019 12:46:01 +0000 (14:46 +0200)]
avoid clippy warnings
Dietmar Maurer [Fri, 25 Oct 2019 10:25:46 +0000 (12:25 +0200)]
simplify rust code
Dietmar Maurer [Fri, 25 Oct 2019 09:57:33 +0000 (11:57 +0200)]
run all commands async with tokio::spawn()
Dietmar Maurer [Fri, 25 Oct 2019 06:50:38 +0000 (08:50 +0200)]
proxmox_backup_free_error: test if ptr == NULL
Dietmar Maurer [Fri, 25 Oct 2019 05:00:18 +0000 (07:00 +0200)]
header-preamble.c: add result parameter
Dietmar Maurer [Fri, 25 Oct 2019 04:53:37 +0000 (06:53 +0200)]
make proxmox_backup_register_image async
Dietmar Maurer [Fri, 25 Oct 2019 04:45:59 +0000 (06:45 +0200)]
make proxmox_backup_add_config async
Dietmar Maurer [Fri, 25 Oct 2019 04:36:59 +0000 (06:36 +0200)]
Add pointer to integer return value for all async functions
Dietmar Maurer [Fri, 25 Oct 2019 03:59:12 +0000 (05:59 +0200)]
cleanup: avoid unwrap
Dietmar Maurer [Thu, 24 Oct 2019 11:52:16 +0000 (13:52 +0200)]
implement async connect command
Dietmar Maurer [Thu, 24 Oct 2019 10:44:33 +0000 (12:44 +0200)]
cleanup: implement CallbackPointers send_result()
Dietmar Maurer [Thu, 24 Oct 2019 08:10:46 +0000 (10:10 +0200)]
use relative path in symbolic link to libproxmox_backup_qemu.so.0
Dietmar Maurer [Wed, 16 Oct 2019 11:48:48 +0000 (13:48 +0200)]
simpletest.c: pass new keyfile parameters (NULL for now)
Dietmar Maurer [Wed, 16 Oct 2019 11:46:17 +0000 (13:46 +0200)]
proxmox_backup_connect: add keyfile and key_password parameter
Dietmar Maurer [Wed, 16 Oct 2019 10:12:18 +0000 (12:12 +0200)]
fix typo
Dietmar Maurer [Wed, 16 Oct 2019 09:47:45 +0000 (11:47 +0200)]
proxmox_backup_connect: make password optional
Dietmar Maurer [Wed, 16 Oct 2019 09:46:42 +0000 (11:46 +0200)]
simpletest.c: make it work again, pass repo as command line parameter
Dietmar Maurer [Wed, 16 Oct 2019 09:45:32 +0000 (11:45 +0200)]
Makefile: fix simpletest target
Dietmar Maurer [Tue, 15 Oct 2019 13:16:07 +0000 (15:16 +0200)]
improve docs
Dietmar Maurer [Tue, 15 Oct 2019 10:11:22 +0000 (12:11 +0200)]
cleanup restore api, allow to restore multiple images
Dietmar Maurer [Mon, 14 Oct 2019 11:50:20 +0000 (13:50 +0200)]
src/restore.rs: implement restore
Dietmar Maurer [Mon, 14 Oct 2019 09:03:50 +0000 (11:03 +0200)]
src/commands.rs: use new DataChunkBuilder::build_zero_chunk()
Dietmar Maurer [Sat, 12 Oct 2019 12:19:59 +0000 (14:19 +0200)]
cleanups, rename BackupClient to BackupWriter
Dietmar Maurer [Sat, 12 Oct 2019 12:13:29 +0000 (14:13 +0200)]
set toolchain to beta
Dietmar Maurer [Sat, 12 Oct 2019 10:12:31 +0000 (12:12 +0200)]
add dummy code for simple restore tasks.
Dietmar Maurer [Sat, 12 Oct 2019 10:11:48 +0000 (12:11 +0200)]
src/worker_task.rs: fix typo
Dietmar Maurer [Sat, 12 Oct 2019 07:38:55 +0000 (09:38 +0200)]
src/commands.rs: adopt to changes in proxmox-backup
Dietmar Maurer [Sun, 6 Oct 2019 08:51:47 +0000 (10:51 +0200)]
adopt to latest changes in proxmox-backup
Dietmar Maurer [Wed, 2 Oct 2019 11:34:19 +0000 (13:34 +0200)]
use correct file name in index.json
Dietmar Maurer [Wed, 2 Oct 2019 09:34:57 +0000 (11:34 +0200)]
add_config: use correct size
We want to store the size of the encoded blob in the index.
Dietmar Maurer [Mon, 30 Sep 2019 10:38:03 +0000 (12:38 +0200)]
remove stale comment
Dietmar Maurer [Mon, 30 Sep 2019 09:26:21 +0000 (11:26 +0200)]
ChunkUploadInfo: add chunk_is_known flag
To avoid unnecessary locking...
Dietmar Maurer [Sun, 29 Sep 2019 09:30:57 +0000 (11:30 +0200)]
cleanup: use tokio::sync::{mpsc, oneshot};
Dietmar Maurer [Sun, 29 Sep 2019 09:21:50 +0000 (11:21 +0200)]
src/upload_queue.rs: new helper create_upload_queue()
Dietmar Maurer [Sun, 29 Sep 2019 09:08:02 +0000 (11:08 +0200)]
src/upload_queue.rs: split upload_handler into extra file
Dietmar Maurer [Sun, 29 Sep 2019 08:57:23 +0000 (10:57 +0200)]
cleanup: use TryFutureExt (for .map_err())
Dietmar Maurer [Sun, 29 Sep 2019 08:40:19 +0000 (10:40 +0200)]
improve upload queue error handling
Dietmar Maurer [Sat, 28 Sep 2019 16:27:03 +0000 (18:27 +0200)]
speedup chunk upload
Dietmar Maurer [Fri, 27 Sep 2019 09:49:12 +0000 (11:49 +0200)]
add resonable connect parameters
Dietmar Maurer [Tue, 24 Sep 2019 10:15:57 +0000 (12:15 +0200)]
move async command implementation to commands.rs
Dietmar Maurer [Tue, 24 Sep 2019 09:27:54 +0000 (11:27 +0200)]
move BackupMessage into capi_types.rs
Dietmar Maurer [Tue, 24 Sep 2019 09:22:12 +0000 (11:22 +0200)]
spli C-API from rest of the code
Dietmar Maurer [Tue, 24 Sep 2019 09:08:19 +0000 (11:08 +0200)]
src/capi_types.rs: slip types for C api into separate file
Dietmar Maurer [Tue, 24 Sep 2019 09:01:40 +0000 (11:01 +0200)]
rename BackupRepository into BackupSetup
Dietmar Maurer [Tue, 24 Sep 2019 08:31:14 +0000 (10:31 +0200)]
pass known_chunks as argument (no need to store inside ImageUploadInfo)
Dietmar Maurer [Tue, 24 Sep 2019 08:25:14 +0000 (10:25 +0200)]
upload index.json
Dietmar Maurer [Mon, 23 Sep 2019 11:13:17 +0000 (13:13 +0200)]
compute index checksum, simplify code
Dietmar Maurer [Sun, 22 Sep 2019 08:53:03 +0000 (10:53 +0200)]
implement add_config
Dietmar Maurer [Sat, 21 Sep 2019 14:15:28 +0000 (16:15 +0200)]
implement proxmox_backup_finish_async()
Dietmar Maurer [Sat, 21 Sep 2019 13:56:26 +0000 (15:56 +0200)]
proxmox_backup_abort: use *const char
Dietmar Maurer [Sat, 21 Sep 2019 13:45:21 +0000 (15:45 +0200)]
handle known chunks
Dietmar Maurer [Sat, 21 Sep 2019 13:32:55 +0000 (15:32 +0200)]
cleanup
Dietmar Maurer [Sat, 21 Sep 2019 13:28:25 +0000 (15:28 +0200)]
factor out register_zero_chunk
Dietmar Maurer [Sat, 21 Sep 2019 13:20:00 +0000 (15:20 +0200)]
minor cleanup
Dietmar Maurer [Sat, 21 Sep 2019 09:12:33 +0000 (11:12 +0200)]
upload and use zero sized chunk
Dietmar Maurer [Sat, 21 Sep 2019 08:47:34 +0000 (10:47 +0200)]
computer zero chunk digest at register_image
Dietmar Maurer [Sat, 21 Sep 2019 08:34:39 +0000 (10:34 +0200)]
add chunk_size configuration
Dietmar Maurer [Sat, 21 Sep 2019 08:24:24 +0000 (10:24 +0200)]
implement image registry, implement close image
Dietmar Maurer [Thu, 19 Sep 2019 08:07:53 +0000 (10:07 +0200)]
pass client to command implementation
Dietmar Maurer [Wed, 18 Sep 2019 11:56:29 +0000 (13:56 +0200)]
cleanup
Dietmar Maurer [Wed, 18 Sep 2019 11:52:27 +0000 (13:52 +0200)]
handle abort in proxmox_backup_register_image()
Dietmar Maurer [Wed, 18 Sep 2019 11:50:02 +0000 (13:50 +0200)]
add register_image prototype
Dietmar Maurer [Wed, 18 Sep 2019 09:37:17 +0000 (11:37 +0200)]
record abort reason, handle abort in write_data
Dietmar Maurer [Tue, 17 Sep 2019 15:20:49 +0000 (17:20 +0200)]
limit number of threads
Dietmar Maurer [Tue, 17 Sep 2019 15:13:59 +0000 (17:13 +0200)]
cleanup
Dietmar Maurer [Tue, 17 Sep 2019 15:02:58 +0000 (17:02 +0200)]
use threadpool runtime
Dietmar Maurer [Tue, 17 Sep 2019 11:46:38 +0000 (13:46 +0200)]
implement abort
Dietmar Maurer [Mon, 16 Sep 2019 11:44:47 +0000 (13:44 +0200)]
start error handling
Dietmar Maurer [Sun, 15 Sep 2019 07:18:35 +0000 (09:18 +0200)]
gather/return some statistics
Dietmar Maurer [Sun, 15 Sep 2019 07:05:24 +0000 (09:05 +0200)]
add dev_id to write callback
Dietmar Maurer [Fri, 13 Sep 2019 10:37:27 +0000 (12:37 +0200)]
create -dev package, fix .install file names
Dietmar Maurer [Fri, 13 Sep 2019 09:59:41 +0000 (11:59 +0200)]
connectly install .so file, set soname
Dietmar Maurer [Fri, 13 Sep 2019 08:11:22 +0000 (10:11 +0200)]
install dynamic lib (instead of static)
Which is much smaller.
Dietmar Maurer [Fri, 13 Sep 2019 07:57:34 +0000 (09:57 +0200)]
use std::sync::mpsc::channel
We cannoit use tokio here, because there is no runtime in the calling thread.